Question 12
Domain 5: TroubleshootingWhich kubectl command is used to display detailed information about a pod named nginx?
Correct answer: A
Explanation
`kubectl describe pod nginx` shows detailed information for a specific pod because `describe` is the kubectl command used to display resource details, and `pod nginx` identifies the pod by name. This command returns the pod’s configuration, status, events, and other diagnostic information.
Why each option is right or wrong
A. kubectl describe pod nginx
`kubectl describe` is the Kubernetes CLI subcommand used to print a resource’s full diagnostic summary, and the object type/name syntax `pod nginx` targets the single Pod named nginx. In practice, this returns the Pod’s metadata, labels, node assignment, container state, and recent events, which is the detailed information the question asks for.
B. kubectl get pod nginx -o yaml
C. kubectl logs pod nginx
D. kubectl explain pod nginx