Google Cloud Professional Cloud Database Engineer — Question 116

Your organization is running a critical production database on a virtual machine (VM) on Compute Engine. The VM has an ext4-formatted persistent disk for data files. The database will soon run out of storage space. You need to implement a solution that avoids downtime. What should you do?

Answer options

Correct answer: A

Explanation

Option A is correct because increasing the size of the persistent disk in the Google Cloud Console and then using the resize2fs command allows for the disk to be extended without requiring downtime. Option B is incorrect as fdisk is not necessary for this process and does not extend the filesystem. Option C involves multiple steps that create downtime, while Option D requires moving files to a new disk, which is also more complex and can lead to service interruption.