GCP-CLOUD-ARCHITECT practice question 2 of 10
You want to enable your running Google Kubernetes Engine cluster to scale as demand for your application changes. What should you do?
Full set: 333 questionsDomain Managing and provisioning a solution infrastructure
The question asks how to enable autoscaling on a running Google Kubernetes Engine (GKE) cluster. The gcloud container clusters update command is used to modify the configuration of an existing cluster. The --enable-autoscaling flag, along with --min-nodes and --max-nodes, specifically configures the cluster autoscaler on the specified running cluster, allowing it to automatically add or remove nodes based on workload demands.
A. The resize command manually sets a fixed number of nodes; it does not enable automatic scaling based on load.
B. Adding tags to Compute Engine instances is not the correct mechanism for configuring GKE cluster autoscaling, which is a cluster-level setting.
D. The create command builds a new cluster. This would require a disruptive application migration rather than updating the existing, running cluster.
1. Google Cloud Documentation. gcloud container clusters update. The command reference explicitly shows the --enable-autoscaling, --min-nodes, and --max-nodes flags for modifying an existing cluster.
2. Google Cloud Documentation. Autoscaling a cluster. Section: "Enabling cluster autoscaling". It states, "You can enable autoscaling on an existing cluster by using the gcloud command-line tool or the Google Cloud console." and provides the gcloud container clusters update command as the example.
Keep practicing
Take the free GCP-CLOUD-ARCHITECT practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GCP-CLOUD-ARCHITECT practice questions
- Question 1Your organization uses Google Kubernetes Engine (GKE) and Amazon Elastic Kubernetes Servi…
- Question 3Your architecture calls for the centralized collection of all admin activity and VM syste…
- Question 4A global media company is launching a new web application. The application backend is hos…
- Question 5You manage a highly distributed, hybrid- and multi-cloud IT environment and your develope…
- Question 6Your company is developing a web-based application. You need to make sure that production…
- Question 7Your company sends all Google Cloud logs to Cloud Logging. Your security team wants to mo…
