Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
Your organization is designing an Infrastructure as Code (IaC) strategy using Terraform to deploy workloads across multiple Google Cloud environments (dev, qa, and prod). You need to design a scalable and maintainable architecture that adheres to Google Cloud best practices.
Your design must meet the following requirements:
How should you structure your Terraform configuration?
This architecture uses a standard directory separation model that decouples reusable child modules from environment-specific root modules. Common infrastructure resources are defined inside a dedicated modules/ directory, while distinct environment folders (dev, qa, prod) act as independent root execution directories that instantiate the child modules.
terraform.tfvars.backend.tf targeting dedicated Google Cloud Storage (GCS) state prefixes or buckets. This eliminates shared state file risks and reduces the blast radius of changes.terraform_remote_state.required_providers without hardcoding credentials or backend configurations.Separating reusable modules from distinct environment directories is the official standard for enterprise cloud infrastructure. It provides optimal modularity, reliable testing boundaries, and predictable execution plans.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.