CKAD Application Deployment Practice Question
What is the purpose of a HorizontalPodAutoscaler (HPA)?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
To automatically adjust the number of pods based on resource metrics
A HorizontalPodAutoscaler automatically scales the number of pods in a Deployment, ReplicaSet, or StatefulSet based on observed CPU utilization (or other custom metrics).
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
To update the application version without downtime
Why it's wrong here
A HorizontalPodAutoscaler adjusts the replica count of a workload's pods based on observed metrics such as CPU utilisation; it never performs version transitions. Rolling updates, which replace pods incrementally under a Deployment's update strategy, achieve zero-downtime releases. That is what this option describes, making it tempting, but the HPA's axis is scaling, not release management.
- ✗
To restart pods automatically when they fail
Why it's wrong here
A HorizontalPodAutoscaler adjusts the replica count of a workload based on observed metrics such as CPU utilisation; it never restarts containers. Restarting failed pods is the kubelet's liveness probe behaviour, so this option describes self-healing rather than scaling. HPA would be the right answer when the requirement is scaling replicas in response to load.
- ✗
To distribute incoming traffic across multiple pods
Why it's wrong here
An HPA adjusts replica count based on metrics such as CPU utilisation; traffic distribution is the job of a Service. It would be the right tool when demand must scale pod numbers up or down automatically.
- ✓
To automatically adjust the number of pods based on resource metrics
Why this is correct
The HPA controller watches metrics such as CPU utilisation and adjusts a workload's replica count to meet a target, scaling pods horizontally. It satisfies the requirement to match capacity to demand automatically rather than manually resizing deployments.
Go deeper
Related to this question
About these practice questions
One of 826 original CKAD practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CKAD practice question is part of Courseiva's free CNCF certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CKAD exam.