5V0-23.20 · Question #4
A user needs to identify the namespaces that may be accessed. Which command will provide the desired output?
The correct answer is C. kubect1 config get-contexts. A user can have permissions on multiple namespaces. The kubectl commands are typically actioned against the current active namespace. View the list of available namespaces: kubectl config get-contexts Change the current active namespace: kubectl config use-context <namespace>
Question
A user needs to identify the namespaces that may be accessed. Which command will provide the desired output?
Options
- Akubect1 get storageclasses
- Bkubect1 config use-context
- Ckubect1 config get-contexts
- Dkubect1 get contexts
How the community answered
(36 responses)- A8% (3)
- B6% (2)
- C83% (30)
- D3% (1)
Explanation
A user can have permissions on multiple namespaces. The kubectl commands are typically actioned against the current active namespace. View the list of available namespaces: kubectl config get-contexts Change the current active namespace: kubectl config use-context <namespace>
Topics
Community Discussion
No community discussion yet for this question.