Google
ASSOCIATE-CLOUD-ENGINEER · Question #216
You are assigned to maintain a Google Kubernetes Engine (GKE) cluster named dev that was deployed on Google Cloud. You want to manage the GKE configuration using the command line interface (CLI). You
The correct answer is A. Use the command gcloud config set container/cluster dev. To set a default cluster for gcloud commands, run the following command: gcloud config set container/cluster CLUSTER_NAME https://cloud.google.com/kubernetes-engine/docs/how-to/managing-clusters?hl=en
Submitted by anjalisingh· Mar 30, 2026Ensuring successful operation of a cloud solution
Question
You are assigned to maintain a Google Kubernetes Engine (GKE) cluster named dev that was deployed on Google Cloud. You want to manage the GKE configuration using the command line interface (CLI). You have just downloaded and installed the Cloud SDK. You want to ensure that future CLI commands by default address this specific cluster. What should you do?
Options
- AUse the command gcloud config set container/cluster dev
- BUse the command gcloud container clusters update dev
- CCreate a file called gke. default in the -/ .gcloud folder that contains the cluster name
- DCreate a file called defaults. j son in the -/.gcioud folder that contains the cluster name
How the community answered
(17 responses)- A88% (15)
- C6% (1)
- D6% (1)
Explanation
To set a default cluster for gcloud commands, run the following command: gcloud config set container/cluster CLUSTER_NAME https://cloud.google.com/kubernetes-engine/docs/how-to/managing-clusters?hl=en
Topics
#GKE#gcloud CLI#cluster configuration#Cloud SDK
Community Discussion
No community discussion yet for this question.