An organization operates a cluster of stateful application servers on Google Compute Engine. The operations team needs to establish a automated, maintenance-free persistent disk backup strategy that takes daily snapshots of all data disks and automatically deletes snapshots older than 30 days. The solution must adhere to the principle of least privilege and avoid administrative overhead from managing custom scripts or third-party cron schedulers. Which approach aligns with Google-recommended best practices for managing Compute Engine resources?
- Create a Compute Engine Resource Policy that defines a daily snapshot schedule with a 30-day auto-delete retention policy, and attach this policy to each persistent disk.Cevap
- BMigrate the stateful Compute Engine instances to Spot VMs so that Google Cloud automatically triggers persistent disk snapshots prior to preemption events.
- CGrant the primitive Owner role to a dedicated VM service account and execute a daily cron job running gcloud compute disks snapshot with a custom deletion script.
- DRecreate the persistent disks in a new Google Cloud region each day to bypass regional snapshot storage limits without submitting a formal quota request.
Cevap
Creating a Compute Engine Resource Policy defining a daily snapshot schedule with a 30-day retention period and attaching it to the persistent disks is the Google-recommended best practice.
Compute Engine Resource Policies allow cloud administrators to define automated backup schedules and retention windows directly on persistent disks. This native mechanism manages snapshot creation and deletion without requiring custom scripts, cron jobs, or elevated service account permissions.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Resource Policies for Persistent Disk Snapshot Schedules