Courseiva
Kubernetes Fundamentals →easyMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

Which kubectl command would you use to view detailed information about a pod named 'web-pod' in the 'default' namespace?

⚠ Common exam trap

Candidates often confuse `kubectl get` with `kubectl describe`, assuming that `get` provides all details, when in fact `get` only shows a terse summary and `describe` is required for the full object dump and event history.

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

The `kubectl describe pod web-pod` command retrieves detailed information about the specified pod, including its current status, events, container details, resource limits, and labels. This is the correct command for viewing comprehensive metadata and state information beyond the basic summary provided by `kubectl get`.

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

    Why this is correct

    kubectl describe pod web-pod queries the API server for the pod's full status, including events, conditions, container states, and recent scheduling failures. It defaults to the current namespace, so the default namespace requires no extra flag.

  • ✗

    kubectl get pod web-pod

    Why it's wrong here

    kubectl get pod returns a summary line, omitting the detailed status, events and container state the question asks for. It is tempting because it confirms the pod exists, and would be correct for a quick listing or checking readiness, but describe is needed for full detail.

  • ✗

    kubectl logs web-pod

    Why it's wrong here

    kubectl logs retrieves container stdout/stderr output, not pod metadata such as status, IP or events. It is tempting because logs are a common troubleshooting step, and would be correct when diagnosing application errors or crashes rather than inspecting the pod's configuration and state.

  • ✗

    kubectl exec web-pod -- env

    Why it's wrong here

    kubectl exec runs a command inside a container, returning environment variables rather than pod details. It is tempting because it inspects the running workload directly, and would be correct for verifying injected configuration or debugging from within the container, not for viewing pod status and metadata.

About these practice questions

One of 930 original KCNA 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 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.