
Answer-first summary for fast verification
Answer: gcloud container clusters get-credentials devops
To interact with your newly created GKE cluster, you must first obtain authentication credentials. This is achieved using the `gcloud` command, not `kubectl`. The correct syntax is `gcloud container clusters get-credentials [cluster-name]`, which configures `kubectl` to use the specified cluster.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
After setting up a GKE cluster named 'devops', you need to obtain authentication credentials to interact with it. Which CLI command should you use?
A
kubectl container clusters get-credentials devops
B
gcloud containers cluster get-credentials devops
C
gcloud container clusters get-credentials devops
D
kubectl containers cluster get-credentials devops