ExamGecko
Question list
Search
Search

Question 23 - 5V0-23.20 discussion

Report
Export

A user needs to identify the namespaces that may be accessed.

Which command will provide the desired output?

A.
kubect1 get storageclasses
Answers
A.
kubect1 get storageclasses
B.
kubect1 config use-context
Answers
B.
kubect1 config use-context
C.
kubect1 config get-contexts
Answers
C.
kubect1 config get-contexts
D.
kubect1 get contexts
Answers
D.
kubect1 get contexts
Suggested answer: C

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>

asked 16/09/2024
Andrew Carver
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first