Soru

Zorluk: OrtaDesigning Infrastructure for Business Requirements and Cost Optimization

A smart utility company receives periodic HTTP telemetry payloads from 500,000 smart energy meters every 15 minutes. Traffic spikes predictably for 2 minutes during each 15-minute interval and remains virtually idle in between. The company needs to ingest these HTTP requests, normalize the telemetry payload, and store the structured records in a regional relational database for daily reporting. Which architecture minimizes baseline operational costs and management overhead while meeting the workload's performance requirements?

  1. Deploy a Cloud Run service to ingest and normalize the HTTP telemetry payloads, and write the processed records to Cloud SQL for PostgreSQL.Cevap
  2. B
    Provision a multi-zonal Google Kubernetes Engine (GKE) Autopilot cluster running NGINX Ingress and stateless worker pods to process incoming HTTP requests into Cloud SQL for PostgreSQL.
  3. C
    Deploy a Cloud Run service to process incoming HTTP requests and persist the normalized telemetry records directly into a multi-region Cloud Spanner instance.
  4. D
    Provision a Compute Engine Managed Instance Group (MIG) sized for peak traffic capacity using 3-year Committed Use Discounts (CUDs) to ingest HTTP requests into Cloud SQL for PostgreSQL.

Cevap

Deploying a Cloud Run service writing to Cloud SQL for PostgreSQL minimizes operational costs by leveraging scale-to-zero compute for bursty periodic HTTP telemetry payloads alongside a right-sized regional relational database.
Cloud Run is ideal for stateless HTTP workloads with intermittent or bursty traffic patterns because it scales down to zero instances during idle periods, preventing charges when no telemetry requests are arriving. Cloud SQL for PostgreSQL fulfills the regional relational reporting requirement cost-effectively without over-provisioning storage infrastructure.

Adım Adım Çözüm

1
Analyze compute workload traffic patterns and requirements
The workload receives bursty HTTP requests for 2 minutes every 15 minutes, remaining idle for 13 minutes.
Serverless container platforms like Cloud Run scale to zero during idle periods, providing maximum cost efficiency without paying for unused CPU/RAM.
2
Evaluate data storage requirements against cost and scale needs
The requirements demand a regional relational database for daily reporting.
Cloud SQL for PostgreSQL fits regional relational needs without the high baseline cost of globally distributed databases like Cloud Spanner.
3
Select the optimal architectural combination
Combining Cloud Run with Cloud SQL meets all technical and business requirements with minimal management overhead.
This combination avoids unnecessary cluster management fees (GKE) or over-provisioned continuous compute (Compute Engine MIG).

Anahtar Kavram

Serverless Compute & Database Selection for Periodic Workloads
Tahmini Süre:1m 30s
Bu soruyu puanla