Diagram
A decision tree branching on desire for minimal management and need for container orchestration to choose between Cloud Run, GKE, and Compute Engine.
Choosing Between Virtual Machines, Containers, and Serverless
The three models form a spectrum from maximum control to minimum management. Virtual machines and containers give more configuration flexibility but require you to manage resources, while serverless deploys workloads to a preconfigured platform that needs minimal management.
| Model | Google Cloud example | Infrastructure management | Choose when |
|---|---|---|---|
| Virtual machines | Compute Engine | You manage virtual machines, operating system, and scaling | You need full control, custom images, specific machine types, or operating system access |
| Containers | Google Kubernetes Engine (GKE) | You package containers; Google provides managed Kubernetes orchestration | You run standard containerized applications such as microservices or APIs that need orchestration |
| Serverless | Cloud Run | Google manages servers, operating system, network, and scaling | You want to deploy containerized apps or jobs without server or cluster administration |
Domain 2 of 6
27 practice questions
Practice this DomainLast updated