Google Cloud Professional Cloud Architect — Question 35
You want to enable your running Google Kubernetes Engine cluster to scale as demand for your application changes.
What should you do?
Answer options
- A. Add additional nodes to your Kubernetes Engine cluster using the following command: gcloud container clusters resize CLUSTER_Name ג€" -size 10
- B. Add a tag to the instances in the cluster with the following command: gcloud compute instances add-tags INSTANCE - -tags enable- autoscaling max-nodes-10
- C. Update the existing Kubernetes Engine cluster with the following command: gcloud alpha container clusters update mycluster - -enable- autoscaling - -min-nodes=1 - -max-nodes=10
- D. Create a new Kubernetes Engine cluster with the following command: gcloud alpha container clusters create mycluster - -enable- autoscaling - -min-nodes=1 - -max-nodes=10 and redeploy your application
Correct answer: C
Explanation
Option C is correct because it allows you to enable autoscaling on the existing cluster along with specifying minimum and maximum node limits. Options A and D do not configure autoscaling for the current cluster, while option B incorrectly assigns a tag instead of enabling autoscaling.