Google Associate Cloud EngineerEnsuring successful operation of a cloud solutionEasy
A developer needs to deploy a containerized application to Google Cloud. The application is stateless, scales dynamically based on traffic, and the developer wants to minimize operational overhead. Which compute option is the most suitable for this scenario?
- AApp Engine Standard environment
- BCompute Engine with custom instance groups
- CCloud Run
- DGoogle Kubernetes Engine (GKE) Autopilot
Show answer & explanationAnswer & explanation
Correct answer: C. Cloud Run
Cloud Run is a fully managed serverless platform for containerized applications. It automatically scales up and down, even to zero, and minimizes operational overhead, making it ideal for stateless, event-driven workloads.
Why the other options are wrong
- A. App Engine Standard is a platform-as-a-service (PaaS) but has specific language runtimes and may not be as flexible for containerized applications as Cloud Run.
- B. Compute Engine requires managing virtual machines and their scaling, which increases operational overhead compared to serverless options.
- D. GKE Autopilot manages the underlying Kubernetes infrastructure, but still involves more operational overhead than Cloud Run for a single containerized application.
Cloud Run
A fully managed serverless platform that allows you to run stateless containers via web requests or Pub/Sub events.
- Serverless and fully managed
- Scales automatically (even to zero)
- Pay-per-use billing
Memory trick: Run the stateless container, let Cloud Run handle the rest.