Bird
0
0

Why is kubectl explain preferred over reading raw API docs when exploring Kubernetes resource fields?

hard📝 Conceptual Q10 of 15
Kubernetes - kubectl Essential Commands
Why is kubectl explain preferred over reading raw API docs when exploring Kubernetes resource fields?
ABecause it provides logs of resource changes
BBecause it lists all running resources in the cluster
CBecause it automatically fixes YAML manifest errors
DBecause it shows live, version-specific API schema directly from the cluster
Step-by-Step Solution
Solution:
  1. Step 1: Understand the source of kubectl explain data

    It queries the cluster's API server for the current version's schema.
  2. Step 2: Compare with static API docs

    kubectl explain is live and version-aware, unlike static docs that may be outdated.
  3. Final Answer:

    Because it shows live, version-specific API schema directly from the cluster -> Option D
  4. Quick Check:

    kubectl explain = live API schema [OK]
Quick Trick: kubectl explain reflects your cluster's API version live [OK]
Common Mistakes:
  • Thinking it shows runtime resource lists
  • Assuming it fixes YAML or shows logs
  • Confusing with kubectl get or describe

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes