Prepare and test your skills
Prepare and test your skills
Free sample question, answered and explained below. The Professional Cloud DevOps Engineer practice bank has 1,455 more like it. Try 10 free: instant score, no account.
Your enterprise is deploying an enterprise-grade Google Cloud foundation using the Cloud Foundation Toolkit (CFT) and Terraform. You need to establish the bootstrap pipeline architecture and Terraform state management according to Google-recommended practices.
The deployment must satisfy the following technical requirements:
Which implementation should you choose?
This configuration uses a centralized, unversioned Cloud Storage bucket residing in a shared folder for all state storage, while mapping module outputs directly to raw input variables (such as value = var.vpc_name).
outputs.tf bypasses Terraform's dependency engine. When an output references var.vpc_name instead of google_compute_network.main.name, Terraform does not register an implicit dependency, leading to race conditions where child modules attempt to consume resources before they are created.depends_on blocks across all consuming modules, increasing code maintenance and error rates.You were building a lightweight, non-production prototype that does not require dependency tracking, disaster recovery, or enterprise governance.
The Cloud Foundation Toolkit (CFT) deployment methodology uses a phased, layered approach to establish an enterprise cloud foundation. The initial stage, 0-bootstrap, provisions the prerequisite infrastructure required to run automated GitOps pipelines securely, establishing isolated environments for continuous integration and continuous deployment (CI/CD) and state management.
0-bootstrap stage configures a dedicated seed project that hosts Google Cloud Storage (GCS) buckets for Terraform remote backends. Enabling Object Versioning on these state buckets prevents catastrophic data loss by preserving previous revisions of the state file across modifications.outputs.tf reference direct resource attributes (e.g., google_compute_network.vpc.id) rather than passing through input variables (e.g., var.network_name). This ensures Terraform accurately builds the directed acyclic graph (DAG) for resource creation order and dependency tracking.This architecture establishes a secure, repeatable foundation baseline aligned with Google Cloud landing zone standards, ensuring complete auditability, immutability of historical state, and seamless dependency propagation across modular stages.
This option merges all deployment stages—foundation configuration, infrastructure provisioning, and application deployments—into a single monolithic CI/CD pipeline while saving .tfstate files directly in a Git version control repository.
The workload were entirely ephemeral and managed by a single developer on a local machine with no multi-user collaboration or compliance requirements.
This pattern relies on decentralized, workstation-specific storage buckets where individual engineers authenticate using personal identity credentials and execute Terraform applies directly from their local terminal or Cloud Shell.
You were conducting individual proof-of-concept testing in an isolated, temporary sandbox project with no shared resources.
Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated