A financial technology platform deploys stateful transactional logging Compute Engine virtual machines attached to Persistent Disks. Due to an upcoming compliance audit, the operations team must safely expand the persistent disk capacity from 500 GB to 1 TB and update the underlying file system without recreating the instances or causing unnecessary service downtime. Additionally, they must ensure automated daily backups of these disks are configured according to organizational policy using native Google Cloud capabilities. Which two actions should the team perform to fulfill these operational requirements?
- Execute gcloud compute disks resize to increase the disk capacity, and then run file-system expansion utility commands inside the VM instance operating system to utilize the new space.Cevap
- BDetach the persistent disk from the VM instance, snapshot it, provision a new 1 TB persistent disk from the snapshot, and reattach the new disk to avoid running file-system expansion commands.
- Create a snapshot schedule resource policy specifying the daily backup frequency and retention, and attach the resource policy to each persistent disk.Cevap
- DAssign the roles/owner primitive role to the Compute Engine Service Account to grant automated snapshot creation permissions across all project resources.
- EConvert the persistent disks to Spot Compute Engine Disks to reduce monthly backup and snapshot maintenance costs during compliance audits.
Cevap
To expand disk capacity and automate backups with minimal disruption, the team should execute gcloud compute disks resize followed by OS-level file system expansion, and create a snapshot schedule resource policy attached to the persistent disks.
Expanding persistent disks in Compute Engine is performed online using gcloud compute disks resize or the Cloud Console, followed by OS-level file system expansion commands. For automated disk backups, GCP provides native snapshot schedule resource policies that attach directly to persistent disks.
Adım Adım Çözüm
Anahtar Kavram
Compute Engine Disk Management and Automated Resource Policies