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.
A DevOps engineering team is designing an automated Infrastructure as Code (IaC) pipeline using Terraform to provision multi-tenant environments and Google Kubernetes Engine (GKE) clusters across an enterprise Google Cloud organization.
The deployment strategy must satisfy the following architectural and operational requirements:
Which architecture and integration pattern should the DevOps team implement?
roles/editor permissions to the CI/CD service account, and embed sensitive deployment variables in local .tfvars files.This pattern uses Cloud Storage's legacy S3-compatible XML API interoperability mode for state storage along with broad primitive IAM assignments and local variable files.
s3 backend configured against Cloud Storage interoperability endpoints is a legacy pattern. It requires generating HMAC access/secret keys, introducing additional long-lived static secrets, and does not provide native integration with Google Cloud IAM or Cloud KMS key policies compared to the dedicated gcs backend.roles/editor at an organization or folder level grants excessive permissions, violating least-privilege compliance. Leaving sensitive variables in .tfvars files risks accidental check-ins and lacks centralized secrets lifecycle management.You were migrating an existing AWS Terraform configuration to GCP without modifying backend definitions during an intermediate proof-of-concept phase.
-var).This approach relies on storing state files within version control systems (Git) and passing static credentials and service account keys directly through pipeline execution parameters.
terraform apply concurrently, git-based locking cannot prevent simultaneous API calls to Google Cloud, resulting in state file corruption and conflicting infrastructure changes..tfstate in Git exposes confidential metadata to repository readers. Furthermore, using long-lived exported JSON service account keys creates significant exposure and credential leakage risks compared to federated authentication.-var) is error-prone, hard to audit, and poorly suited for modular templating.You were working on a single-developer, local playground environment with no sensitive infrastructure resources and no CI/CD concurrency requirements.
roles/owner role for all deployments, and maintain configuration templates using ad-hoc shell scripts.This configuration leverages a target Kubernetes cluster's control plane to store state in ConfigMaps/Secrets and uses a shared administrative Compute Engine instance with broad primitive IAM permissions to execute deployments.
roles/owner to a central VM completely violates the principle of least privilege and expands the blast radius across the entire organization.You were exclusively deploying application-level Kubernetes objects within an existing, externally managed cluster and did not manage foundational cloud resources like VPCs, IAM, and projects.
gcs backend with Object Versioning and Cloud KMS encryption, authenticate CI/CD runners using Workload Identity Federation to impersonate granular service accounts, and deploy resources using Cloud Foundation Toolkit modules integrated with Secret Manager.This architecture establishes a secure, enterprise-grade Infrastructure as Code (IaC) delivery pipeline by combining the native Google Cloud Storage (gcs) backend, keyless authentication via Workload Identity Federation, modular governance via the Cloud Foundation Toolkit (CFT), and centralized secrets management with Secret Manager.
gcs backend provides native state locking and consistency via Cloud Storage preconditions, preventing race conditions during concurrent pipeline runs. Enabling Object Versioning allows recovery against accidental state corruption or deletion, while encryption via Cloud Key Management Service (KMS) or default Google-managed keys protects sensitive infrastructure mappings at rest.terraform-google-secret-manager module rather than exposed in cleartext source files.bootstrap, project-factory, and kubernetes-engine—ensures standardized, opinionated, and compliant infrastructure deployments across the organization.This approach aligns with Google Cloud DevOps best practices by enforcing immutability, automated governance, secure credential lifecycles, and resilient state storage.
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