Your team has packaged a stateless Go web API into a container image. Traffic is unpredictable: some days the service is idle, while marketing campaigns can generate tens of thousands of simultaneous HTTP requests within minutes. Operations wants the platform to scale to zero when idle, scale up automatically without managing nodes or clusters, and support setting per-request concurrency limits in the future. Which Google Cloud compute option best meets these requirements?
Deploy the container to a GKE Autopilot cluster with Horizontal Pod Autoscaling.
Create an autoscaled managed instance group with preemptible VMs on Compute Engine.
Deploy the container to Cloud Run.
Rewrite the service as Cloud Functions triggered by HTTP.
Cloud Run is designed for containerized, stateless services that respond to HTTP requests. It is fully managed, so there is no need to provision or manage servers or Kubernetes clusters. Cloud Run automatically scales instances from zero to thousands based on incoming traffic and allows you to configure the maximum number of concurrent requests each instance can handle.
GKE Autopilot removes node management but never scales to zero; you continue paying for the control plane and a minimum set of nodes even when no traffic arrives. A managed instance group on Compute Engine also keeps at least one VM running and requires OS maintenance. Cloud Functions provides scale-to-zero, but first-generation functions handle exactly one request at a time and are optimized for small event-driven functions rather than full web APIs packaged as arbitrary containers, making it less flexible than Cloud Run for this use case.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Cloud Run used for?
Open an interactive chat with Bash
How does Cloud Run scale to zero?
Open an interactive chat with Bash
What are the differences between Cloud Run and Compute Engine?
Open an interactive chat with Bash
What is Cloud Run and how does it work?
Open an interactive chat with Bash
Why doesn’t GKE Autopilot or Compute Engine meet the requirements in this scenario?
Open an interactive chat with Bash
How does Cloud Functions differ from Cloud Run in this use case?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Planning and implementing a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .