Courseiva
Kubernetes Fundamentals →easyMultiple Choice

KCNA Kubernetes Fundamentals Practice Question

Which command would you use to view the current state of all Pods in the default namespace?

⚠ Common exam trap

It's easy for candidates to confuse `kubectl get` with non-existent verbs like `list` or `show`, or mistakenly think `describe` is used for listing all resources, when `describe` is actually for detailed inspection of specific resources.

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 get pods

The `kubectl get pods` command retrieves and displays the current state of all Pods in the default namespace. It is the standard imperative command for listing Kubernetes resources, showing key fields like NAME, READY, STATUS, RESTARTS, and AGE.

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

    Why it's wrong here

    kubectl describe pods returns verbose detail for pods, including events, but not the concise tabular state listing the question asks for. It is tempting because describe does report pod status; it is the right choice when diagnosing a single pod's scheduling or image-pull failures.

  • ✓

    kubectl get pods

    Why this is correct

    `kubectl get pods` queries the Kubernetes API server for Pod objects in the active namespace, which defaults to `default`, returning their current phase and status. It satisfies the stem's requirement to view all Pods in that namespace without extra flags, unlike commands needing `-n` or `--all-namespaces`.

  • ✗

    kubectl list pods

    Why it's wrong here

    kubectl has no 'list' verb; listing objects is performed by 'get', as in kubectl get pods. It is tempting because 'list' describes the desired outcome, yet kubectl's verb set is get, describe, create, apply and delete, so the command returns an unknown-command error.

  • ✗

    kubectl show pods

    Why it's wrong here

    kubectl has no 'show' verb; the resource is supplied to 'get', as in kubectl get pods. It is tempting because 'show' reads naturally as displaying state, but that verb belongs to other CLI tools, not kubectl's verb set of get, describe, create, apply and delete.

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

Same concept, more angles

1 more way this is tested on KCNA

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. What does the 'kubectl get pods' command display?

medium
  • A.Detailed information about a specific pod
  • ✓ B.A list of all pods in the current namespace
  • C.The YAML definition of a pod
  • D.The logs of all pods

Why B: The 'kubectl get pods' command lists all pods in the current namespace, providing a summary of their status, restarts, and age. This is the default behavior without specifying a namespace or pod name, making it the primary command for pod discovery and health checks.

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.