Google PCA: DevOps, Delivery Engineering and Infrastructure as Code — Study Guide

Part of the Google Professional Cloud Architect — Study Guide. Practice with verified answers in the Google exam hub, or take timed practice tests on ExamRoll.io.

Overview

DevOps, Delivery Engineering, and Infrastructure as Code (IaC) on Google Cloud focus on continuously delivering reliable changes with strong traceability, automation, and safety. Architectures should optimize for short feedback cycles, repeatable deployments, immutable infrastructure, and guardrails that scale with the organization. On Google Cloud this typically combines source control best practices; CI with Cloud Build; artifact management with Artifact Registry; CD with Cloud Deploy; Kubernetes with GKE using manifests, Helm, or Kustomize; GitOps for configuration drift control; and IaC with Terraform or Google Cloud deployment templates. Operational excellence requires progressive delivery (blue-green, canary, traffic splitting, and feature flags), software supply-chain controls (scanning, provenance, signing), testing and deployment gates, and governance that balances speed, safety, auditability, and ownership.

CI/CD, source control, and release orchestration

Infrastructure as Code and configuration management

Progressive delivery, supply chain, testing, and verification

Governance, safety, auditability, and ownership

Practical Problem Scenario

Company: Borealis Fintech

Challenge: Borealis is launching a new payments API on GKE while maintaining v1 and v2 under the same hostname and TLS. They need end-to-end traceability, progressive delivery with canary and feature flags, strong supply-chain controls, and audited promotions across dev, staging, and prod. They also want GitOps for cluster config and Terraform for platform resources.

Approach:

  1. Establish source control and branching

    • Create a mono-repo with service directories and a separate infra repo. Enforce protected main, mandatory PR reviews, CODEOWNERS, and signed commits. Rationale: trunk-based flow with clear ownership and audit-ready history.
  2. Build artifacts with Cloud Build and Artifact Registry

    • Define cloudbuild.yaml to build and push images tagged by $COMMIT_SHA and annotated with SBOM and provenance. Use a dedicated Cloud Build service account with least privilege and a Private Pool. Rationale: reproducible, isolated builds with traceable digests.
    • Example:
      • gcloud artifacts repositories create app –repository-format=docker –location=us
  3. Implement software supply-chain controls

    • Enable vulnerability scanning in Artifact Registry. Generate provenance and sign images with Cosign in Cloud Build post-build steps. Configure Binary Authorization to require signatures and scanning pass before GKE deploy. Rationale: block untrusted or vulnerable artifacts at enforcement time.
  4. Model delivery with Cloud Deploy

    • Define a delivery pipeline with targets dev, staging, prod and a canary strategy for prod. Require manual approval for prod with role-based approvers. Rationale: immutable promotion and auditable approvals.
    • clouddeploy.yaml (excerpt):
      • strategy:
        • canary:
          • canaryDeployment:
            • percentages: [5, 25, 50, 100]
  5. Route v1 and v2 APIs under the same hostname

    • Configure an external HTTP(S) Load Balancer with separate backend services for /v1 and /v2 paths, each pointing to the corresponding GKE NEG. Rationale: clean path-based isolation, same certificate and DNS, independent deployability.
    • Example (excerpt):
      • gcloud compute url-maps add-path-matcher api-map –path-matcher-name api-pm –default-service v1-bes –path-rules="/v1/=v1-bes,/v2/=v2-bes"
  6. Manage infrastructure with Terraform

    • Create modules for VPC, GKE, Artifact Registry, service accounts, and IAM. Store remote state in a CMEK-protected Cloud Storage bucket with versioning and retention. Enforce OPA policies in CI to prevent risky changes. Rationale: reusable, reviewable, and governed platform provisioning.
    • backend “gcs” { bucket = “borealis-tf-state” prefix = “prod” }
  7. Configure Kubernetes with Helm/Kustomize and GitOps

    • Maintain base manifests for the API and overlays per env using Kustomize. Use Config Sync or Argo CD to reconcile clusters to the Git state. Rationale: declarative, auditable, and drift-resistant operations.
  8. Progressive delivery with canary and feature flags

    • Use Cloud Deploy canary for prod and a feature-flag SDK (OpenFeature) to gate new logic. Start at 5% of traffic, auto-promote upon healthy SLOs; auto-rollback on degradation, and use the flag as a kill switch. Rationale: reduce blast radius and decouple deploy from release.
  9. Quality gates and verification

    • Pipeline stages: unit tests → integration tests against ephemeral env → container scan → policy checks → staging end-to-end tests → prod canary with automated SLO-based verification (Cloud Monitoring, Error Reporting, Trace). Rationale: fast feedback early, strong safety before prod, and objective health checks post-deploy.
  10. Operations, logging, and audit

    • Install Cloud Logging/Monitoring agents for supporting VMs and enable GKE workload logs/metrics. Export CI/CD and Audit Logs to BigQuery with scoped views for auditors. Maintain runbooks (including safe rollback and emergency DNS or LB switch procedures). Rationale: observability for rapid remediation and compliance-ready evidence.

This design preserves speed with trunk-based flow and automated pipelines; safety with canary, feature flags, and Binary Authorization; auditability with immutable artifacts, approvals, and centralized logs; and clear ownership via CODEOWNERS and GitOps-controlled environments.


Operations · All domains · Cost

Practice these questions → · Timed practice on ExamRoll.io →

Pass the whole exam — not just this question

You found this answer. Get every verified question and explanation in one place, and save hours of prep. Free to start.

Pass your exam →

Browse Google →

Related guides

All-in-one access

One subscription. Every exam.

Every plan unlocks unlimited answer search, practice tests, AI explanations, and the full resource library — in 20+ languages.

Monthly
24.87
Just €0.83/day
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

Best value
12 months
179.87
Just €0.49/daySave 40%
Everything included:
  • Unlimited answer search
  • Unlimited practice tests
  • AI-powered explanations
  • Full resource library
  • 20+ languages
  • Weekly content updates
  • Rewards & referrals
  • Priority support
Start free trial

No credit card required*

✓ Free plan included · ✓ Cancel anytime · ✓ All plans unlock the full product