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

Cloud Build Study Notes

Cloud Build is Google Cloud's serverless continuous integration and continuous delivery platform that executes builds on Google infrastructure in response to source changes or manual invocation. A build is a series of steps, each running in a container, defined in a cloudbuild.yaml file or a Dockerfile.

Exam tip: On build-permission questions, check the Cloud Build service account's IAM roles first; that account, not yours, runs every step.

Key facts

What the exam expects you to know

Cloud Build vs Cloud Deploy: when to use which

Choose Cloud Build when the job is to compile code, run tests, and produce artifacts such as container images or packages; it is the build and CI side of the pipeline. Choose Cloud Deploy when the job is to deliver an already-built artifact to target runtimes such as GKE or Cloud Run with controlled promotions, approvals, and rollback. Many pipelines use both in sequence: Cloud Build creates and tests the image, stores it in Artifact Registry, and then hands delivery to Cloud Deploy for staged, auditable releases across environments. See also the Cloud Deploy notes.

Useful gcloud commands

gcloud builds submit --tag gcr.io/my-project/my-image
gcloud builds list
gcloud builds log BUILD_ID
gcloud builds triggers list

Common exam traps

Frequently asked questions

What is a build step in Cloud Build?

A step is one containerized action in a build, such as compiling code, running unit tests, or building a Docker image. Each step specifies a builder image and its entrypoint arguments, runs in the shared workspace, and must exit successfully before dependent steps continue. The sequence of steps defines your whole pipeline.

How do triggers automate builds?

A trigger watches a source, such as a repository push, a pull request, a Pub/Sub message, or a webhook, and starts a build automatically when the event matches its filter. Triggers can include or exclude branches and file paths, pass substitutions, and point at the build configuration stored in the repository or defined inline.

When do I need a private worker pool?

Use a private pool when build steps must reach resources inside your VPC, such as a private artifact server, an on-premises system reached through VPN, or a database with no public address. Private pool workers run in a network peered to your VPC, while the default public pool cannot reach private-only resources.

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.