Courseiva
Troubleshooting →easyMultiple Select

CKA Troubleshooting Practice Question

Which TWO of the following are valid commands to check resource usage of pods?

⚠ Common exam trap

Many exam-takers confuse `kubectl describe pods` (which shows resource requests/limits) with actual resource usage, or they mistakenly think `kubectl get pods --watch` provides real-time performance metrics instead of status changes.

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 pod <pod-name>

Option C, `kubectl top pod <pod-name>`, is correct because the `kubectl top` command retrieves live CPU and memory usage metrics for a specific pod from the Metrics Server, which is exactly what checking resource usage of a pod requires. Option E, `kubectl top pods`, is also correct because it lists current CPU and memory consumption for all pods in the namespace, directly satisfying the resource-usage check. Option A, `kubectl top nodes`, is not correct here because it reports resource usage of cluster nodes, not pods. Option B, `kubectl describe pods`, shows configuration, events, and status details but not live CPU/memory usage metrics. Option D, `kubectl get pods --watch`, only streams pod status changes and does not report resource consumption.

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 nodes

    Why it's wrong here

    kubectl top nodes is invalid for checking pod resource consumption because it aggregates CPU and memory utilization at the node level, presenting the combined usage of all pods running on each node. This command helps with cluster-wide capacity planning but obscures per-pod breakdown, making it impossible to identify which individual pod is consuming excessive resources without further cross-referencing.

  • ✗

    kubectl describe pods

    Why it's wrong here

    kubectl describe pods is not intended for real-time resource usage monitoring; it outputs detailed metadata such as labels, annotations, pod status, container images, and event history. While it includes configured resource requests and limits, it does not expose actual CPU or memory utilization, so it cannot answer whether a pod is exceeding its allocated resources.

  • ✓

    kubectl top pod <pod-name>

    Why this is correct

    kubectl top pod <pod-name> is a valid command that queries the Metrics API (backed by metrics-server) to display real-time CPU and memory usage for the specific named pod. It reports usage in cores and MiB (or GiB) for each container, making it the precise tool for troubleshooting a single pod's resource consumption against its requests/limits.

  • ✗

    kubectl get pods --watch

    Why it's wrong here

    kubectl get pods --watch is incorrect because it streams pod lifecycle changes, such as phase transitions (Pending, Running, Succeeded) and restart events, but does not collect or display resource utilization metrics. The watch flag merely keeps the command running and prints updates on status changes, not on CPU or memory usage.

  • ✓

    kubectl top pods

    Why this is correct

    kubectl top pods is a valid command that shows CPU and memory usage for all pods in the current namespace (or all namespaces with the -A flag), aggregated per pod. It leverages the same Metrics API as kubectl top pod but provides a wider view, making it useful for comparing resource consumption across multiple pods at once.

About these practice questions

One of 726 original CKA 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This CKA 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 CKA exam.