KCNA Cloud Native Observability Practice Question
A Kubernetes administrator is troubleshooting a pod that is stuck in CrashLoopBackOff. The pod's restart count is increasing. Which initial step should the administrator take to diagnose the issue?
⚠ Common exam trap
The trap here is that candidates often jump to `kubectl describe pod` (Option A) because it shows events and status, but they overlook that application-level errors are only visible in the container logs, not in the pod events.
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
✓
Run 'kubectl logs <pod-name>' to view the application logs
When a pod is in CrashLoopBackOff, the immediate priority is to inspect the application logs to understand why the container is failing. `kubectl logs <pod-name>` retrieves the stdout/stderr output from the container, which typically contains error messages, stack traces, or configuration issues that caused the crash. This is the most direct and efficient first step before deeper investigation.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Run 'kubectl describe pod <pod-name>' to check events
Why it's wrong here
Events may indicate issues but usually lack application-level error details.
- ✗
Check the Prometheus metrics for the pod's CPU usage
Why it's wrong here
CPU metrics are unlikely to reveal crash causes.
- ✗
Run 'kubectl exec -it <pod-name> -- /bin/sh' to inspect the container
Why it's wrong here
Cannot exec into a crashed pod; it must be running.
- ✓
Run 'kubectl logs <pod-name>' to view the application logs
Why this is correct
Logs often contain error messages that explain why the application is crashing.
Go deeper
Related to this question
About these practice questions
This KCNA question is part of Courseiva's 833-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.