CKAD Application Observability and Maintenance Practice Question
You need to view resource usage (CPU and memory) for all pods in the 'default' namespace. Which command should you use?
⚠ Common exam trap
It's easy for candidates to confuse `kubectl top pods` with `kubectl describe pods` or `kubectl logs`, mistakenly thinking that descriptive or log commands provide resource usage data, but only `kubectl top` accesses the metrics server for real-time utilization.
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
✓
kubectl top pods
`kubectl top pods` is the command specifically designed to display real-time CPU and memory usage metrics for pods in a Kubernetes cluster. It relies on the metrics server to collect resource usage data and presents it in a concise table format, making it the appropriate tool for viewing resource consumption in the 'default' namespace.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
kubectl top pods
Why this is correct
kubectl top pods is correct because it queries the Metrics API and prints real-time CPU and memory utilization for each pod in the current namespace. This command depends on the metrics-server (or a compatible metrics provider) being deployed in the cluster; without it, kubectl top pods fails with an error. It directly surfaces the live resource usage values needed to answer the question.
- ✗
kubectl logs pods
Why it's wrong here
kubectl logs pods is incorrect because it retrieves the stdout/stderr log output from containers, not CPU or memory metrics. Logs can reveal application-level errors or events, but they provide no quantitative view of resource consumption. To inspect actual usage, you need a metrics source, not log streams.
- ✗
kubectl describe pods
Why it's wrong here
kubectl describe pods is incorrect because it shows configuration details, status, events, and container resource requests/limits, but it does not show live utilization. The values like requests and limits are static declarations, not real-time measurements of CPU or memory being consumed. Therefore describe cannot tell you current resource usage.
- ✗
kubectl top nodes
Why it's wrong here
kubectl top nodes is incorrect because it reports aggregate CPU and memory usage at the node level, not per pod. While node-level totals can help identify a hot node, they cannot show which pod is consuming resources or how each pod is performing. The question specifically asks for pod-level usage, so this command answers a different scope.
Go deeper
Related to this question
About these practice questions
Courseiva writes every CKAD question from scratch — 826 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. 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.