Compare / Cloud Run vs GKE
Cloud Run vs GKE
Both run containers. Cloud Run is serverless: you deploy a container and Google runs it, scaling to zero. GKE is managed Kubernetes, with Autopilot or Standard clusters, for when you need the Kubernetes API and control.
In 63 practice questions across 9 practice banks
You are tasked with using C++ to build and deploy a microservice for an application hosted on Google Cloud. The code needs to be containerized and use several custom software libraries that your team has built. You want to minimize maintenance of the application’s underlying infrastructure. How should you deploy the microservice?
-
Functions cannot host arbitrary native libraries.
-
Cloud Build + Cloud Run is minimal-ops containerization.
-
GKE Standard keeps cluster management.
-
A VM is self-managed infrastructure.
Pick an answer to see why each option is right or wrong.
Try 20 questions freeAt a glance
| Cloud Run | GKE | |
|---|---|---|
| Abstraction | Services and jobs; no cluster to manage | Kubernetes clusters, nodes and workloads |
| Scaling | Per request, including to zero | Pod and cluster autoscaling; Autopilot manages nodes |
| Control | Limited: container, CPU, memory, concurrency | Full Kubernetes: networking, sidecars, operators, DaemonSets |
| Workloads | Stateless HTTP services, event handlers, batch jobs | Complex microservices, stateful sets, custom scheduling |
| Operations | Minimal | More: upgrades, policies and capacity, less with Autopilot |
Choose Cloud Run when
- A stateless containerized service should scale with traffic, including to zero.
- The requirement is the least operational overhead.
- Traffic is spiky or infrequent.
Choose GKE when
- You need Kubernetes features or portability of existing manifests and Helm charts.
- Workloads need sidecars, DaemonSets, custom networking or GPUs with fine control.
- You run many interdependent services with platform-team policies.
Exam tip
Unless the question requires Kubernetes itself, the serverless option (Cloud Run) usually wins on "minimize operations". GKE Autopilot is the middle ground when Kubernetes is required.
Practice banks covering this comparison
Counts match names or aliases from both sides of the comparison in question text or answer options, including incorrect options. They do not measure how often a decision appears on the official exam.
- PCD Professional Cloud Developer · 19 questions
- ACE Associate Cloud Engineer · 14 questions
- PCDOE Professional Cloud DevOps Engineer · 8 questions
- PCA Professional Cloud Architect · 5 questions
- PMLE Professional Machine Learning Engineer · 5 questions
- CDL Cloud Digital Leader · 5 questions
- PAA Professional Agentic Architect · 5 questions
- PDE Professional Data Engineer · 1 question
- PCSE Professional Cloud Security Engineer · 1 question
More comparisons
- Cloud Run functions vs Cloud Run services
- App Engine vs Cloud Run
- Compute Engine vs GKE
- BigQuery vs Bigtable
- Dataflow vs Dataproc
- Spanner vs Cloud SQL
- Cloud Composer vs Workflows
- Firestore vs Bigtable
- Cloud SQL for PostgreSQL vs AlloyDB
- Shared VPC vs VPC Network Peering
- Cloud VPN vs Cloud Interconnect
- Cloud Storage classes: Standard, Nearline, Coldline or Archive?
- Cloud Armor vs VPC firewall rules
- Memorystore vs Firestore
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- Google-managed keys vs Customer-managed keys (CMEK)
- Identity-Aware Proxy vs VPN
- Spanner vs Bigtable
- BigQuery vs Cloud SQL
- Firestore vs Cloud SQL
- Dataproc vs BigQuery
- GKE Autopilot vs Standard: which mode to choose?
- Vertex AI vs BigQuery ML
- VPC Service Controls vs IAM
- Private Google Access vs Cloud NAT