easyMultiple ChoiceObjective-mapped
Google ACE Practice Question: Check the CPU and memory utilization of all pods…
You need to check the CPU and memory utilization of all pods running in the `production` namespace. Which command provides this information?
⚠ Common exam trap
Google Cloud often tests the distinction between commands that show pod status/configuration (`describe`, `get`) versus those that show live resource metrics (`top`), leading candidates to confuse descriptive output with performance data.
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 -n production`
The `kubectl top pods` command retrieves real-time CPU and memory utilization metrics from the metrics server for pods in a specified namespace. This is the correct tool for monitoring resource usage, as it directly queries the resource metrics API.
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 describe pods -n production`
Why it's wrong here
kubectl describe pods -n production prints a detailed manifest of each pod, including labels, annotations, container image, restart policy, and recent lifecycle events. It also reports resource requests and limits as configured, but it does not query the metrics-server for live CPU or memory consumption. The status section shows phase and conditions, not utilization numbers, so this command cannot answer a scheduling or capacity question about current pod resource pressure.
- ✓
`kubectl top pods -n production`
Why this is correct
kubectl top pods -n production is the correct way to inspect actual resource consumption because it directly queries the metrics-server, which aggregates per-pod CPU and memory usage from each node's kubelet and cAdvisor. The command renders a table with columns for CPU (cores) and memory (MiB) along with the container breakdown, filtered to the production namespace. It provides a near-real-time snapshot of utilization, not just configured requests or limits, and is the standard CLI tool for verifying which pods are consuming the most resources.
- ✗
`kubectl get pods -n production -o wide`
Why it's wrong here
kubectl get pods -n production -o wide extends the basic pod listing with extra columns: the node name, pod IP, and the host IP, and otherwise retains the same READY/STATUS/RESTARTS/AGE data. The -o wide output does not include any column for CPU, memory, or network utilization; it is purely a snapshot of scheduling and lifecycle state. To view historical or real-time resource metrics you must use a dedicated metrics command, not a get formatter.
- ✗
`kubectl logs -n production --all-pods`
Why it's wrong here
kubectl logs -n production --all-pods captures the stdout/stderr output written by application processes inside container, which is essential for debugging application errors but unrelated to resource accounting. Logs contain application event traces, stack traces, or request logs, never kernel-level CPU time or memory page statistics. Even if the --all-pods flag were valid (it is not; you would use a selector or --all-containers), the command still retrieves log streams, not the metrics-server data needed for live utilization.
Go deeper
Related to this question
About these practice questions
Courseiva writes every ACE question from scratch — 769 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 ACE practice question is part of Courseiva's free Google Cloud 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 ACE exam.