A startup is launching a simple, stateless HTTP REST API microservice to process incoming customer feedback forms. The traffic is highly unpredictable, with extended periods of zero incoming requests during off-peak hours. The business priority is to minimize total operational costs and eliminate idle infrastructure expenses with minimal management overhead. Which Google Cloud compute platform should the architecture team select?
- Deploy the containerized microservice to Cloud Run.Answer
- BProvision a Google Kubernetes Engine (GKE) Standard cluster with cluster autoscaling enabled.
- CProvision a dedicated pool of Compute Engine Virtual Machines backed by 3-year Committed Use Discounts (CUDs).
- DDeploy a high-availability multi-region Cloud Spanner cluster to execute the service logic.
Answer
Deploying the containerized microservice to Cloud Run is the optimal solution because it automatically scales down to zero instances when idle, incurring zero compute costs during off-peak hours while minimizing cluster management overhead.
Cloud Run is designed for stateless containerized HTTP services. It automatically scales compute instances down to zero when no traffic is present, ensuring zero expenditure during idle hours while eliminating cluster maintenance tasks.
Step-by-Step Solution
Key Concept
Serverless Compute Right-Sizing and Scaling to Zero