Google Cloud Professional Cloud Architect — Question 69
You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load.
What should you do?
Answer options
- A. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
- B. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.
- C. Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.
- D. Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.
Correct answer: A
Explanation
The correct answer is A because it outlines the necessary steps to use both HorizontalPodAutoscaler for pod scaling and Cluster Autoscaler for node scaling together. Options B and D fail to mention enabling the Cluster Autoscaler, which is crucial for automatic node management. Option C incorrectly focuses on deployment settings rather than the necessary autoscaler configurations.