
Answer-first summary for fast verification
Answer: Configure the Horizontal Pod Autoscaler, and enable the cluster autoscaler.
The goal is to dynamically scale both Pods and nodes to match varying load. Option D is correct because the Horizontal Pod Autoscaler (HPA) scales the number of Pod replicas based on demand (e.g., CPU or custom metrics), while the cluster autoscaler adjusts the node pool size to ensure resources are available for Pods. This combination optimizes resource usage during both high and low traffic. Options A and B use Vertical Pod Autoscaler (VPA), which only adjusts Pod resource requests and not the number of Pods, failing to reduce Pod count during low load. Option C uses HPA but keeps the node pool static, preventing node scaling and risking inefficiency or scheduling issues.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
Your company operates an ecommerce website using JVM-based applications with a microservice architecture on Google Kubernetes Engine (GKE). The application experiences higher load during the day and lower load at night. Currently, your operations team manually configures enough Pods to handle peak evening load. You need to automate scaling to ensure only the necessary number of Pods and nodes are running based on actual load. What is the recommended solution?
A
Configure the Vertical Pod Autoscaler, but keep the node pool size static.
B
Configure the Vertical Pod Autoscaler, and enable the cluster autoscaler.
C
Configure the Horizontal Pod Autoscaler, but keep the node pool size static.
D
Configure the Horizontal Pod Autoscaler, and enable the cluster autoscaler.