CKAD Application Deployment Practice Question
You have created a HorizontalPodAutoscaler (HPA) for a Deployment. The HPA is configured with targetCPUUtilizationPercentage: 50. The current CPU utilization is 80%. What will the HPA do?
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
✓
It will increase the number of replicas
The HPA will increase the number of replicas to bring average CPU utilization down to the target.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
It will restart the pods
Why it's wrong here
The HorizontalPodAutoscaler does not initiate pod restarts; it only reconciles the desired replica count of a workload, such as a Deployment or ReplicaSet. The HPA controller computes a target replica count based on observed metrics and then updates the `spec.replicas` field — it has no mechanism to delete or recreate individual pods. Restarting pods without scaling is the role of a Deployment rollout or a manual `kubectl rollout restart`, not an HPA action.
- ✗
It will do nothing because HPA only scales based on memory
Why it's wrong here
The claim that HPA only scales based on memory is factually incorrect. The HPA built-in support includes standard Kubernetes resource metrics such as CPU and memory utilization, and you can even define custom or external metrics. In fact, CPU is the most commonly used and is the default metric if you do not specify one. Therefore, an HPA configured with a CPU target will definitely act when CPU crosses the threshold.
- ✓
It will increase the number of replicas
Why this is correct
When the average CPU utilization across the current pods is above the target value, the HPA controller calculates a desired replica count using the formula `ceil(currentReplicas * (currentMetric / desiredMetric))`. Since the ratio is greater than 1, it produces a response that increases `spec.replicas` on the target workload. This is the exact behavior expected: scale-out to reduce the per-pod CPU load to the configured target. The controller will gradually raise the replica count, subject to the `maxReplicas` limit.
- ✗
It will decrease the number of replicas
Why it's wrong here
Scaling down only occurs when the observed CPU utilization drops below the target value, making the ratio less than 1. In this scenario, the CPU is above the target, so the HPA would compute a ratio greater than 1 and therefore scale up, never down. Decreasing the replica count here would be the opposite direction and would worsen the CPU pressure, so the HPA correctly ignores that action. The direction of scaling is strictly determined by the metric-to-target ratio.
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.