A DevOps team is running a microservice deployment and wants to configure both Horizontal Pod Autoscaler (HPA) to scale out based on CPU usage and Vertical Pod Autoscaler (VPA) to scale resources up/down. What is the recommended practice when using both autoscalers on the same deployment?

Direct Answer (Verified)Reviewed by Sunny (Senior Cloud Engineer)

Correct Answer: Do not run HPA and VPA together on the same resource metrics (like CPU or memory), as their scaling actions will conflict

Running HPA and VPA together on the same metrics (like CPU and Memory) can lead to conflicts. For example, when CPU usage spikes, VPA may attempt to scale up the pod's CPU allocati...

Real Exam ScenarioKubernetes Autoscaling

A DevOps team is running a microservice deployment and wants to configure both Horizontal Pod Autoscaler (HPA) to scale out based on CPU usage and Vertical Pod Autoscaler (VPA) to scale resources up/down. What is the recommended practice when using both autoscalers on the same deployment?

✓ Correct Answer & ExplanationKubernetes Autoscaling

Correct Answer

Do not run HPA and VPA together on the same resource metrics (like CPU or memory), as their scaling actions will conflict

Why This Answer Is Correct

Running HPA and VPA together on the same metrics (like CPU and Memory) can lead to conflicts. For example, when CPU usage spikes, VPA may attempt to scale up the pod's CPU allocation, while HPA attempts to create more replicas. You can only combine them if HPA is configured to scale based on custom/external metrics (not CPU/Memory) while VPA manages resource requests/limits.

📚 What This Question Tests

This question evaluates your knowledge of Kubernetes Autoscaling — a core concept tested in cloud certification exams. Understanding Kubernetes Autoscaling is essential for designing scalable, secure, and cost-effective cloud architectures. Mastery of this topic will help you answer scenario-based questions confidently on exam day.