GCP Professional Cloud Architect Practice Question

Your organization wants to standardize on Terraform for all Google Cloud projects across dev, test, and prod folders. The platform team must design the remote backend so that:

  1. Terraform state is kept outside developer laptops and encrypted with a customer-managed Cloud KMS key.
  2. Every change to the state file can be audited and previous versions can be restored.
  3. Parallel terraform apply jobs triggered by different Cloud Build pipelines are automatically serialized to prevent corruption.
  4. Each pipeline's service account receives only the least-privilege IAM role required to manage the state backend. Which solution best satisfies all of these requirements while minimizing ongoing operational overhead?
  • Create a dedicated infrastructure project containing a Cloud Storage bucket with object versioning enabled and protected by a customer-managed Cloud KMS key. Configure the Terraform gcs backend to store separate state files for each environment in that bucket, and grant every Cloud Build service account the Storage Object Admin role on the bucket.

  • Use Terraform Cloud as the remote backend with a single workspace per environment and rely on its default encryption; grant all engineers the Project Editor role for convenience when troubleshooting failed plans.

  • Store terraform.tfstate in a private Cloud Source Repository encrypted with a CMEK; allow Cloud Build service accounts Repository Writer access so they can push and pull the state file.

  • Mount a Cloud Filestore instance via NFS into each Cloud Build worker and write a shared terraform.tfstate file there; enable CMEK on the Filestore volume and grant Compute Admin to the pipeline service accounts.

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