nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #298

You used the gcloud container clusters command to create two Google Cloud Kubernetes (GKE) clusters: prod-cluster and dev-cluster. - prod-cluster is a standard cluster. - dev-cluster is an…

The correct answer is A. gcloud container clusters get-credentials dev-cluster. gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine.

Submitted by satoshi_tk· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

You used the gcloud container clusters command to create two Google Cloud Kubernetes (GKE) clusters: prod-cluster and dev-cluster. - prod-cluster is a standard cluster. - dev-cluster is an auto-pilot cluster. When you run the kubectl get nodes command, you only see the nodes from prod-cluster. Which commands should you run to check the node status for dev-cluster?

Options

  • Agcloud container clusters get-credentials dev-cluster
  • Bgcloud container clusters update -generate-password dev-cluster kubectl get nodes
  • Ckubectl config set-context dev-cluster
  • Dkubectl config set-credentials dev-cluster

How the community answered

(38 responses)
  • A
    89% (34)
  • B
    3% (1)
  • C
    3% (1)
  • D
    5% (2)

Explanation

gcloud container clusters get-credentials updates a kubeconfig file with appropriate credentials and endpoint information to point kubectl at a specific cluster in Google Kubernetes Engine.

Topics

#GKE#kubectl#cluster credentials#get-credentials

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice