Your team built a containerized Go service that processes infrequent but latency-sensitive requests from mobile clients. The container listens on port 8080, reads a few kilobytes from Cloud Storage, performs lightweight computation, and returns a JSON response within 300 ms. Traffic is highly variable: most days the service is idle, but during product launches it must handle thousands of concurrent requests without manual intervention. The operations team wants the following:
The platform must automatically scale down to zero instances when there is no traffic so that you only pay for actual requests.
Developers should deploy with a simple gcloud command and avoid managing servers, clusters, or node patching.
You must be able to keep using the existing container image without rewriting the app.
Which Google Cloud compute option best meets these requirements?
Google Kubernetes Engine Autopilot cluster with a Deployment
Cloud Run fully managed service
Cloud Functions second-generation HTTP trigger
Compute Engine managed instance group with autoscaling
Cloud Run is designed for stateless container workloads that respond to HTTP requests or events. It starts containers on-demand, automatically scales to thousands of concurrent requests when load increases, and scales all the way down to zero when idle, charging only for the resources used during request processing. Deployment is a single gcloud run deploy command, and Google fully manages the underlying infrastructure, eliminating the need to administer servers or Kubernetes clusters. A container image built by the developers can be used without code changes.
Other choices do not simultaneously satisfy all requirements:
Compute Engine requires you to manage VM lifecycles and would continue billing for idle instances.
Google Kubernetes Engine (GKE) Autopilot removes node management but still incurs per-pod and control-plane charges even when no traffic arrives, and scaling to zero is not automatic for standard Services.
Cloud Functions scales to zero but only supports functions triggered by HTTP or events, not an arbitrary container; you would need to refactor the application into a functions framework.
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 and how does it differ from other Google Cloud compute options?
Open an interactive chat with Bash
How does Cloud Run achieve automatic scaling, including scaling to zero?
Open an interactive chat with Bash
Why is Cloud Run ideal for applications with variable traffic patterns?
Open an interactive chat with Bash
What are the key benefits of using Cloud Run for containerized applications?
Open an interactive chat with Bash
Why wouldn't Google Kubernetes Engine (GKE) Autopilot and Compute Engine work for this scenario?
Open an interactive chat with Bash
How does Cloud Run handle scaling for sudden traffic spikes, such as during product launches?
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 .