1Z0-1072-25 Question 203
Single answerYou are running a mission-critical database application on an Oracle Cloud Infrastructure compute instance. The instance uses a 100 GB block volume to store data, and you have just been notified that usage has grown beyond this capacity. You need to increase the block volume size to 500 GB with minimal or no downtime. Which approach should you take to achieve this goal?
- A
Detach the volume from the instance, create a new 500 GB volume, and manually copy all data from the old volume to the new volume.
- B
Resize the block volume to 500 GB in the OCI Console (or via CLI) while it is still attached to the instance, then run the appropriate file system expansion commands on the instance.
- C
Stop the compute instance completely, create a new 500 GB block volume, and attach it before restarting the instance to ensure application consistency.
- D
Create a full backup of the block volume, restore it as a new 500 GB boot volume, and replace the old block volume with this new volume.
Show answer and explanation
Correct answer: B
Explanation
To increase the size of a block volume on Oracle Cloud Infrastructure without shutting down the application, you can perform an online volume resize through the Console or CLI. Once the volume is resized, use the appropriate OS-level file system commands (such as resize2fs for ext4 or xfs_growfs for XFS) to expand the file system to utilize the new capacity. Refer to OCI documentation on Resizing Block Volumes for step-by-step instructions.
- A. Incorrect.
Option 1: This approach would work technically, but it is not the most efficient or minimally disruptive. Detaching the volume and manually copying data would cause significant downtime for a mission-critical application.
- B. Correct.
Option 2: This is correct. Oracle Cloud Infrastructure allows you to resize a block volume in-place through the Console or CLI while it remains attached to the instance. After resizing the volume, you must extend the file system within the operating system to utilize the new space. This method minimizes downtime because the application can continue running during most of the process.
- C. Incorrect.
Option 3: Stopping the entire compute instance is unnecessary for resizing a block volume. While you could create a larger volume and migrate, it is more disruptive than resizing in-place and is not ideal when minimal downtime is required.
- D. Incorrect.
Option 4: Creating a full backup and then restoring it as a larger boot volume is a more complex operation and does not directly apply to resizing a data-only block volume. Boot volumes store the operating system, while the data resides on a separate block volume in this scenario.