Google Cloud Associate Cloud Engineer — Question 250
Your company is running a critical workload on a single Compute Engine VM instance. Your company's disaster recovery policies require you to back up the entire instance’s disk data every day. The backups must be retained for 7 days. You must configure a backup solution that complies with your company’s security policies and requires minimal setup and configuration. What should you do?
Answer options
- A. Configure the instance to use persistent disk asynchronous replication.
- B. Configure daily scheduled persistent disk snapshots with a retention period of 7 days.
- C. Configure Cloud Scheduler to trigger a Cloud Function each day that creates a new machine image and deletes machine images that are older than 7 days.
- D. Configure a bash script using gsutil to run daily through a cron job. Copy the disk’s files to a Cloud Storage bucket with archive storage class and an object lifecycle rule to delete the objects after 7 days.
Correct answer: B
Explanation
The correct answer is B because persistent disk snapshots are specifically designed for backing up disk data and can be easily scheduled, meeting the daily backup requirement with a 7-day retention policy. Option A does not provide actual backups, while C and D involve more complex setups that require additional configuration and management, which contradicts the requirement for minimal setup.