KCNA Kubernetes Fundamentals Practice Question
Which kubectl command would you use to view the detailed state of a pod named 'web-pod' in the 'default' namespace?
⚠ Common exam trap
A common mix-up: candidates confuse `kubectl get` (which shows a summary) with `kubectl describe` (which shows detailed state), especially when the question asks for 'detailed state' — CNCF often tests this distinction by making the summary command look plausible at first glance.
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 describe pod web-pod
`kubectl describe pod web-pod` retrieves a detailed, multi-section view of the pod's current state, including events, conditions, container statuses, and resource usage. This command is specifically designed for deep inspection of a Kubernetes resource, unlike `kubectl get` which shows a summary, or `kubectl logs` which shows container output.
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 logs web-pod
Why it's wrong here
kubectl logs returns container stdout and stderr, not pod status, events or container states. It tempts because logs are the usual first stop when a pod misbehaves, and it would be correct for reading application output; kubectl describe pod web-pod -n default shows the detailed state instead.
- ✗
kubectl get pod web-pod
Why it's wrong here
This prints only a summary line, not the detailed state the question asks for. It is tempting because it is the standard way to list pods and confirm existence or status at a glance, and would be correct if the requirement were simply to check whether web-pod is running.
- ✓
kubectl describe pod web-pod
Why this is correct
`kubectl describe pod web-pod` retrieves the pod's full status via the API server, showing events, container states, conditions and resource details — exactly the "detailed state" the stem requests. Unlike `get`, which returns summary columns, `describe` aggregates the diagnostic context needed to inspect a specific pod in the default namespace.
- ✗
kubectl exec web-pod -- /bin/sh
Why it's wrong here
This opens an interactive shell inside the container rather than reporting the pod's state, so it returns no status detail. It is tempting because exec is the go-to command for inspecting a running container from within, and would be correct if you needed to troubleshoot the application itself.
Go deeper
Related to this question
About these practice questions
Courseiva writes every KCNA question from scratch — 930 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 KCNA 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 KCNA exam.