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.
An enterprise organization wants to streamline infrastructure provisioning on Google Cloud while eliminating manual interventions. Currently, engineers execute terraform apply directly from their local workstations, leading to configuration drift and inconsistent environments between staging and production.
The cloud architecture team establishes the following governance and operational requirements:
dev environment prior to promotion to prod.How should you design this automated provisioning workflow?
A GitOps infrastructure workflow uses a version-controlled Git repository as the single source of truth for infrastructure configuration, paired with automated CI/CD tools such as Cloud Build to execute Terraform commands predictably and reliably across environments.
terraform plan. Collaborators can inspect the generated execution plan directly on the pull request before any code is merged, preventing unintended changes from entering the codebase.dev to prod): Merging approved pull requests into the dev branch triggers a Cloud Build job that executes terraform apply against the development environment. Once verified in dev, a subsequent pull request merges the dev branch into prod, triggering an automated terraform apply in the production environment.terraform plan) and validated against policies before actuation.This architecture adheres to Google Cloud's recommended GitOps blueprint for Infrastructure as Code. It establishes strict environment isolation, prevents configuration drift, and ensures changes are validated before impacting production workloads.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.