Bitzu

Associate Cloud Engineer ยท Operating VMs and developer environments

How snapshots behave

Creating, listing and deleting snapshots, incremental behavior, snapshot schedules and retention, restoring a disk from a snapshot.

Key points

  • The first snapshot of a disk is a full copy; later ones store only changed data.
  • Deleting a snapshot moves data other snapshots need into the next one.
  • To restore, create a NEW disk from the snapshot (gcloud compute disks create --source-snapshot).
  • A snapshot schedule is a resource policy attached to disks, with a retention setting.

Source: https://docs.cloud.google.com/compute/docs/disks/snapshots

Practice questions

Single choice

What does a snapshot taken after the first one for the same disk contain?

  1. A full copy of the whole disk every time
  2. Only the data changed since the previous successful snapshot
  3. Only the file system metadata
  4. Only the blocks that were deleted
Show answer

Answer: B. Only the data changed since the previous successful snapshot

Later snapshots are incremental: only data changed since the last successful snapshot, referencing earlier ones for the rest.

Select all that apply

Which statements about snapshots are correct?

  1. The first snapshot of a disk is a full copy
  2. Restoring creates a new disk from the snapshot
  3. Restoring overwrites the original disk in place
  4. A snapshot must be deleted before creating the next one
  5. Snapshots can only be created while the VM is stopped
Show answer

Answer: A. The first snapshot of a disk is a full copy, B. Restoring creates a new disk from the snapshot

Snapshots are incremental and restoring creates a new disk without touching the source or the snapshot. They are not a copy-on-write link that vanishes when the disk is deleted, and you do not overwrite a disk in place.

True or false

True or false: deleting an older snapshot makes the later snapshots unusable.

Show answer

Answer: False

False. Data later snapshots still need is moved into the next snapshot, so they remain restorable (the next one may grow).

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