4: Analyzing and optimizing technical and business processes

    Analyzing and defining technical processes. Considerations include

    The architect role on Google Cloud does not end when the design diagrams are accepted. The design only delivers business value if the engineering processes that produce, deploy, observe, and recover the system are themselves designed with the same discipline as the network and compute topology. The exam treats the technical process layer as a first-class deliverable.

    A candidate who has the perfect VPC and Cloud Run layout but cannot describe how code moves from a developer workstation to production, how a Stackdriver-era log entry becomes a Cloud Logging filter, how a failed Cloud Deploy promotion is rolled back, or how the Backup and DR Service plays into the recovery point objective is missing half of the architect's accountability.

    This section maps each technical process listed in the exam guide to the Google Cloud product that operates it, the Well-Architected Framework principle that governs it, and the failure modes that the exam exploits in scenario questions. The progression follows the lifecycle of a workload:

    • how the team writes code
    • how that code is built and shipped
    • how it is observed and debugged
    • how its quality is tested
    • how the underlying infrastructure is provisioned in a controlled way
    • how the whole system survives a catastrophic event

    💡 Exam Trap: When a question describes a deployment problem and asks for the architect recommendation, the answer is rarely the tool the developers asked for. It is the process change that removes the failure class. If a release keeps breaking production, the answer is canary deployment with Cloud Deploy plus Binary Authorization, not a faster Cloud Build pipeline.

    Software development lifecycle (SDLC)

    The software development lifecycle on Google Cloud is the sequence of activities by which an idea becomes a running production workload, then is operated, improved, and eventually retired. The exam treats SDLC as a process discipline, not a methodology debate.

    Whether the team practices Scrum, Kanban, SAFe, or extreme programming is not what the architect must decide. What the architect must decide is how the SDLC stages map to Google Cloud projects, repositories, build pipelines, deployment targets, and observability streams so that every stage produces an auditable artifact and a known signal.

    Key points

    The reference SDLC for an exam-grade Google Cloud team begins with a requirements stage that produces user stories backed by acceptance criteria, success metrics, and a service-level objective that the design must satisfy. The architect contributes the non-functional requirements covered in Chapter 1 (latency, availability, durability, throughput, recovery time objective and recovery point objective) and links each to a Well-Architected Framework pillar.

    The design stage produces an architecture decision record (ADR) that captures the choice of Cloud Run, GKE Autopilot, or Compute Engine for the workload, the rationale, the alternatives considered, and the cost and risk implications. The ADR is committed to the same source repository as the code so the decision is versioned with the implementation.

    The build stage is where Google Cloud tooling becomes visible. Source code lives in Cloud Source Repositories, on GitHub, or on GitLab; the choice does not change the architect role. Cloud Build triggers fire on a push or a pull request and run the unit tests, lint, container image build, vulnerability scan, and Software Delivery Shield provenance generation. The output is an immutable artifact in Artifact Registry that carries a digest, a Software Bill of Materials, and a signed SLSA build provenance attestation.

    The deploy stage is owned by Cloud Deploy, which reads a delivery pipeline manifest, promotes the artifact across dev, staging, and production targets, and integrates with Binary Authorization to refuse to deploy any artifact missing the required attestations.

    The operate stage feeds back into the SDLC through the Cloud Observability suite and Error Reporting.

    Defects flow back into the issue tracker, the on-call team uses Gemini Cloud Assist Investigations to find the change that introduced the regression, and the post-incident review feeds new acceptance criteria into the next iteration.

    The retire stage shuts down the workload behind a deprecation timeline, removes the project, and archives the audit logs into a long-lived Cloud Storage log bucket so that compliance evidence survives the workload.

    The architect responsibility across the SDLC is the policy layer. The choice of branching strategy, the merge gate, the required reviewers, the test coverage threshold, the artifact signing policy, the deployment approval, the rollback procedure, and the post-incident review template are all architecture decisions.

    They are encoded as Cloud Build configurations, Cloud Deploy targets, Binary Authorization policies, and Organization Policy constraints, then enforced uniformly across the estate.

    📊 Limit: A Cloud Build trigger has a default build timeout of 60 minutes and a maximum of 24 hours when explicitly configured. A single Cloud Build private pool can be sized up to the documented machine type for the worker, and concurrent build quota is enforced per region per project.

    ⚠️ Anti-Pattern: Letting individual product teams choose their own SDLC tooling without an organization-level guardrail. The result is a sprawl of Cloud Build configurations, inconsistent attestations, and no single audit story. The architect-led pattern is a paved-road SDLC: a project factory clones the source repo with prebuilt Cloud Build and Cloud Deploy manifests, and the Organization Policy constraints make any deviation visible.

    Continuous integration/continuous deployment

    Continuous integration and continuous deployment are the operational expression of the SDLC.

    Continuous integration is the practice of merging every developer change into a shared mainline branch many times per day, with each merge gated by an automated build and test suite.

    Continuous deployment extends that practice past the build into the promotion of the resulting artifact to production, with no manual handoff other than the explicit gate at each environment.

    How it works

    On Google Cloud, the CI half is operated by Cloud Build. A Cloud Build trigger watches a repository for events:

    • a push to a branch
    • a merge to main
    • the creation of a pull request
    • a manual invocation

    The trigger executes a cloudbuild.yaml definition that describes a sequence of steps. Each step runs a container image, with the workspace mounted as /workspace.

    The exam expects you to recognize the common steps:

    • code checkout
    • dependency resolution
    • unit testing
    • static analysis
    • container image build
    • container image push to Artifact Registry
    • vulnerability scan through Artifact Analysis
    • provenance generation through Software Delivery Shield

    The resulting image carries a Google Cloud digest of the form region-docker.pkg.dev/project/repo/image@sha256:... and an SLSA build provenance attestation.

    steps:
    - id: unit-test
     name: gcr.io/cloud-builders/mvn
     args: ['test']
    - id: build-image
     name: gcr.io/cloud-builders/docker
     args: ['build', '-t', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/svc/api:${SHORT_SHA}', '.']
    - id: push-image
     name: gcr.io/cloud-builders/docker
     args: ['push', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/svc/api:${SHORT_SHA}']
    - id: scan-image
     name: gcr.io/cloud-builders/gcloud
     args: ['artifacts', 'docker', 'images', 'scan', '${_REGION}-docker.pkg.dev/${PROJECT_ID}/svc/api:${SHORT_SHA}']
    options:
     requestedVerifyOption: VERIFIED
     logging: CLOUD_LOGGING_ONLY
    substitutions:
     _REGION: europe-west1
    

    The CD half on Google Cloud is operated by Cloud Deploy, a managed continuous delivery service that defines a delivery pipeline through declarative configuration.

    A delivery pipeline points to one or more targets in sequence: typically dev, staging, and prod.

    Each target represents a runtime:

    • a Cloud Run service,
    • a GKE cluster,
    • a GKE Autopilot cluster,
    • or a Compute Engine managed instance group through the run target.

    A release is created against a specific artifact digest, and Cloud Deploy then renders the manifests through Skaffold and applies them to the target in order.

    Promotion between targets is gated by:

    • manual approval,
    • by automated criteria such as a successful Cloud Build verification step,
    • or by a canary strategy that splits traffic between the new and previous revisions.
    apiVersion: deploy.cloud.google.com/v1
    kind: DeliveryPipeline
    metadata:
     name: api-pipeline
    description: Promote api across dev, staging, prod
    serialPipeline:
     stages:
     - targetId: dev
     profiles: [dev]
     - targetId: staging
     profiles: [staging]
     strategy:
     canary:
     runtimeConfig:
     cloudRun:
     automaticTrafficControl: true
     canaryDeployment:
     percentages: [25, 50]
     verify: true
     - targetId: prod
     profiles: [prod]
     strategy:
     canary:
     runtimeConfig:
     cloudRun:
     automaticTrafficControl: true
     canaryDeployment:
     percentages: [10, 50]
     verify: true
    

    The canary strategy is the exam-favored answer when the question describes a workload that has had production regressions traced back to deployments.

    • With Cloud Deploy canary on Cloud Run, automatic traffic control splits the percentage of requests between the new and previous revisions and verifies each step before promoting.
    • With Cloud Deploy canary on GKE, the equivalent is achieved through Gateway API HTTPRoutes or through a service mesh that splits traffic between two ReplicaSets.

    The progressive rollout integrates with the SLO observed through Cloud Monitoring, so that a regression in error rate or latency aborts the canary before it reaches full traffic.

    Binary Authorization sits as a deploy-time gate on both Cloud Run and GKE.

    The Cloud Deploy promotion triggers an attestation check: the policy refuses to deploy any image that lacks the build provenance attestor signature and the vulnerability scan attestor signature.

    The architect chooses the attestors, the required attestations per environment, and the break-glass policy for emergency deploys.

    A break-glass deploy is allowed but generates a Cloud Audit Logs Policy Denied entry that becomes evidence in the post-incident review.

    💡 Exam Trap: When the question asks how to prevent a developer from manually pushing a container to production, the answer combines three controls: Artifact Registry IAM that restricts write access to the build service account; Binary Authorization that requires an attestation signed by the build pipeline; and Organization Policy that pins the GKE or Cloud Run platform to allow only Binary Authorization enforced clusters. Any single control alone leaves a bypass path.

    🎯 Scenario: A retail platform on GKE Autopilot ships twice per week and has had two regressions in the last cycle that affected checkout. The architect proposes Cloud Deploy with a canary strategy of 10 percent and 50 percent, an SLO of 99.9 percent on checkout success, and a Cloud Monitoring alert that automatically aborts the rollout if the error budget burn exceeds two percent per hour. The reasoning is that the failure mode is regressions reaching all users at once; canary plus SLO-based abort caps the blast radius without slowing the release cadence.

    Troubleshooting/root cause analysis best practices

    Troubleshooting and root cause analysis are the operational disciplines that turn a production symptom into a known defect with a fix. The exam treats RCA as a process question. The architect is expected to know which Google Cloud observability surface to consult for which class of symptom, in what order, and how the resulting signals feed back into the SDLC.

    The signal surfaces are the same five tools defined in Chapter 1.

    • Cloud Logging captures structured log entries and audit logs and exposes a query language for filtering.
    • Cloud Monitoring captures time-series metrics, both Google-built-in and custom, and drives alerting policies.
    • Cloud Trace captures latency spans across services and visualizes them as flame graphs.
    • Cloud Profiler samples CPU, heap, and contention from running processes.
    • Error Reporting groups exception stack traces into deduplicated issues with first-seen and last-seen timestamps.
    • Gemini Cloud Assist Investigations sits across all five and produces narrative explanations of incidents by correlating logs, metrics, traces, and recent change records.

    Steps

    The RCA flow that the exam expects is structured. The triage step starts at Cloud Monitoring with the alert that fired. The alert links to the SLO or threshold that was breached, and the dashboard shows the time window and the affected service. The hypothesis step pulls Cloud Trace samples from the same window and groups them by error class. If the latency increased, the architect looks at the span that grew. If error rate increased, the architect goes to Error Reporting and finds the exception group with the matching first-seen timestamp. The change identification step queries Cloud Audit Logs Admin Activity for resource changes in the time window, and Cloud Deploy for releases promoted to the affected target. Gemini Cloud Assist Investigations automates this correlation and produces a summary that the on-call engineer reviews rather than constructs from scratch.

    The remediation step is governed by the SLO error budget. If the error budget is intact, the rollback is the conservative choice and the team takes time to write the post-incident review.

    If the error budget is exhausted, a hotfix path is allowed under a break-glass approval and the change is later reviewed against the standard policy. The blameless post-incident review is the closing step.

    The output is a written document with a timeline, the contributing factors, the corrective actions, and the owner for each action. The corrective actions are tracked in the same issue tracker as feature work and have explicit due dates.

    # Pull the last 200 error-severity entries for a Cloud Run service
    gcloud logging read \
     'resource.type="cloud_run_revision"
     resource.labels.service_name="checkout"
     severity>=ERROR' \
     --limit=200 \
     --format=json \
     --freshness=1h
    
    # Identify resource configuration changes in the last hour
    gcloud logging read \
     'logName:"cloudaudit.googleapis.com/activity"
     protoPayload.serviceName="run.googleapis.com"
     resource.labels.service_name="checkout"' \
     --limit=20 \
     --freshness=1h
    

    The five-whys discipline is the conceptual frame around the tooling. Each "why" must reach a deeper cause, not a synonym for the symptom.

    A common failure mode is stopping at the first proximate cause (the deploy that broke the build) without reaching the systemic cause (the absence of a smoke test in the pipeline).

    The architect-led version of the five-whys reaches a corrective action that changes the system, not the people.

    📊 Limit: Cloud Logging retains Admin Activity audit logs for 400 days and Data Access audit logs for 30 days by default, in the _Required and _Default buckets respectively. Custom retention can be configured up to 3650 days on user-created log buckets, with bucket lock available to prevent retention reduction.

    ⚠️ Anti-Pattern: Manual log inspection through the Console as the primary triage path. With high-volume services, the on-call engineer cannot read individual lines fast enough to recognize patterns. The exam-favored path is alerting policies that fire on log-based metrics, dashboards that surface the SLO burn, and Gemini Cloud Assist Investigations to summarize the correlated signals.

    🎯 Scenario: A reservation API on Cloud Run has begun returning HTTP 500 to about three percent of requests. The on-call engineer opens the Cloud Monitoring dashboard, sees the error rate spike, pulls Cloud Trace samples for the affected window, and finds that the spans showing the increased latency are calls to a downstream Cloud SQL instance. Cloud Audit Logs Admin Activity shows that the Cloud SQL instance had a maintenance event in the same window. The corrective action is to add Cloud SQL connection retry with exponential backoff at the Cloud Run client, and to subscribe the service to the Cloud SQL maintenance notification channel.

    Testing and validation of software and infrastructure

    Testing and validation extend past the unit test suite into the full lifecycle of the workload, including the infrastructure that runs it. The exam expects the architect to recognize the test classes that belong at each stage, the Google Cloud product that runs them, and the failure modes when a class is skipped.

    Software tests are categorized into unit, integration, contract, end-to-end, and load tests.

    • Unit tests run inside the Cloud Build step as part of the CI pipeline.
    • Integration tests run against the deployed dev target and exercise the workload against real downstream dependencies, often replaced with Cloud Emulators for Bigtable, Spanner, Pub/Sub, or Firestore so the tests are fast and isolated.
    • Contract tests pin the API surface so that a caller and provider can deploy independently without breaking each other.
    • End-to-end tests run against the staging target and exercise the full system through the user-facing entry point.
    • Load tests run against the staging target or a dedicated load environment and confirm that the workload meets its scalability and latency targets before the canary reaches production.

    Infrastructure tests are the parallel discipline. Terraform plans are checked through terraform plan and terraform validate in the CI step, then policy-validated through the gcloud gcloud beta terraform vet command (formerly Config Validator) against a set of Open Policy Agent or Rego constraints. Config Connector and the Cloud Foundation Toolkit Blueprints expose the same pattern for Kubernetes-native provisioning. The Organization Policy constraints defined in Chapter 3 act as a runtime test layer: any Terraform plan that creates a public Cloud Storage bucket or a non-CMEK BigQuery dataset is refused at apply time, not just at review time.

    # Validate Terraform plan against organization policy
    terraform plan -out=tfplan.binary
    terraform show -json tfplan.binary > tfplan.json
    gcloud beta terraform vet tfplan.json \
     --policy-library=./policy-library
    
    # Cloud Build step that runs an integration test against an emulator
    steps:
    - id: start-emulator
     name: gcr.io/google.com/cloudsdktool/cloud-sdk
     entrypoint: 'bash'
     args:
     - '-c'
     - |
     gcloud emulators firestore start --host-port=0.0.0.0:8080 &
     sleep 5
     export FIRESTORE_EMULATOR_HOST=localhost:8080
     pytest tests/integration
    

    Validation extends past test execution into pre-production verification.

    Cloud Deploy verification steps run a Cloud Build job after each promotion that hits the deployed service with:

    • a health probe
    • a synthetic transaction
    • a load profile and reports success or failure.

    Synthetic monitors in Cloud Monitoring run the same probe continuously in production.

    SLOs defined on the service consume the synthetic monitor result, the Cloud Run request log, or a custom metric, and the error budget burn is the live measurement of validation success. Chaos engineering and game days are the upper layer.

    The team injects controlled failure (a regional outage, an instance termination, a downstream latency spike) and validates that the system meets its recovery time objective and recovery point objective without manual intervention.

    Penetration testing exercises the security controls defined in Chapter 3 against a real attack surface. Both feed back into the SDLC as findings with corrective actions.

    💡 Exam Trap: When the question describes a regression that reached production despite passing CI, the answer is almost never "add more unit tests". The exam-favored answer is the test class that catches the regression: integration tests for cross-service contracts, contract tests for API compatibility, load tests for performance regressions, and pre-deploy verification for environment-specific configuration drift.

    ⚠️ Anti-Pattern: Running every test class on every commit and blocking the merge until all pass. The result is a CI pipeline measured in hours, which discourages small commits and pushes developers to batch changes, which raises the blast radius of each release. The architect-led pattern is a staged pipeline: unit and lint on the commit, integration on the merge, end-to-end and load on the promotion to staging, and synthetic plus chaos in production.

    Service catalog and provisioning

    The service catalog is the bridge between the central platform team and the application teams that consume Google Cloud.

    Without a catalog, every application team negotiates its own project structure, IAM bindings, networking topology, and observability setup.

    With a catalog, the central team curates a set of approved patterns; the application teams pick from a menu; and the underlying Google Cloud resources are provisioned through a uniform process.

    Service Catalog is the Google Cloud product that exposes this catalog to consumers.

    • The platform team creates solutions in the Service Catalog admin Console, each backed by a Deployment Manager template, a Terraform plan, or a Cloud Marketplace product.
    • Solutions are organized into catalogs that are then granted to specific folders or projects in the resource hierarchy through IAM.
    • An application owner browses the catalog inside the Console, picks a solution (for example, "Standard Python Cloud Run service" or "GKE Autopilot starter cluster"), fills in the parameters, and the underlying resources are deployed under the owner's project.

    A second pattern is the project factory.

    • The platform team operates a Terraform module (the Cloud Foundation Toolkit project-factory module) that creates new projects with a known set of APIs enabled, a known VPC attached through Shared VPC, a known set of IAM bindings to the application group, a known billing account, and a known set of Organization Policy bindings inherited from the parent folder.
    • The application team requests a new project through a ticket or a self-service portal, and the project factory produces the project within minutes with every guardrail already in place.
    module "app_project" {
     source = "terraform-google-modules/project-factory/google"
     version = "~> 15.0"
    
     name = "svc-checkout-prod"
     random_project_id = true
     org_id = "111111111111"
     folder_id = google_folder.workloads.id
     billing_account = "AAAAAA-BBBBBB-CCCCCC"
     shared_vpc = "host-prod-001"
     shared_vpc_subnets = ["projects/host-prod-001/regions/europe-west1/subnetworks/svc-checkout"]
     activate_apis = [
     "run.googleapis.com",
     "artifactregistry.googleapis.com",
     "cloudbuild.googleapis.com",
     "clouddeploy.googleapis.com",
     "monitoring.googleapis.com",
     "logging.googleapis.com",
     "cloudkms.googleapis.com",
     ]
     labels = {
     env = "prod"
     owner = "checkout-team"
     cost-ctr = "retail-12"
     }
    }
    

    Cluster Toolkit (formerly the HPC Toolkit) extends the same pattern for AI Hypercomputer and high-performance compute clusters: a blueprint declares the Slurm cluster, the GPU or TPU machine type, the parallel file system, and the network, and the toolkit emits Terraform that provisions the cluster end-to-end.

    Cloud Marketplace plays the third role. When the requested capability is a third-party product (a database, an observability agent, a security tool), the central team curates a private offer in Cloud Marketplace and the application team deploys directly. The benefit is that:

    • The billing flows through the Google Cloud invoice.
    • The IAM and networking integration is consistent.
    • The contractual terms are aligned with the master Google Cloud agreement.

    The architect responsibility on the service catalog is to define the menu. Which patterns are blessed? Which are deprecated? Which require a security exception process?

    The menu must be small enough to maintain and large enough to cover the workload classes that the organization runs. A common failure mode is a sprawling catalog with hundreds of templates that nobody owns; the better pattern is a curated catalog with five to fifteen patterns, each owned by a named team and each backed by a Cloud Build pipeline that produces fresh module versions on a known cadence.

    📊 Limit: A Service Catalog solution is bound to an admin project that owns the underlying Deployment Manager or Terraform code. The solution can be shared across many consumer projects, with IAM controlling which principals can view and deploy each catalog.

    💡 Exam Trap: When the question describes a sprawl of inconsistent projects with one-off IAM bindings, the answer is the project factory plus Organization Policy plus Service Catalog. The factory creates new projects with the guardrails baked in; the policy refuses to create projects outside the factory; and the catalog gives application teams a self-service surface so they do not need to bypass the factory.

    🎯 Scenario: An insurance company has 40 application teams and is creating Google Cloud projects manually through tickets. The mean time to onboard a team is two weeks and the resulting projects are inconsistent. The architect proposes a project factory module that creates the project, attaches Shared VPC, applies the Organization Policy bindings, sets up the Cloud Build and Cloud Deploy pipelines, and creates the application IAM groups. The mean time drops to under one hour and the resulting projects are uniformly compliant with the security baseline.

    Disaster recovery

    Disaster recovery is the technical process that the architecture follows when a region, a zone, a service, or a workload fails in a way that the operational recovery cannot absorb. The terms recovery time objective and recovery point objective are reused from Chapter 1, and the disaster recovery tier choices were introduced there. This subsection covers the process: how the DR plan is defined, tested, and operated.

    The DR tier model on Google Cloud has four levels.

    • Cold standby keeps an offline backup in another region or another cloud, with infrastructure provisioned on demand; the RTO is measured in hours to days.
    • Pilot light keeps a minimal version of the workload running in the recovery region (a database replica, an idle GKE cluster), with the data path live but the application path scaled to zero; the RTO is in minutes to hours.
    • Warm standby keeps a scaled-down version of the workload live in the recovery region; the RTO is in minutes.
    • Hot standby keeps a fully scaled, traffic-receiving version of the workload in the recovery region, with traffic balanced across both; the RTO is effectively zero.

    The architect chooses the tier per workload by mapping the business impact (cost of downtime per hour) against the cost of running the standby.

    The DR plan is a written artifact. It names the workload, the tier, the RTO, the RPO, the failover trigger, the failover procedure, the failback procedure, the responsible team, and the test schedule. The architect signs off on the plan and the application team owns the operation. The plan is stored alongside the workload code in the source repository so the version that ran the last failover is recoverable.

    The Backup and DR Service is the Google Cloud-native product that operates the backup half of the plan for:

    • Compute Engine VMs
    • Google Cloud VMware Engine workloads
    • Cloud SQL instances
    • AlloyDB clusters
    • GKE persistent volumes
    • Oracle databases
    • on-premises virtual machines through a backup appliance

    Backups are stored in a backup vault with a defined retention period, the vault is in a separate project from the workload to satisfy separation of duties, and the backup plan defines the frequency (snapshot every N hours, expire after N days). The Backup and DR Service writes backup operation audit logs to Cloud Audit Logs, which feed the compliance evidence pipeline defined in Chapter 3.

    For data services, Google Cloud-native replication is the second pattern.

    • Cloud Storage dual-region and multi-region buckets replicate objects across regions automatically.
    • Spanner multi-region instances replicate writes synchronously across regions with five-nines availability.
    • Cloud SQL cross-region replicas provide an asynchronous replica that can be promoted on failover.
    • BigQuery cross-region dataset replication, when configured, copies the dataset to the secondary region on a schedule.
    • AlloyDB cross-region replication provides a read replica that can be promoted.
    # Create a Cloud SQL cross-region replica
    gcloud sql instances create checkout-db-replica-eu \
     --master-instance-name=checkout-db-primary \
     --region=europe-west4 \
     --availability-type=REGIONAL \
     --database-version=POSTGRES_15
    
    # Promote the replica on failover
    gcloud sql instances promote-replica checkout-db-replica-eu
    

    The failover procedure is the part that fails most often when teams skip the test.

    A failover that has never been rehearsed will fail in unexpected ways:

    • a forgotten secret in the recovery region
    • a stale image in the recovery Artifact Registry repository
    • a missing IAM binding for the recovery service account

    The architect-led pattern schedules a quarterly failover drill on a real workload, with a known recovery window and a known rollback plan, and treats the drill output as evidence for the audit.

    Disaster recovery flowchart

    📊 Limit: Backup and DR Service supports backup plans with retention from 1 day to 99 years per policy. A backup vault, once created with the immutable retention setting, cannot have its retention reduced; this satisfies write-once read-many requirements for regulated industries.

    💡 Exam Trap: When the exam asks for a DR design with an RPO measured in minutes, asynchronous replication (Cloud SQL read replica, Cloud Storage turbo replication, AlloyDB cross-region replica) is sufficient. When the RPO is zero, the answer is a synchronously replicated multi-region database (Spanner multi-region, multi-region Cloud Storage with strong consistency) or an active-active application design with conflict resolution. A Cloud SQL read replica cannot deliver an RPO of zero.

    ⚠️ Anti-Pattern: A DR plan that exists only on paper and has never been executed end-to-end. The audit asks not whether the plan exists but whether it has been tested. A test that proves the runbook works is worth more than 50 pages of documentation that nobody can execute.

    🎯 Scenario: A bank operates a Cloud SQL primary in europe-west4 and a read replica in europe-west1, with an RTO of 30 minutes and an RPO of 5 minutes. The Backup and DR Service takes daily backups stored in a separate backup project with a 7-year retention. The quarterly drill promotes the replica, updates the Cloud DNS record, and confirms that the application reconnects within the RTO. The drill outputs a written report that the auditor accepts as evidence of operating effectiveness for the disaster recovery control.

    Decision Anchor: Choose Backup and DR Service when the workload needs centrally managed application-consistent backups with vault retention, cross-platform coverage including Google Cloud VMware Engine and on-premises, and immutability for compliance. Choose Persistent Disk snapshots plus Cloud Storage object lifecycle when the workload is Compute Engine-only and the backup needs are simple.

    Choose database-native cross-region replication when the workload is a managed database and the RPO target requires near-real-time recovery. ---

    Continue with the interactive course

    Track your progress, jump into practice questions and use the Shark AI tutor inside the GCP - Professional Cloud Architect learning hub.