🔥 40% Off Crucial Exams Memberships — Deal ends today!

2 hours, 30 minutes remaining!

GCP Professional Cloud Architect Practice Question

Your team maintains a single Git repository that defines a standardized VPC landing zone using Terraform. Security mandates that the dev, staging, and prod environments must all use identical configuration logic without code duplication, must keep completely separate Terraform state files and IAM permissions, and must be promoted independently through their own CI/CD pipelines. Which Terraform feature provides the most straightforward way to satisfy these requirements while re-using the same configuration across all environments?

  • Parameterize the environment in variables and use a single backend so all environments share one remote state file.

  • Wrap the VPC code in a Terraform local-exec provisioner that calls gcloud with different projects for each environment.

  • Rewrite the configuration as a Google Cloud Deployment Manager composite type and deploy it three times.

  • Create a dedicated Terraform workspace for each environment and configure the backend to store state in environment-specific Cloud Storage prefixes.

GCP Professional Cloud Architect
Managing and provisioning a solution infrastructure
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