Soru

Zorluk: ZorManaging Compute Engine Resources

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?

  1. 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
  2. B
    Detach 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.
  3. Create a snapshot schedule resource policy specifying the daily backup frequency and retention, and attach the resource policy to each persistent disk.Cevap
  4. D
    Assign the roles/owner primitive role to the Compute Engine Service Account to grant automated snapshot creation permissions across all project resources.
  5. E
    Convert 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

1
Resize the persistent disk capacity in Google Cloud
The block storage allocation grows to 1 TB while the instance continues running.
Google Cloud Persistent Disks support online disk resizing without detaching the disk or stopping the VM.
2
Expand the partition and file system inside the operating system
The operating system recognizes and utilizes the newly added disk space.
Resizing the disk at the GCP API level only enlarges the block device; OS utilities (such as resize2fs or xfs_growfs) must extend the file system.
3
Configure a native Snapshot Schedule Resource Policy
Automated daily backups occur according to schedule and retention requirements.
Resource policies natively attach to disks to manage scheduled snapshots without requiring manual scripts or broad IAM privilege escalation.

Anahtar Kavram

Compute Engine Disk Management and Automated Resource Policies
Bu soruyu puanla