Question 752 of 1,005

Quick Answer

The answer is kubectl describe pod test-pod, as this command provides the most comprehensive diagnostic output for a pod stuck in Pending state. When a pod remains Pending, it means the scheduler has not yet assigned it to a node, and kubectl describe reveals the root cause through its Conditions and Events sections—showing issues like insufficient CPU or memory resources, unbound PersistentVolumeClaims, or node selector mismatches. On the Certified Kubernetes Administrator CKA exam, this scenario tests your understanding of pod lifecycle troubleshooting, and a common trap is reaching for kubectl logs or kubectl get events first, but logs are only available once the container starts, and get events may miss pod-specific details. The describe command aggregates all relevant status messages, scheduler decisions, and error conditions into one view, making it the fastest path to diagnosis. Memory tip: when a pod is Pending, think "Describe to decide"—the output tells you exactly why the scheduler is holding back.

CKA Practice Question: Cluster Architecture, Installation and Configuration

This CKA practice question tests your understanding of cluster architecture, installation and configuration. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

An administrator runs 'kubectl run test-pod --image=nginx' and the pod is created but stays in 'Pending' state. Which command would BEST help diagnose why the pod is not running?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "best"

    Why it matters: Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

  • Clue: "which command"

    Why it matters: Tests specific CLI syntax. Recall the exact command and its required context — near-synonyms and partial matches are common distractors.

Question 1mediummultiple choice
Full question →

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

Option B is correct because `kubectl describe pod test-pod` provides a detailed summary of the pod's current state, including events, conditions, and status messages that reveal why the pod is stuck in 'Pending'. The 'Pending' state typically indicates that the pod has not been scheduled to a node, often due to resource constraints (CPU/memory), persistent volume claims not being bound, or node selector mismatches. The 'Conditions' and 'Events' sections in the output directly expose these issues, making it the most effective diagnostic command.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

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

    Why it's wrong here

    Logs are only available if the container has started; a pending pod has not started any containers.

  • kubectl describe pod test-pod

    Why this is correct

    The describe command shows events and conditions that explain why the pod is pending.

    Clue confirmation

    The clue words "best", "which command" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

  • kubectl exec -it test-pod -- /bin/bash

    Why it's wrong here

    Exec requires a running container; the pod is pending, so exec will fail.

  • kubectl get events

    Why it's wrong here

    While events can provide clues, describe pod is more targeted and includes all relevant information for that pod.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often assume `kubectl logs` or `kubectl exec` can diagnose startup issues, but these commands only work on running containers, so they fail silently or with errors when the pod is still pending, wasting time and misdirecting troubleshooting.

Detailed technical explanation

How to think about this question

Under the hood, the Kubernetes scheduler assigns pods to nodes based on resource requests and node conditions. When a pod stays 'Pending', the scheduler's failure reasons (e.g., '0/3 nodes are available: 1 Insufficient cpu, 2 node(s) had taint') are recorded in the pod's status.conditions and the associated events. The `kubectl describe pod` command queries the pod object from the API server and displays these conditions, along with the 'Events' field that includes scheduler decisions, volume binding status, and any admission controller rejections. In a real-world scenario, a common subtlety is that a pod may be pending due to a PersistentVolumeClaim that is stuck in 'Pending' because no matching PV exists, which is clearly shown in the describe output under 'Volumes' and 'Events'.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the CKA exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related CKA practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free CKA practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this CKA question test?

Cluster Architecture, Installation and Configuration — This question tests Cluster Architecture, Installation and Configuration — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: kubectl describe pod test-pod — Option B is correct because `kubectl describe pod test-pod` provides a detailed summary of the pod's current state, including events, conditions, and status messages that reveal why the pod is stuck in 'Pending'. The 'Pending' state typically indicates that the pod has not been scheduled to a node, often due to resource constraints (CPU/memory), persistent volume claims not being bound, or node selector mismatches. The 'Conditions' and 'Events' sections in the output directly expose these issues, making it the most effective diagnostic command.

What should I do if I get this CKA question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "best", "which command". Signals that multiple options may be partially correct. Choose the option that most directly solves the exact problem described, not the one that sounds most complete.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 24, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.