Bitzu

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

Single choice

Which service runs a stateless container that answers HTTP requests, scales down to zero, and needs no cluster management?

  1. Compute Engine
  2. Google Kubernetes Engine
  3. Cloud Run
  4. 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.

Select all that apply

Which workloads suit Cloud Run functions?

  1. Create a thumbnail whenever an image lands in a Cloud Storage bucket
  2. Process each message published to a Pub/Sub topic with a short handler
  3. Run a server that loads a custom kernel driver
  4. Host a multi-service app that relies on Kubernetes custom resources
  5. 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

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.

Download on the App StoreGet it on Google Play

More Associate Cloud Engineer topics in this module