You want to scale the number of replicas in your frontend deployment based on custom metrics retrieved from Prometheus, rather than standard CPU or Memory utilization. Which Kubernetes autoscaling component should you use?

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

Correct Answer: Horizontal Pod Autoscaler (HPA) using custom metrics APIs (like KEDA)

While HPA natively supports scaling on CPU/Memory, scaling on custom or external metrics (like Prometheus queue length) requires configuring the custom metrics API or using a frame...

Real Exam ScenarioKubernetes Autoscaling

You want to scale the number of replicas in your frontend deployment based on custom metrics retrieved from Prometheus, rather than standard CPU or Memory utilization. Which Kubernetes autoscaling component should you use?

✓ Correct Answer & ExplanationKubernetes Autoscaling

Correct Answer

Horizontal Pod Autoscaler (HPA) using custom metrics APIs (like KEDA)

Why This Answer Is Correct

While HPA natively supports scaling on CPU/Memory, scaling on custom or external metrics (like Prometheus queue length) requires configuring the custom metrics API or using a framework like KEDA (Kubernetes Event-driven Autoscaling) that implements the external metrics provider.

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