GCP Professional Cloud Architect Practice Question

Your security operations team must regularly generate and rotate short-lived service-account keys across dozens of Google Cloud projects. Today, senior engineers run a Bash script from their laptops with the gcloud CLI, but executions frequently fail because team members have outdated SDK versions or stale local credentials.

Leadership asks you to redesign the workflow so that:

  • It is reproducible and consistent across engineers.
  • No long-lived credentials remain on engineer workstations.
  • Additional operational cost and complexity are avoided.

Which solution best meets these requirements?

  • Provision a small, always-running f1-micro Compute Engine VM in each project, install the Cloud SDK, copy the script to the instance, and allow engineers to SSH in and execute it when needed.

  • Package the script into a container image and deploy it to Cloud Run in every project. Expose an IAM-authenticated HTTPS endpoint that engineers call to trigger key rotation.

  • Create a Cloud Build pipeline that runs automatically every night in each project. Grant the Cloud Build runtime service account permissions to manage service-account keys so that each build rotates keys on schedule.

  • Store the key-rotation script in each engineer's Cloud Shell $HOME directory (persisted on the free 5-GB disk). Engineers open Cloud Shell on demand, run the script with the pre-installed gcloud CLI, and close the session when finished.

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