Microsoft Azure Administrator — Question 32
You have an Azure virtual machine (VM) that has a single data disk. You have been tasked with attaching this data disk to another Azure VM.
You need to make sure that your strategy allows for the virtual machines to be offline for the least amount of time possible.
Which of the following is the action you should take FIRST?
Answer options
- A. Stop the VM that includes the data disk.
- B. Stop the VM that the data disk must be attached to.
- C. Detach the data disk.
- D. Delete the VM that includes the data disk.
Correct answer: C
Explanation
The first step should be to detach the data disk from the original VM, as this action does not require the VM to be stopped first and allows for quicker reattachment to another VM. Stopping either VM or deleting the original VM would result in unnecessary downtime, and they are not required actions to achieve the goal.