Associate Cloud Engineer ยท Compute Engine: choosing, launching and scaling
Choosing a Google Cloud compute service
Matching a workload to Compute Engine, GKE, Cloud Run, Cloud Run functions or Agent Runtime on Gemini Enterprise Agent Platform: control vs operations burden, container vs function, event-driven vs long-running.
Key points
- Compute Engine gives you VMs and full control, with the most operations work.
- GKE runs many containers under Kubernetes.
- Cloud Run runs stateless containers and scales to zero.
- Cloud Run functions runs small event-driven handlers.
- Agent Runtime hosts AI agents.
- Rule of thumb: choose the most managed service that still meets your control needs.
Practice questions
Which service runs a stateless container that answers HTTP requests, scales down to zero, and needs no cluster management?
- Compute Engine
- Google Kubernetes Engine
- Cloud Run
- Sole-tenant nodes
Show answer
Answer: C. Cloud Run
Cloud Run is the serverless container platform. GKE needs a cluster to operate, and Compute Engine needs VMs you manage.
Which workloads suit Cloud Run functions?
- Create a thumbnail whenever an image lands in a Cloud Storage bucket
- Process each message published to a Pub/Sub topic with a short handler
- Run a server that loads a custom kernel driver
- Host a multi-service app that relies on Kubernetes custom resources
- Run a long-lived database on local disks
Show answer
Answer: A. Create a thumbnail whenever an image lands in a Cloud Storage bucket, B. Process each message published to a Pub/Sub topic with a short handler
Small handlers triggered by events such as a Cloud Storage upload or a Pub/Sub message are the typical fit. Kernel drivers, Kubernetes custom resources and a stateful database need more control than functions give.
True or false: with Cloud Run functions you must first build and publish your own container image.
Show answer
Answer: False
False. You supply function source code and the platform builds and runs it. Supplying your own container is the Cloud Run model.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
