Make a GKE cluster add or remove nodes automatically based on CPU load. What configuration achieves this?
Choose an answer
Tap an option to check your answer.
Correct answer: Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console..
Why this is the answer
To automatically scale nodes based on CPU load in GKE, you need both a HorizontalPodAutoscaler (HPA) and the Cluster Autoscaler. The HPA monitors CPU usage of pods and scales the number of pods up or down within the existing nodes. If the HPA needs more pods than the current nodes can accommodate, or if it scales down significantly, the Cluster Autoscaler then adds or removes nodes from the cluster. Enabling the Cluster Autoscaler via the GCP Console is the standard and recommended method. The other options are incorrect because they either miss a critical component (HPA or Cluster Autoscaler) or suggest an incorrect method for enabling autoscaling (e.g., maxUnavailable and maxSurge are for rolling updates, not node autoscaling).
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