You want to enable your running Google Kubernetes Engine cluster to scale as demand for your application changes. What should you do?
Choose an answer
Tap an option to check your answer.
Correct answer: Update the existing Kubernetes Engine cluster with the following command: gcloud alpha container clusters update mycluster - -enable- autoscaling - -min-nodes=1 - -max-nodes=10.
Why this is the answer
The correct answer is to update the existing cluster using gcloud alpha container clusters update --enable-autoscaling. This command directly enables the Cluster Autoscaler feature on an existing Google Kubernetes Engine (GKE) cluster, allowing it to automatically adjust the number of nodes based on workload demand within the specified minimum and maximum node limits. Adding additional nodes manually with gcloud container clusters resize only changes the static number of nodes and does not enable automatic scaling. Adding tags to instances is not the mechanism for enabling GKE cluster autoscaling; GKE manages this feature at the cluster level. Creating a new cluster and redeploying your application is an unnecessary and disruptive step if the goal is simply to enable autoscaling on an already running cluster.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed