Question 15
Container OrchestrationThe Horizontal Pod Autoscaler (HPA) scales based on:
Correct answer: B
Explanation
The Horizontal Pod Autoscaler adjusts the number of pod replicas using resource and metric signals. It can scale on "CPU, memory, or custom/external metrics of pods," which are the inputs used to decide when to increase or decrease replicas.
Why each option is right or wrong
A. The number of nodes
B. CPU, memory, or custom/external metrics of pods
Under the Kubernetes Horizontal Pod Autoscaler API, scaling decisions are driven by observed metrics for pods, including resource metrics such as CPU and memory, and also custom or external metrics when configured. The HPA controller compares the current metric value against the target in the HPA spec and adjusts replica count accordingly, so the correct choice is the one naming those pod-level resource and metric inputs rather than a fixed time or event trigger.
C. Time of day
D. Image size