exam questions

Exam AZ-104 All Questions

View all questions & answers for the AZ-104 exam

Exam AZ-104 topic 1 question 17 discussion

Actual exam question from Microsoft's AZ-104
Question #: 17
Topic #: 1
[All AZ-104 Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
jecawi9630
Highly Voted 3 years, 8 months ago
Wrong. You can simply detach a data disk from one VM and attach it to the other VM without stopping either of the VMs.
upvoted 249 times
Dankho
4 months, 2 weeks ago
Right, not wrong!
upvoted 2 times
...
jackdryan
2 years ago
C is correct
upvoted 5 times
...
jjnelo
3 years, 7 months ago
Correct. Just tested in lab.
upvoted 10 times
...
FrostyD
3 years, 6 months ago
Correct, tested in lab
upvoted 8 times
...
...
FunAJ
Highly Voted 2 years, 10 months ago
Selected Answer: A
Stop the VM first so that disk data is not corrupted (if an service is writing data while you detach)
upvoted 23 times
uwhm2b5fz
3 months, 1 week ago
detaching the disk is the correct option to satisfy the requirement of least amount of time possible. You can verify no disk activity before doing so so stopping the VM is not the correct answer.
upvoted 2 times
...
areyoushawtho
7 months ago
"allows for the virtual machines to be offline for the least amount of time possible." Detaching means no offline time, weather its better to or now
upvoted 2 times
Sholasleek
3 months, 4 weeks ago
It also says which action should you take first? FUnAJ is correct, stopping the VM to avoid disk errors.
upvoted 1 times
...
ty064
5 months ago
It says least amount of time possible, it doesn't say least amount of time ever. So least amount of time with best results
upvoted 3 times
...
...
karrey
1 year, 11 months ago
Makes sense but not needed according to MSF
upvoted 1 times
...
klasbeatz
2 years, 6 months ago
This makes the most sense but apparently stopping the VM isn't needed according to Microsoft documentation
upvoted 13 times
...
...
azuredbaadmin
Most Recent 1 month, 1 week ago
Selected Answer: A
To ensure that the virtual machines are offline for the least amount of time possible, the first action you should take is to stop the VM that includes the data disk. This will allow you to safely detach the data disk and then attach it to the other Azure VM. Here are the steps you should follow: Stop the VM that includes the data disk: This ensures that the data disk can be safely detached without any data corruption. Detach the data disk: Once the VM is stopped, you can detach the data disk from the VM. Attach the data disk to the other VM: After detaching, you can attach the data disk to the target VM. Start both VMs: Finally, start both VMs to bring them back online.
upvoted 1 times
...
AnilParadhe
1 month, 3 weeks ago
Selected Answer: A
A. Stop the VM that includes the data disk. Azure does not allow detaching a data disk from a running VM. You must first stop the VM to detach the disk safely.
upvoted 2 times
...
RajeshwaranM
2 months, 1 week ago
Selected Answer: C
C is the correct option. I tried to detach the data disk from VM1 to VM2 without shutting down either of them. The only thing you need to consider is that while you detach the data disk, you need to ensure that the data disk is not being used by any service or operation.
upvoted 4 times
...
Jig77
3 months, 2 weeks ago
De-attach the data disk from the current VM: To attach a data disk from one Azure VM to another, you must first detach the disk from the current VM. The disk must not be in use by the original VM when it is being attached to a different VM. This process can be done without shutting down the VM itself, minimizing downtime.
upvoted 1 times
...
LaReis
4 months, 3 weeks ago
Segundo o Copilot: Você Você tem uma máquina virtual (VM) do Azure que tem um único disco de dados. Você foi encarregado de anexar esse disco de dados a outra VM do Azure. Você precisa ter certeza de que sua estratégia permite que as máquinas virtuais fiquem offline pelo menor tempo possível. Qual das seguintes é a ação que você deve tomar PRIMEIRO? A. Pare a VM que inclui o disco de dados. B. Pare a VM à qual o disco de dados deve ser conectado. C. Retire o disco de dados. D. Exclua a VM que inclui o disco de dados. Copilot A. Pare a VM que inclui o disco de dados. Primeiro, pare a VM que atualmente possui o disco de dados para desconectá-lo com segurança. Isso minimizará o tempo de inatividade das VMs.
upvoted 1 times
...
asuarez
5 months ago
Selected Answer: A
To ensure the virtual machines are offline for the least amount of time possible, the first action you should take is to stop the VM that includes the data disk (Option A). This step is necessary to safely detach the data disk without risking data corruption1.
upvoted 1 times
...
Kalaiarasu
5 months, 1 week ago
Answer is A since the strategy allows for the virtual machines to be offline for the least amount of time possible
upvoted 1 times
...
kejo2
5 months, 1 week ago
Just tested this in my lab. C is the correct answer: you will need to detach the disk before you can add it to another vm
upvoted 1 times
...
[Removed]
6 months ago
Selected Answer: C
it´s C
upvoted 1 times
...
Davidsv
6 months, 1 week ago
Selected Answer: C
I made a experiment: 2 VM`s in one region in 2 zones (zone 1 and zone 2). And i can say thats you dont need to turn off virtual machine at all! Create a disk in 1 VM, attach. Now you can see that you can attach Disk on VM when its on. Deattach and you gonna see that`s you dont need to turn off VM to do it. Make snapshot of disk, after that do a new disk that gonna take data from snapshot and make it in 2 zone (or in zone 1 if you deattach from VM in zone 2). After creating go to VM2 disk and attach a new disk. You can do it without turning off VM2. And thats a miracle! Disk2 has been attached! So answer C is complitely correct. If you don`t trust my try it by yourself and you will see
upvoted 4 times
...
[Removed]
6 months, 3 weeks ago
answer is 'C' : When you no longer need a data disk that's attached to a virtual machine, you can easily detach it. This removes the disk from the virtual machine, but doesn't remove it from storage.
upvoted 1 times
...
TheFivePips
7 months, 1 week ago
Selected Answer: C
I dont like this question. It is possible to hot swap the disk, but it is not a best practice. Best answer is still C
upvoted 4 times
...
Mixxy1010
7 months, 1 week ago
if its not the Primary disk you should be able to detach the disk without stopping the VM - Voting C
upvoted 1 times
...
exampaul1
7 months, 3 weeks ago
Selected Answer: C
This exact question is on the Microsoft practice assessment for the AZ-104 exam and it states to detach the disk
upvoted 7 times
...
ELearn
7 months, 4 weeks ago
Selected Answer: C
according to this official Microsoft Link: The answer is most probably C You can hot remove a data disk, but make sure nothing is actively using the disk before detaching it from the VM. In the left menu, select Virtual Machines. Select the virtual machine that has the data disk you want to detach. Under Settings, select Disks. In the Disks pane, to the far right of the data disk that you would like to detach, select the detach button to detach. Select Save on the top of the page to save your changes. The disk stays in storage but is no longer attached to a virtual machine. The disk isn't deleted.
upvoted 2 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