Soru

Zorluk: OrtaDesigning Infrastructure for Technical Requirements and High Availability

A regional logistics provider is re-platforming its central dispatch system on Google Cloud. The workload consists of a lightweight, stateless REST API for route management and a 250 GB relational database. The solution must run within a single GCP region (us-central1), support automatic zonal failover with zero RPO for database transactions within the region, and minimize infrastructure management overhead. Which cloud architecture should you recommend?

  1. Deploy the stateless REST API to Cloud Run and host the database on Cloud SQL for PostgreSQL configured with High Availability (regional instance with primary and standby zones).Cevap
  2. B
    Deploy the stateless REST API to Cloud Run and provision a multi-region Cloud Spanner instance to store the transactional relational data.
  3. C
    Deploy a GKE Autopilot cluster across three zones to run both the stateless REST API containers and self-managed PostgreSQL database containers using StatefulSets.
  4. D
    Deploy the REST API on Compute Engine VMs in a Managed Instance Group (MIG) behind an Application Load Balancer, and configure the load balancer health checks to execute direct queries against the database backend.

Cevap

Deploy the stateless REST API to Cloud Run and host the database on Cloud SQL for PostgreSQL configured with High Availability (regional instance with primary and standby zones).
Combining Cloud Run for stateless containers with Cloud SQL High Availability satisfies all requirements: serverless execution minimizes operational overhead, while regional Cloud SQL HA ensures zero RPO and automatic failover across zones within us-central1 without over-engineering.

Adım Adım Çözüm

1
Analyze the compute requirements for the stateless API
Cloud Run allows containerized stateless services to scale automatically while eliminating compute infrastructure management.
The requirement explicitly requests minimal operational management overhead for a stateless REST API.
2
Evaluate data scale, consistency, and availability requirements for the database tier
Cloud SQL High Availability (HA) uses synchronous replication to a secondary zone within the region, guaranteeing zero RPO and fast RTO during a zonal failure.
The workload is confined to a single region with a 250 GB footprint, making regional Cloud SQL HA the ideal fit rather than globally distributed database solutions.

Anahtar Kavram

Single-Region High Availability and Managed Infrastructure Selection
Bu soruyu puanla