Soru

Zorluk: OrtaDesigning Infrastructure for Technical Requirements and High Availability

An enterprise logistics provider is architecting a mission-critical fleet management service on Google Cloud within a single GCP region. The workload consists of a lightweight, stateless HTTP microservice that experiences fluctuating request volumes, and a relational database backend requiring multi-zone high availability with automatic failover to satisfy a strict regional Uptime SLA. The backend database does not require global distribution or horizontal write scaling. Which architectural design meets these technical and high availability requirements while minimizing operational overhead and unnecessary infrastructure costs?

  1. Deploy the microservice on Cloud Run integrated via a Serverless VPC Access connector to a regional Cloud SQL instance configured for High Availability (HA) across multiple zones.Cevap
  2. B
    Deploy the microservice on a regional Google Kubernetes Engine (GKE) cluster with node pools across three zones, and store relational data in a multi-region Cloud Spanner instance.
  3. C
    Deploy the microservice on Compute Engine virtual machines managed by a Regional Managed Instance Group (MIG), with load balancer health checks configured to directly query deep database endpoints to verify web node health.
  4. D
    Deploy the microservice on Cloud Run and connect to a single-zone Cloud SQL instance configured with automated daily snapshots to achieve cross-zone failover.

Cevap

Deploy the microservice on Cloud Run integrated via a Serverless VPC Access connector to a regional Cloud SQL instance configured for High Availability (HA) across multiple zones.
Combining Cloud Run with a regional Cloud SQL HA deployment directly satisfies the requirement for multi-zone high availability, automated failover, and scaling under fluctuating traffic while keeping operational overhead and costs minimal.

Adım Adım Çözüm

1
Analyze Compute Requirements
Identify that Cloud Run is optimal for stateless HTTP microservices with variable traffic because it automatically scales down to zero and eliminates GKE cluster management overhead.
Choosing serverless compute reduces operational toil while ensuring high availability across zones within the region.
2
Analyze Database Requirements
Select Cloud SQL with High Availability (HA) enabled, which uses synchronous storage replication between primary and standby instances across two zones in the same region.
Cloud SQL HA fulfills regional zero-data-loss RPO and fast RTO automatic failover requirements without needing Cloud Spanner's global distributed scale.
3
Configure Secure Internal Connectivity
Connect Cloud Run to Cloud SQL using Serverless VPC Access connector to route traffic via private IP.
Serverless VPC Access enables private connectivity between Google serverless services and internal VPC resources.

Anahtar Kavram

Designing High Availability for Regional Web Application Tiers
Tahmini Süre:1m 30s
Bu soruyu puanla