GCP Associate Cloud Engineer Practice Question

Your team of five engineers manages several Google Cloud projects with Terraform executed from their local workstations. The Terraform state file is currently committed to Cloud Source Repositories, and concurrent terraform apply commands sometimes overwrite one another, corrupting the state. Management also wants the ability to restore any previous version of the state file without running extra servers. Which approach best meets both requirements using only Google-managed services?

  • Create a dedicated Cloud Storage bucket, enable Object Versioning and uniform bucket-level access, configure the Terraform gcs backend with that bucket and a prefix, and grant the team's service account the roles/storage.objectAdmin role.

  • Store the terraform.tfstate file in a private Artifact Registry repository and enable vulnerability scanning to detect conflicting state updates.

  • Move the Terraform backend to Cloud SQL, enable point-in-time recovery, and control access with Cloud IAM roles on the database.

  • Keep the state file in Cloud Source Repositories but enforce branch protection rules and mandatory pull-request reviews before every git push.

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