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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
An enterprise is establishing an Infrastructure as Code (IaC) strategy on Google Cloud to manage multi-tier compute workloads across development, testing, and production environments.
The infrastructure team has outlined the following technical requirements:
Which operational approach best fulfills these requirements?
Use configuration management tools like Ansible or Puppet to imperatively build VM instances, without external state files or cloud provider plugins
Author shell scripts utilizing the Google Cloud CLI (gcloud) committed to Git, and run imperative scripts directly against each target environment
Manually create golden machine images in the Google Cloud console for each environment and deploy Compute Engine instances from the console UI
Store declarative Terraform configurations in a Git repository, package standardized compute topologies into reusable Terraform modules, and maintain remote state in Cloud Storage buckets
Use configuration management tools like Ansible or Puppet to imperatively build VM instances, without external state files or cloud provider plugins
Author shell scripts utilizing the Google Cloud CLI (gcloud) committed to Git, and run imperative scripts directly against each target environment
Manually create golden machine images in the Google Cloud console for each environment and deploy Compute Engine instances from the console UI
Store declarative Terraform configurations in a Git repository, package standardized compute topologies into reusable Terraform modules, and maintain remote state in Cloud Storage buckets
HashiCorp Terraform is a declarative Infrastructure as Code (IaC) tool that lets platform engineers define, provision, and manage Google Cloud infrastructure using HashiCorp Configuration Language (HCL). Declarative configurations describe the intended end-state of infrastructure rather than sequential execution scripts.
terraform.tfstate), typically stored centrally in a secure Cloud Storage bucket backend. The state file maps declared configuration objects to real-world cloud resources, tracks metadata, detects configuration drift, and allows Terraform to determine necessary creates, updates, and destroys during terraform plan and terraform apply operations.terraform plan command provides visibility into pending infrastructure changes before modifications are applied to live environments.This approach combines reusable architectural templates, strict state tracking, and source control governance, providing the highest level of repeatability, security, and lifecycle management for Google Cloud infrastructure.