Original study notes for cloud certification exams — Google Cloud first, more clouds in build.

Cloud Run Study Notes

Cloud Run is a fully managed serverless platform that runs stateless containers and automatically scales them with incoming requests, including to zero when idle. You supply a container image, and Google handles infrastructure, load balancing, and TLS. It fits HTTP services, APIs, and webhooks that do not need a cluster.

Exam tip: Stateless container, HTTP traffic, scale to zero, and no cluster to manage is the classic Cloud Run fingerprint on the ACE exam.

Key facts

What the exam expects you to know

Cloud Run vs App Engine: when to use which

Choose Cloud Run when you already package your application as a container, need a specific language runtime or system library, or want to bring any HTTP-serving image and scale it to zero. Choose App Engine when you prefer a platform-managed runtime where you deploy source code and let Google supply the language environment. The decision criteria are packaging and portability: Cloud Run accepts any container that listens on a port, while App Engine is simpler for supported runtimes but ties you more closely to its environment. See also the App Engine notes.

Useful gcloud commands

gcloud run deploy my-service --image=gcr.io/my-project/my-image --region=us-central1
gcloud run services list --region=us-central1
gcloud run services update-traffic my-service --to-revisions=my-service-00002=10 --region=us-central1

Common exam traps

Frequently asked questions

How does Cloud Run handle a new deployment safely?

Every deployment creates a new immutable revision while the previous revision keeps running. You can send a small percentage of traffic to the new revision first, watch logs and error rates, then shift all traffic when it looks healthy. If problems appear, you shift traffic back to the earlier revision for an almost instant rollback.

Can Cloud Run connect to a private database?

Yes. A service can reach VPC resources through a Serverless VPC Access connector or Direct VPC egress, and it can connect to Cloud SQL using the Cloud SQL Auth Proxy integration built into Cloud Run. You configure the connector, subnet, and Cloud SQL connection name on the service, then use private addresses from your application code.

What is the difference between a Cloud Run service and a job?

A service is long-lived in concept: it receives HTTP requests or events, scales with demand, and waits for the next request. A job runs one or more container instances to completion and then exits, with no endpoint to call. Use a job for database migrations, scheduled reports, and other finite tasks.

Study aid disclaimer: Cloud Cert Notes is an independent educational study aid. It is not affiliated with, endorsed by, or sponsored by Google, Microsoft, Amazon, Oracle, or Alibaba. Google Cloud, Associate Cloud Engineer, and Cloud Digital Leader are trademarks of Google LLC; all other certification names and product names are trademarks of their respective owners. Always confirm service details against the official provider documentation before sitting an exam.