Recall & Review
beginner
What is a Horizontal Pod Autoscaler (HPA) in Kubernetes?
HPA automatically adjusts the number of pods in a deployment based on observed CPU utilization or other select metrics to maintain application performance.
Click to reveal answer
intermediate
Which metrics can Horizontal Pod Autoscaler use to scale pods?
HPA can use CPU utilization, memory usage, or custom metrics like request rate to decide when to scale pods up or down.
Click to reveal answer
intermediate
How does HPA decide when to increase or decrease pod count?
HPA compares current metric values against target thresholds. If usage is above the target, it adds pods; if below, it removes pods to optimize resource use.
Click to reveal answer
advanced
What is the difference between Horizontal Pod Autoscaler and Vertical Pod Autoscaler?
Horizontal Pod Autoscaler changes the number of pods, while Vertical Pod Autoscaler changes the resource requests and limits (CPU/memory) of existing pods.
Click to reveal answer
intermediate
Why is it important to set minimum and maximum pod limits in HPA?
Setting min and max pod limits prevents scaling too low (causing performance issues) or too high (wasting resources), ensuring stable and efficient operation.
Click to reveal answer
What does Horizontal Pod Autoscaler primarily adjust in a Kubernetes cluster?
✗ Incorrect
HPA adjusts the number of pods to handle workload changes.
Which metric is commonly used by HPA to trigger scaling?
✗ Incorrect
CPU utilization is a common metric for HPA to decide scaling.
What happens if the current CPU usage is below the target in HPA?
✗ Incorrect
If usage is below target, HPA removes pods to save resources.
Which Kubernetes component typically manages the Horizontal Pod Autoscaler?
✗ Incorrect
The kube-controller-manager runs the HPA controller.
Why should you avoid setting the maximum pod count too high in HPA?
✗ Incorrect
Too high max pods can waste resources and increase costs.
Explain how Horizontal Pod Autoscaler works to maintain application performance.
Think about how a thermostat adjusts temperature automatically.
You got /5 concepts.
Describe the key differences between Horizontal Pod Autoscaler and Vertical Pod Autoscaler.
One changes quantity, the other changes size.
You got /4 concepts.