exam questions

Exam AZ-103 All Questions

View all questions & answers for the AZ-103 exam

Exam AZ-103 topic 3 question 26 discussion

Actual exam question from Microsoft's AZ-103
Question #: 26
Topic #: 3
[All AZ-103 Questions]

DRAG DROP -
You have two Azure virtual machines named VM1 and VM2. VM1 has a single data disk named Disk1.
You need to attach Disk1 to VM2. The solution must minimize downtime for both virtual machines.
Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Stop VM1.
Step 2: Detach Disk1 from VM1.

Step 3: Attach Disk1 to VM2 -

Attach an existing disk -
Follow these steps to reattach an existing available data disk to a running VM.
1. Select a running VM for which you want to reattach a data disk.
2. From the menu on the left, select Disks.
3. Select Attach existing to attach an available data disk to the VM.
4. From the Attach existing disk pane, select OK.
Step 4: Start VM1.
Detach a data disk using the portal
1. In the left menu, select Virtual Machines.
2. Select the virtual machine that has the data disk you want to detach and click Stop to deallocate the VM.
3. In the virtual machine pane, select Disks.
4. At the top of the Disks pane, select Edit.
5. In the Disks pane, to the far right of the data disk that you would like to detach, click the Detach button image detach button.
6. After the disk has been removed, click Save on the top of the pane.
7. In the virtual machine pane, click Overview and then click the Start button at the top of the pane to restart the VM.
8. The disk stays in storage but is no longer attached to a virtual machine.
References:
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/detach-disk https://docs.microsoft.com/en-us/azure/lab-services/devtest-lab-attach-detach-data-disk

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Raff000
Highly Voted 5 years, 1 month ago
You sould start VM1 before attaching the disk to VM2 in order to minimize downtime. So the order should be: Stop VM1, Detach Disk from V1, Start VM1, Attach Disk To VM2
upvoted 40 times
sapien45
5 years, 1 month ago
I second that
upvoted 1 times
...
STFN2019
5 years, 1 month ago
agreed 100%
upvoted 1 times
...
smadrane
4 years, 11 months ago
Exactly my thoughts! I agree with this order
upvoted 1 times
...
Rock
4 years, 1 month ago
Given answer is correct, you do not need to stop vm for attaching the disk, but white detaching you need to stop the VM.
upvoted 2 times
...
...
Bro123
Highly Voted 5 years, 2 months ago
Stop VM1 Detach Disk 1 to VM1 Start VM2 Attach Disk1 to VM2 You can only attach a data disk to a VM that is running. Make sure the VM is running before you try to attach a data disk.
upvoted 26 times
asdfgh1234567
5 years ago
But VM1 doesn't need to be shutdown for the disk to be detached... IMO I think the question is old.
upvoted 7 times
...
nowisthetime
4 years, 9 months ago
I dont think VM2 was even stopped so why do you have to start it.
upvoted 7 times
...
Chris78
4 years, 7 months ago
That's so wrong notice you have put there. For what? to confuse everyone? "You can only attach a data disk to a VM that is running". No need for the VM to be running. I have tested it myself. Both my machines where shut down when I detach and attach the same disk. Then started VM2.
upvoted 4 times
...
Aniruddha_dravyakar
4 years, 1 month ago
why are you confusing others?
upvoted 3 times
...
...
tashakori
Most Recent 1 year, 1 month ago
- Stop VM1 - Detach Disk1 from VM1 - Start VM1 - Attach Disk1 from VM2
upvoted 1 times
...
jpcapone
3 years, 3 months ago
Ok so now adays can't you perform this activity in 2 steps?
upvoted 1 times
...
sajy2k
4 years, 1 month ago
keyword minimize "downtime". so if you want until you finish attach the disk to vm2 and then only bring up VM1, the downtime has been longer. so the answer should Stop VM1 Detach from VM1 Start VM1 Attach disk to VM2
upvoted 3 times
...
I
4 years, 2 months ago
To minimize downtime. And attaching disk to VM only when it is working. Then the given answer is correct.
upvoted 1 times
...
NickyDee
4 years, 4 months ago
In a lab, I was able to detach a data disk from one running Windows 2016 Server VM and attach it to another running Windows 2016 server VM on the fly, without stopping the VMs. However the disk was not configured in the OS as a volume yet. it was not provisioned, mounted, drive letter assigned and not formatted. does that matter?
upvoted 1 times
...
Thi
4 years, 6 months ago
we can attach and deattach running VMs as per microsoft documentation but I prefer given answer of website
upvoted 1 times
...
hstorm
4 years, 8 months ago
Well you can hot detach a data disk, but then you have to be sure that nothing is using the disk at the moment. I would stop the wm to ensure data consistency... Stop VM1 Detach Start VM1 Attach to VM2
upvoted 2 times
...
Xtian_ar
4 years, 8 months ago
The reason to stop VM1 is because "may be" it was being used it, not because it was impossible to detach a data disk from a running VM. So, in order to not loose data, the correct action is to stop VM. But in order to have less downtime, the order might be 1) stop VM1 2) detach disk from VM1 3) start VM1 4) attach data disk to VM2
upvoted 4 times
...
ych
4 years, 9 months ago
stop vm1 - start vm1 - attach - detach
upvoted 1 times
...
imnotabot
4 years, 9 months ago
You can hot detach a data disk. It's just you have to make sure the disk isn't being used during this process. Look at this https://docs.microsoft.com/en-us/azure/virtual-machines/windows/detach-disk I would say the safe bet would be to shut down the VM first. And also, the questions states to minimize downtime for both VMs. In this case, it should be the following Stop VM1 detach disk Start VM1 Attach disk to VM2
upvoted 3 times
...
bnair
4 years, 9 months ago
You don't need to stop any VM. I just tested with 2 ubuntu machines. detach from vm1 attach to vm2 (click edit at the top of the disk blade before you try to detach it)
upvoted 2 times
...
Carvin
4 years, 9 months ago
I think this order should minimize the downtime of both VM: 1.Stop VM1 2.Detach Disk 1 to VM1 3.Start VM1 4.Attach Disk1 to VM2
upvoted 5 times
Abdelbj
4 years, 9 months ago
agree with you !! The solution must minimize downtime for both virtual machines !!
upvoted 2 times
...
...
Gizdagyerek
4 years, 9 months ago
This is a nonsense, I guess it's not a valid question any more.
upvoted 2 times
...
Drift_King
4 years, 10 months ago
VM1 and VM2 are running. No where in question its mentioned that VM2 is stopped. So why choose start VM2 again? To minimized downtime we need to stop/start VM1 as soon as possible. So the answer should be: 1. Stop VM1 2. Detach Disk 1 from VM1 3. Start VM1 4. Attach Disk1 to VM2
upvoted 7 times
...
ariahi
4 years, 10 months ago
Stop VM1 Detach the disk. Start VM1 ( now your VM2 is back and downtime is minimized ) Attach disk to VM2
upvoted 2 times
ariahi
4 years, 10 months ago
I mean to say "Start VM1 ( now your <<VM1>> is back and downtime is minimized )"
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago