Google Cloud Engineer interview question · Most asked
When would you choose Cloud Run, GKE or Compute Engine?
Comparison Asked in Cloud Engineer interviews
Summary
Cloud Run for stateless HTTP services, jobs and event handlers in containers when you want no cluster to manage and scale to zero. GKE when you need Kubernetes: many services with shared platform tooling, stateful or long-running workloads, custom networking, or portability. Compute Engine for software that needs a full VM: legacy apps, specific OS or kernel needs, licensing, or very steady heavy workloads.
Longer Answer
| Cloud Run | GKE (Autopilot / Standard) | Compute Engine | |
|---|---|---|---|
| You manage | container + settings | Kubernetes objects (+ nodes in Standard) | OS and everything above |
| Scaling | per request, to zero | HPA, cluster autoscaling | managed instance groups |
| Good for | APIs, webhooks, jobs | platforms, complex microservices | lift-and-shift, special OS needs |
| Billing | per use (or per instance) | per Pod requests (Autopilot) or nodes | per VM |
Many companies start on Cloud Run and move only the workloads that outgrow it to GKE.
Key Points
- Cloud Run: serverless containers, scale to zero.
- GKE: full Kubernetes and platform features.
- Compute Engine: full VM control.
- Start simple; move what outgrows it.
Explanation
What interviewers look for
Matching the platform to the workload and team, with cost and operational load in mind.
More Google Cloud Engineer questions
- How do you design a Google Cloud landing zone for a company with several teams?
- How do you run Terraform for Google Cloud safely in a team?
- Explain Google Cloud's resource hierarchy: organisation, folders, projects and resources.
- How does IAM work in Google Cloud, and why should you avoid basic roles?
- Compare Google Cloud's database options: Cloud SQL, AlloyDB, Spanner, Firestore and Bigtable.
- What are service accounts, and how should workloads authenticate without service account keys?
- How is networking in a Google Cloud VPC different from AWS?
- Design a highly available web application on Google Cloud.