Certified Kubernetes Administrator (CKA) Practice Test

Question: 1 / 400

Which command is used to check the status of pods in a cluster?

kubectl status pods

kubectl get pods

The command used to check the status of pods in a Kubernetes cluster is "kubectl get pods." This command retrieves and displays the current state of all the pods in the specified namespace or the entire cluster if no namespace is specified. It provides crucial information such as the pod name, readiness status, phase (like Running, Pending, or Failed), and other relevant details that help cluster administrators monitor the health and performance of their applications.

Using "kubectl get pods" is a common practice because it gives a clear, concise overview of pod statuses at a glance, making it easier for administrators to quickly assess the state of their workloads.

Other options do not represent valid Kubernetes commands. For example, "kubectl status pods," "kubectl list pods," and "kubectl show pods" are not recognized commands within the Kubernetes CLI, making them ineffective for checking pod statuses. Therefore, the choice "kubectl get pods" is the correct and standard command for this purpose.

Get further explanation with Examzify DeepDiveBeta

kubectl list pods

kubectl show pods

Next Question

Report this question

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy