You are deploying a stateless web API packaged as a container. Traffic is spiky and can drop to zero overnight, and you want to pay nothing when there are no requests while keeping operations minimal. Which Google Cloud product should you use?
- AA Compute Engine managed instance group
- BCloud Run
- CGoogle Kubernetes Engine Standard
- DApp Engine flexible environment
Cloud Run runs containers, scales to zero when idle so you pay nothing overnight, and is fully managed. A managed instance group and GKE Standard keep nodes running and cost more to operate, and App Engine flexible does not scale to zero.
Why each option is right or wrong.
- B (correct). Cloud Run runs the container, scales to zero when idle so you pay nothing overnight, and is fully managed.
- A. A managed instance group keeps VMs running, so you still pay when there are no requests.
- C. GKE Standard keeps nodes running and adds cluster operations.
- D. App Engine flexible runs on VMs and does not scale to zero.
Reference: Google Cloud Associate Cloud Engineer exam guide section 2.1.