GCP Associate Cloud Engineer Practice Question 21: Snapshot Schedule Disk
Google Cloud Associate Cloud Engineer · Test 3 · question 1 of 10
A Compute Engine VM stores customer uploads on a persistent disk. You must take a snapshot of the disk every day and keep each snapshot for 14 days, without writing or maintaining scripts.
What should you do?
Show answer and explanation
Answer:
A snapshot schedule is a built-in resource policy. You set the frequency (hourly, daily, or weekly), the start time, and how long snapshots are kept, and Compute Engine creates and deletes the snapshots for you once the schedule is attached to the disk.
Option A does the job but is exactly the script and credentials you must maintain, and it fails whenever the VM is stopped. Option B captures the boot disk configuration as an image, which is heavier and is not a scheduled backup mechanism for a data disk. Option D would need extra code for the deletion of old snapshots and a service account for the caller, so it is more work than the built-in policy.