Compare / Compute Engine vs GKE
Compute Engine vs GKE
Compute Engine gives you virtual machines you configure and operate. GKE runs your containers on managed Kubernetes, so Google handles the control plane and, in Autopilot, the nodes too.
In 101 practice questions across 13 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
| Compute Engine | GKE | |
|---|---|---|
| Unit you deploy | A virtual machine (or a group of them) | Containers in pods |
| Operations | You patch the OS and manage the software on each VM | Google manages the control plane; node upgrades and repairs are automated |
| Scaling | Managed instance groups with autoscaling | Horizontal pod autoscaling plus cluster or node autoscaling |
| Fit | Lift and shift, licensed or legacy software, full OS control | Microservices, portable containerized apps |
| Learning curve | Familiar server model | Kubernetes concepts: pods, services, deployments |
Choose Compute Engine when
- The workload is not containerized or needs a specific OS, kernel or licence.
- You are lifting and shifting servers with minimal change.
- You need full control over the machine, including GPUs or custom images.
Choose GKE when
- The application is already containerized or built as microservices.
- You want rolling updates, self-healing and bin-packing across a fleet.
- You need the Kubernetes API for portability or an ecosystem of tooling.
Exam tip
Questions that stress "containers", "orchestration" or "microservices" lean to GKE. "Legacy application", "custom OS" or "lift and shift" lean to Compute Engine. If the app is a simple stateless container and nothing mentions Kubernetes, Cloud Run is often the intended answer instead.
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 · 24 questions
- PCA Professional Cloud Architect · 18 questions
- ACE Associate Cloud Engineer · 16 questions
- CDL Cloud Digital Leader · 13 questions
- PCDOE Professional Cloud DevOps Engineer · 7 questions
- PMLE Professional Machine Learning Engineer · 6 questions
- PCDE Professional Cloud Database Engineer · 5 questions
- PCSE Professional Cloud Security Engineer · 4 questions
- PCNE Professional Cloud Network Engineer · 3 questions
- PDE Professional Data Engineer · 2 questions
- ADP Associate Data Practitioner · 1 question
- PSOE Professional Security Operations Engineer · 1 question
- PAA Professional Agentic Architect · 1 question
More comparisons
- Cloud Run 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 Run functions vs Cloud Run services
- Cloud Armor vs VPC firewall rules
- Memorystore vs Firestore
- Looker vs Looker Studio
- Pub/Sub vs Cloud Tasks
- App Engine vs Cloud Run
- 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