1Z0-1072-25 Question 202
Single answerYou have an OCI compute instance with an attached 100 GB block volume used for storing application data. The application needs more space and must remain online. You plan to resize the associated block volume to 300 GB. Which method achieves minimal downtime while making the new capacity available to the operating system?
- A
Online resize the block volume in the OCI console and extend the filesystem within the operating system
- B
Detach the volume, resize it in the OCI console, and reattach it to automatically expand the filesystem
- C
Create a new 300 GB block volume, copy all data from the old volume, and reattach the new block volume
- D
Shut down the compute instance, expand the block volume in the OCI console, then restart the instance
Show answer and explanation
Correct answer: A
Explanation
Online resizing of block volumes is a key feature in OCI that helps maintain high availability. You can expand an attached block volume on the fly with no need to detach or shut down the instance. Once expanded, the OS must recognize and extend the filesystem to utilize the new space. Refer to the OCI documentation on resizing block volumes (https://docs.oracle.com/en-us/iaas/Content/Block/Tasks/resizingvolumes.htm) for detailed steps.
- A. Correct.
Correct. OCI allows you to resize block volumes without detaching them, minimizing downtime. After the volume is expanded, you must resize the partition and filesystem in the operating system to make the additional capacity available.
- B. Incorrect.
Incorrect. While you can detach and then resize the volume, this approach requires instance downtime for detachment, and the filesystem does not automatically expand. You still need to expand the filesystem at the OS level.
- C. Incorrect.
Incorrect. Copying data to a new volume is more time-consuming and disrupts availability during the copy or reattachment, leading to more downtime than necessary.
- D. Incorrect.
Incorrect. Shutting down the instance causes more downtime, which is not minimal. OCI supports online resizing of block volumes without shutting down the compute instance.