PROFESSIONAL-CLOUD-DEVELOPER · Question #163
Your company's product team has a new requirement based on customer demand to autoscale your stateless and distributed service running in a Google Kubernetes Engine (GKE) duster. You want to find a so
The correct answer is C. Deploy a Horizontal Pod Autoscaler, and scale based on the CPU toad.. A Horizontal Pod Autoscaler (HPA) is the correct choice for a stateless, distributed service because it scales by adding or removing pod replicas - the natural fit for horizontal scaling of stateless workloads. A Vertical Pod Autoscaler (VPA) adjusts CPU/memory resources per pod,
Question
Your company's product team has a new requirement based on customer demand to autoscale your stateless and distributed service running in a Google Kubernetes Engine (GKE) duster. You want to find a solution that minimizes changes because this feature will go live in two weeks. What should you do?
Options
- ADeploy a Vertical Pod Autoscaler, and scale based on the CPU load.
- BDeploy a Vertical Pod Autoscaler, and scale based on a custom metric.
- CDeploy a Horizontal Pod Autoscaler, and scale based on the CPU toad.
- DDeploy a Horizontal Pod Autoscaler, and scale based on a custom metric.
How the community answered
(42 responses)- A14% (6)
- B7% (3)
- C76% (32)
- D2% (1)
Explanation
A Horizontal Pod Autoscaler (HPA) is the correct choice for a stateless, distributed service because it scales by adding or removing pod replicas - the natural fit for horizontal scaling of stateless workloads. A Vertical Pod Autoscaler (VPA) adjusts CPU/memory resources per pod, which is more complex and better suited for stateful or single-instance workloads. CPU-based scaling (not a custom metric) is the simplest and most widely supported trigger, requires no additional configuration, and minimizes changes - which aligns with the two-week deadline constraint. Custom metrics require additional instrumentation and setup time, making them a poor fit here.
Topics
Community Discussion
No community discussion yet for this question.