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

Compute Engine Study Notes

Compute Engine is Google Cloud's infrastructure-as-a-service offering that lets you create and run virtual machines on Google's infrastructure. You control the operating system, machine type, disks, and networking. It is the most flexible compute option and the one to choose when you need full control over the VM environment.

Exam tip: For any scenario mentioning full OS control, licensing, or a lift-and-shift migration with no code changes, think Compute Engine first.

Key facts

What the exam expects you to know

Compute Engine vs Google Kubernetes Engine: when to use which

Choose Compute Engine when an application needs a specific operating system, kernel tuning, licensed software tied to a machine, or direct control over disks and networking. Choose GKE when the workload is already containerized and you want orchestrated scheduling, rolling updates, and self-healing pods managed for you. The decision often comes down to control versus abstraction: Compute Engine gives you the VM and all responsibility for patching and scaling it, while GKE removes node and container scheduling work but requires your application to fit a container and Kubernetes model. See also the Google Kubernetes Engine notes.

Useful gcloud commands

gcloud compute instances create my-vm --zone=us-central1-a --machine-type=e2-medium
gcloud compute instances list
gcloud compute snapshots create my-snapshot --source-disk=my-disk --zone=us-central1-a
gcloud compute instance-groups managed create my-mig --template=my-template --size=3 --zone=us-central1-a

Common exam traps

Frequently asked questions

What is the difference between a snapshot and a machine image?

A snapshot backs up the data on a single persistent disk and is mainly for backup and for creating disks in other zones or regions. A machine image captures the entire VM configuration, including instance metadata, permissions, and all attached disks, so you can clone or restore a complete instance in one operation.

When should I use Spot VMs?

Use Spot VMs for workloads that can tolerate interruption, such as batch processing, rendering, CI jobs, and stateless workers behind a load balancer. Google can preempt them when capacity is needed elsewhere, and they carry no SLA, so never place a sole production database or any non-replicated critical service on them.

How does autoscaling work in a managed instance group?

You set a minimum and maximum instance count and a signal such as average CPU utilization, load balancing capacity, or a Cloud Monitoring metric. The autoscaler adds instances when the signal rises above your target and removes them during quiet periods, while health checks and autohealing replace instances that fail.

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.