
Answer-first summary for fast verification
Answer: Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
The correct answer is A. Configuring a HorizontalPodAutoscaler with a target CPU usage will allow the cluster to scale the number of pods based on the CPU load. Enabling the Cluster Autoscaler from the GCP Console will ensure that the cluster can automatically add or remove nodes based on the resource requirements of the pods. Together, these mechanisms allow the cluster to effectively handle variable CPU loads by ensuring there are enough nodes to support the desired number of pods. The other options involve enabling autoscaling on managed instance groups or setting properties unrelated to node scaling, which are not recommended for GKE clusters.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are managing a Google Kubernetes Engine (GKE) cluster and want it to handle variable CPU loads by automatically adding or removing nodes. How should you configure the cluster to achieve this?
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.
No comments yet.