Google Cloud Digital LeaderDigital transformation with Google CloudMedium
A startup is developing a new social media application that anticipates rapid, unpredictable spikes in user traffic during viral events. The application backend consists of several independent microservices. They need a compute solution that can automatically scale from zero instances to thousands in seconds, incur costs only when code is running, and require minimal operational overhead for server management. Which Google Cloud compute option is most suitable for this scenario?
- ACompute Engine
- BApp Engine Standard
- CGoogle Kubernetes Engine (GKE)
- DCloud Run
Show answer & explanationAnswer & explanation
Correct answer: D. Cloud Run
Cloud Run is a fully managed serverless platform that allows stateless containers to be run. It automatically scales from zero to many instances based on request load, charges only for the exact resources consumed, and minimizes operational overhead, perfectly matching the requirements for unpredictable traffic and microservices.
Why the other options are wrong
- A. Compute Engine requires manual management of VMs and scaling, not ideal for 'scale to zero' or minimal ops.
- B. App Engine Standard is serverless but more opinionated about language runtimes and might not offer the same flexibility or instant cold start as Cloud Run for containerized microservices.
- C. GKE offers great scalability for containers but still involves managing a Kubernetes cluster, which is more operational overhead than required.
Cloud Run
A fully managed serverless platform for running stateless containers via web requests or Pub/Sub events.
- Scales automatically from zero to thousands of instances.
- Pay-per-use billing (only when code is running).
- Supports any language or library that can be containerized.
Memory trick: Serverless freedom, scale to zero, your code's dream.