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
What does a snapshot taken after the first one for the same disk contain?
- A full copy of the whole disk every time
- Only the data changed since the previous successful snapshot
- Only the file system metadata
- 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.
Which statements about snapshots are correct?
- The first snapshot of a disk is a full copy
- Restoring creates a new disk from the snapshot
- Restoring overwrites the original disk in place
- A snapshot must be deleted before creating the next one
- 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: 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.
