GCP Associate Cloud Engineer Practice Question 21: Snapshot Schedule Disk

Google Cloud Associate Cloud Engineer · Test 3 · question 1 of 10

Compute Engine Operationseasy

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?

Select one answer
Show answer and explanation

Answer:

  • C. Create a snapshot schedule with a daily frequency and a 14 day retention, and attach it to the disk

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.

Reference: Create scheduled snapshots for persistent disks

Practice Test 3 ›

Study guides for Google Cloud Associate Cloud Engineer