Google Cloud Professional Cloud Architect — Question 46
A production database virtual machine on Google Compute Engine has an ext4-formatted persistent disk for data files. The database is about to run out of storage space.
How can you remediate the problem with the least amount of downtime?
Answer options
- A. In the Cloud Platform Console, increase the size of the persistent disk and use the resize2fs command in Linux.
- B. Shut down the virtual machine, use the Cloud Platform Console to increase the persistent disk size, then restart the virtual machine
- C. In the Cloud Platform Console, increase the size of the persistent disk and verify the new space is ready to use with the fdisk command in Linux
- D. In the Cloud Platform Console, create a new persistent disk attached to the virtual machine, format and mount it, and configure the database service to move the files to the new disk
- E. In the Cloud Platform Console, create a snapshot of the persistent disk restore the snapshot to a new larger disk, unmount the old disk, mount the new disk and restart the database service
Correct answer: A
Explanation
The correct answer A is the most efficient because it allows for resizing the persistent disk while the VM is still running, thus minimizing downtime. Option B requires shutting down the VM which increases downtime, while C does not address the need for filesystem resizing. Options D and E involve creating new disks, which is more complex and time-consuming compared to simply resizing the existing disk.