You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load. What should you do?
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, you need two components working together. First, the HorizontalPodAutoscaler (HPA) monitors CPU utilization of your pods and scales the number of pods up or down within the cluster. Second, the Cluster Autoscaler (CA) monitors resource requests and actual usage across the cluster. If there aren't enough nodes to schedule new pods (scaled by HPA) or if nodes are underutilized, the CA adds or removes nodes from the node pools. Enabling the Cluster Autoscaler from the GCP Console is the standard way to activate this feature for GKE. The other options either misconfigure the autoscaling mechanisms or use deployment properties that are unrelated to 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