Kubernetes and Cloud Native Associate (KCNA) — Question 109
Which kubectl command is useful for collecting information about any type of resource that is active in a Kubernetes cluster?
Answer options
- A. describe
- B. list
- C. expose
- D. explain
Correct answer: A
Explanation
The 'describe' command in kubectl provides detailed information about a specific resource, including its current state and configuration. The 'list' command simply shows resources without in-depth details, 'expose' is used to create a service, and 'explain' provides documentation about resources but does not fetch active resource data.