Courseiva
Deploying and Implementing a Cloud SolutioneasyMultiple ChoiceObjective-mapped

Google ACE Deploying and Implementing a Cloud Solution Practice Question

Which kubectl command lists all pods in the current namespace?

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 command 'kubectl get pods' lists all pods. 'kubectl get all' includes services, deployments, etc. 'kubectl describe pods' shows detailed info. 'kubectl list pods' is invalid.

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

    Why it's wrong here

    kubectl does not have a 'list' subcommand; the CLI uses a verb-noun syntax where 'get' retrieves resources, not 'list'. Running 'kubectl list pods' produces an error like 'unknown command "list"' and never contacts the API server, so it cannot return any pods. To list pods you must use the supported verb 'get'.

  • kubectl describe pods

    Why it's wrong here

    'kubectl describe pods' is a valid command, but it is designed for troubleshooting, not listing. For every pod it prints a lengthy block that includes metadata, labels, annotations, container details, volume mounts, conditions, and event history, making the output verbose and not a simple table. In contrast, 'kubectl get pods' prints a concise, one-line-per-pod summary suitable for listing.

  • kubectl get pods

    Why this is correct

    'kubectl get pods' is the canonical command to list pods in the current namespace. It queries the Kubernetes API and returns a table with columns such as NAME, READY, STATUS, RESTARTS, and AGE, one row per pod. This is the expected answer because the question asks for a command that lists pods, and 'get' is the standard verb for retrieving resource lists.

  • kubectl get all

    Why it's wrong here

    'kubectl get all' lists multiple resource types (e.g., pods, services, deployments, replicasets) in one combined view, not only pods. While pods appear in that output, the command is broad and also includes other workload and service resources, so it does not answer the specific request to 'list all pods'. Furthermore, 'get all' does not necessarily include every resource type (such as secrets or configmaps), making it misleading for complete enumeration.

About these practice questions

This ACE question is part of Courseiva's 769-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 →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This ACE practice question is part of Courseiva's free Google Cloud 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 ACE exam.