A retail company needs to deploy a simple, stateless HTTP web microservice that experiences low and unpredictable traffic patterns throughout the day. The primary business requirement is to minimize operational management overhead and infrastructure cost by ensuring resources only incur charges during active processing. Which deployment strategy should you choose?
- Deploy the microservice container to Cloud Run so compute instances automatically scale to zero during idle periods.Cevap
- BProvision a multi-zone Google Kubernetes Engine (GKE) cluster with Cluster Autoscaler enabled to manage container pods.
- CPurchase a 3-year Committed Use Discount for dedicated Compute Engine virtual machines sized for maximum anticipated traffic.
- DDeploy the workload compute layer coupled with a multi-region Cloud Spanner database cluster to handle web request state.
Cevap
Deploying the microservice container to Cloud Run allows the application to automatically scale to zero during idle periods, matching the business goal of minimizing compute costs and operational overhead.
Cloud Run provides a serverless execution environment specifically engineered for stateless HTTP containers. Because it scales down to zero active instances when no requests are being processed, it avoids idle infrastructure costs and requires zero cluster configuration or operational management.
Adım Adım Çözüm
Anahtar Kavram
Serverless compute right-sizing for cost optimization and low operational overhead
Tahmini Süre:45s