GCP Associate Cloud Engineer Practice Question

You provisioned a regional GKE cluster called analytics-cluster in region us-central1 in the acme-prod project. From Cloud Shell you want to set up kubectl so that you can manage the cluster immediately. You have not configured any Kubernetes contexts yet. Which single command will correctly create the kubeconfig entry and set the current context?

  • gcloud container clusters get-credentials analytics-cluster --zone us-central1-a --project acme-prod

  • kubectl config use-context gke_acme-prod_us-central1_analytics-cluster

  • gcloud gke clusters connect analytics-cluster --region us-central1 --project acme-prod

  • gcloud container clusters get-credentials analytics-cluster --region us-central1 --project acme-prod

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