GCP Associate Cloud Engineer Practice Question

You have just deployed a zonal GKE cluster named "analytics-cluster" in us-central1-b under the project ID "data-prod". A teammate is logged in to Cloud Shell on their own account and already has the Google Cloud SDK and kubectl installed. To enable kubectl to talk to the new cluster by default, which single command should they execute?

  • gcloud kubectl get-credentials analytics-cluster --region us-central1-b --project data-prod

  • gcloud container clusters create-credentials analytics-cluster --zone us-central1-b --project data-prod

  • gcloud container clusters get-credentials analytics-cluster --zone us-central1-b --project data-prod

  • kubectl config set-context analytics-cluster --cluster=data-prod --zone us-central1-b

GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot