GCP Professional Cloud Architect Practice Question

Your security team forbids storing any service-account key files on your on-premises CI server. You must write a Bash script that, from this server, provisions a regional Standard GKE cluster in each of 15 production projects. The script must run unattended, ensure every API call is attributed to a dedicated deploy-service account in the target project, and must not alter the global gcloud configuration between loop iterations. Which gcloud command structure satisfies these constraints?

  • gcloud --project=\({PROJECT} container clusters create my-cluster --region=us-central1 --impersonate-service-account=deploy-sa@\).iam.gserviceaccount.com --quiet

  • GOOGLE_CLOUD_PROJECT=$ gcloud container clusters create my-cluster --region=us-central1 --no-user-output-enabled --quiet

  • export CLOUDSDK_CORE_PROJECT=$ && gcloud container clusters create my-cluster --region=us-central1 --quiet

  • gcloud config set project $ && gcloud auth activate-service-account --key-file=deploy-sa.json && gcloud container clusters create my-cluster --region=us-central1 --quiet

GCP Professional Cloud Architect
Managing implementation
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