Cloud Digital Leader Google Cloud Products and Services Practice Question
A developer wants to deploy a containerised microservice that can scale to zero when not in use and automatically scale up based on HTTP requests. The microservice is stateless and runs a custom Docker image. Which Google Cloud compute service is BEST suited for this workload?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Cloud Run
Cloud Run is a serverless compute platform that runs stateless containers and can scale to zero when idle. It automatically scales based on incoming requests, making it ideal for event-driven microservices. GKE requires a cluster to run even when idle, Compute Engine VMs are always on, and App Engine Standard does not support custom containers.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Google Kubernetes Engine (GKE)
Why it's wrong here
GKE is a managed Kubernetes service that runs on pools of Compute Engine VMs. Even with cluster autoscaling enabled, a GKE cluster cannot scale to zero nodes because system pods (kube-system, networking, DNS, etc.) must run on at least one node at all times. This means you pay for node infrastructure even during idle periods, and you are responsible for node pool maintenance, upgrades, and capacity management. For a lightweight microservice that only needs occasional invocations, GKE is overkill compared to a fully serverless option.
- ✓
Cloud Run
Why this is correct
Cloud Run is a serverless compute platform that executes stateless HTTP-driven containers on demand. When no requests are in flight, the service scales down to zero instances, so you are not billed for idle resources. It automatically provisions and scales instances up to handle spikes, supports any language and arbitrary Docker images, and only charges for the exact number of requests processed, making it a natural fit for a containerized microservice with intermittent traffic.
- ✗
Compute Engine with managed instance groups
Why it's wrong here
Compute Engine managed instance groups can autoscale based on CPU utilization or HTTP load, but the group maintains a minimum instance count—by default at least one—so the VM stays running 24/7. To scale to zero, you would need to manually intervene or set up a custom monitoring/automation solution, which is not a native autoscaling behavior. Each VM also needs periodic OS patching and ongoing cost even at idle, making this option less suitable than a fully managed serverless service like Cloud Run.
- ✗
App Engine Standard environment
Why it's wrong here
App Engine Standard is a serverless platform, but it only supports a fixed set of predefined runtime sandboxes, such as Python, Java, Node.js, and Go. It does not permit you to supply arbitrary Docker containers; instead, applications must conform to the platform's runtime and library restrictions. The developer's microservice is containerized, which would require App Engine Flexible, a VM-based environment that is not fully serverless and cannot scale to zero as cleanly. Thus, Cloud Run is the better choice.
Quick reference
Cloud Service Model Comparison
| Model | You Manage | Provider Manages | Examples |
|---|---|---|---|
| IaaS | OS, runtime, apps, data | Hardware, hypervisor, networking | EC2, Azure VMs, GCP Compute Engine |
| PaaS | Apps and data | OS, runtime, middleware, hardware | Elastic Beanstalk, Azure App Service |
| SaaS | Data and settings only | Everything else | Microsoft 365, Salesforce, Workday |
| FaaS / Serverless | Function code only | Infra, scaling, runtime | Lambda, Azure Functions, Cloud Run |
| CaaS | Containers and apps | Kubernetes, OS, hardware | EKS, AKS, GKE |
Go deeper
Related to this question
Learn chapter
Cloud Digital Transformation
Key term
Google Cloud
Google Cloud is a suite of cloud computing services offered by Google that provides infrastructure, platform, and software solutions over the internet.
Key term
Event
An event is any identifiable occurrence or action in a computer system, network, or application that can be logged, monitored, or analyzed for security or operational purposes.
About these practice questions
One of 829 original GCDL practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This GCDL practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the GCDL exam.