1V0-71.21 · Question #4
What two kubectl commands would provide the status of Pod in a Kubernetes cluster? (Choose two.)
The correct answer is A. kubectl get pods B. kubectl describe pods. kubectl get pods (A) lists all pods with their current status, restart count, and age - a quick snapshot of pod health. kubectl describe pods (B) provides detailed information including events, conditions, resource limits, and recent errors, making it invaluable for diagnosing…
Question
What two kubectl commands would provide the status of Pod in a Kubernetes cluster? (Choose two.)
Options
- Akubectl get pods
- Bkubectl describe pods
- Ckubectl pods status
- Dkubectl status pods
How the community answered
(49 responses)- A88% (43)
- C4% (2)
- D8% (4)
Explanation
kubectl get pods (A) lists all pods with their current status, restart count, and age - a quick snapshot of pod health. kubectl describe pods (B) provides detailed information including events, conditions, resource limits, and recent errors, making it invaluable for diagnosing issues.
Options C and D are invalid - kubectl pods status and kubectl status pods are not real kubectl commands and will return errors. kubectl follows the pattern kubectl <verb> <resource>, and "status" is not a valid verb in this context.
Memory tip: Think of the two valid verbs as "get" (quick glance) and "describe" (deep dive) - both are standard kubectl verbs that work across all resource types, not just pods.
Topics
Community Discussion
No community discussion yet for this question.