During traffic peaks, your Horizontal Pod Autoscaler (HPA) scales out replicas rapidly. However, when traffic dips briefly, the HPA immediately scales down, causing resource thrashing. How can you configure HPA to delay scaling down and stabilize replica count?

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

Correct Answer: Configure the behavior.scaleDown.stabilizationWindowSeconds block in the HPA spec

The HPA behavior specification allows you to configure stabilization windows for scaling actions. Setting stabilizationWindowSeconds for scaleDown specifies how long the autoscaler...

Real Exam ScenarioKubernetes Autoscaling

During traffic peaks, your Horizontal Pod Autoscaler (HPA) scales out replicas rapidly. However, when traffic dips briefly, the HPA immediately scales down, causing resource thrashing. How can you configure HPA to delay scaling down and stabilize replica count?

✓ Correct Answer & ExplanationKubernetes Autoscaling

Correct Answer

Configure the behavior.scaleDown.stabilizationWindowSeconds block in the HPA spec

Why This Answer Is Correct

The HPA behavior specification allows you to configure stabilization windows for scaling actions. Setting stabilizationWindowSeconds for scaleDown specifies how long the autoscaler must wait after calculating a target scale-down before actually executing it, helping to prevent rapid fluctuation or thrashing.

📚 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.