AZ-104 exam dumps

AZ-104 practice question 147 of 289

Microsoft Certified: Azure Administrator Associate. Associate level, Microsoft. Free question with the correct answer and a full explanation.

AZ-104 Question 147

Select 2

You have a Linux virtual machine in Azure with a 512 GB data disk that is nearly out of space. You want to resize the data disk to 1 TB with minimal downtime. Which two actions should you perform?

  1. A

    Deallocate the VM before increasing the data disk size

  2. B

    Resize the data disk from the Azure portal or CLI while the VM is running

  3. C

    Expand the partition inside the OS after resizing the disk

  4. D

    Create a new disk from a snapshot and attach it to the VM

Show answer and explanation

Correct answers: B, C

Explanation

When you need extra capacity on an Azure data disk, you can typically increase its size while the VM runs (for supported disk types). After resizing in the Azure portal or via CLI, you must also resize your partition within the guest OS for the new space to become available. Deallocating the VM is not necessary in most disk expansion scenarios, and creating a new disk from a snapshot is not required for a simple expansion.

  • A. Incorrect.

    Deallocating the VM is only required under certain conditions (e.g., reducing disk size). For most data disk expansions using supported SKUs, deallocation is not strictly necessary and causes unnecessary downtime.

  • B. Correct.

    Azure allows resizing a data disk while the VM is running if it’s using certain disk types (e.g. Premium SSD). This step expands the disk at the Azure platform level.

  • C. Correct.

    After resizing the disk in Azure, you must expand the partition and filesystem within the OS to make use of the additional space.

  • D. Incorrect.

    You can add a new disk from a snapshot, but it isn’t required for a simple disk expansion. The recommended approach is to resize the existing disk and expand the partition.

Timed practice exam

Take a AZ-104 practice test under exam conditions

60 questions in 60 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam