An enterprise e-commerce organization runs a batch inventory reconciliation process every night at midnight. The job runs a single containerized application for approximately 45 minutes to reconcile stock levels across multiple warehouses and stores the transactional results in a database requiring standard relational capabilities within a single GCP region. The system currently utilizes a dedicated multi-node Google Kubernetes Engine (GKE) cluster and a Cloud Spanner instance. The engineering team needs to optimize infrastructure costs while maintaining high availability and operational reliability for this regional batch workload. Which TWO architectural modifications should a Cloud Architect recommend to minimize costs?
- Migrate the nightly containerized reconciliation batch job from GKE to Cloud Run jobs.Cevap
- Migrate the database layer from Cloud Spanner to a regional Cloud SQL for PostgreSQL instance configured for High Availability (HA).Cevap
- CMaintain the GKE cluster but convert it to a dedicated GKE Autopilot cluster covered by 3-year Compute Engine Committed Use Discounts (CUDs).
- DRetain Cloud Spanner and configure multi-region dual-region read replicas to reduce transactional latency.
Cevap
Migrate the nightly containerized reconciliation batch job from GKE to Cloud Run jobs, and migrate the database layer from Cloud Spanner to a regional Cloud SQL for PostgreSQL instance configured for High Availability (HA).
The combination of Cloud Run jobs and Cloud SQL for PostgreSQL HA optimizes costs across both compute and database tiers. Cloud Run jobs execute containerized batch tasks without paying for idle cluster resources between executions. Cloud SQL provides full relational transactional support in a single region with high availability without the premium price tag of Cloud Spanner.
Adım Adım Çözüm
Anahtar Kavram
Cost Optimization through Serverless Compute and Relational Database Right-Sizing