nerdexam
Google

PROFESSIONAL-CLOUD-ARCHITECT · Question #48

You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load. What should you do?

The correct answer is A. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler. How does Horizontal Pod Autoscaler work with Cluster Autoscaler? Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough…

Submitted by carlos_mx· Mar 30, 2026Managing and provisioning cloud solution infrastructure

Question

You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load. What should you do?

Options

  • AConfigure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler
  • BConfigure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the
  • CCreate a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster
  • DCreate a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling

How the community answered

(52 responses)
  • A
    94% (49)
  • B
    4% (2)
  • D
    2% (1)

Explanation

How does Horizontal Pod Autoscaler work with Cluster Autoscaler? Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough space in the cluster. If there are not enough resources, CA will try to bring up some nodes, so that the HPA-created pods have a place to run. If the load decreases, HPA will stop some of the replicas. As a result, some nodes may become underutilized or completely empty, and then CA will terminate such unneeded nodes.

Topics

#HorizontalPodAutoscaler#Cluster Autoscaler#GKE scaling#CPU-based autoscaling

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-ARCHITECT Practice