Google Cloud Professional Cloud DevOps Engineer — Question 91

Your company runs an ecommerce website built with JVM-based applications and microservice architecture in Google Kubernetes Engine (GKE). The application load increases during the day and decreases during the night. Your operations team has configured the application to run enough Pods to handle the evening peak load. You want to automate scaling by only running enough Pods and nodes for the load. What should you do?

Answer options

Correct answer: D

Explanation

The correct answer is D because the Horizontal Pod Autoscaler adjusts the number of Pods based on current CPU utilization or other select metrics, while the cluster autoscaler ensures that there are enough nodes to support the required Pods. Options A and C do not address the need for dynamic node scaling, and option B incorrectly suggests using the Vertical Pod Autoscaler, which is not suited for managing the number of Pods in response to changing loads.