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, 11 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 256 times
Sledgehammer
2 months ago
C is correct. I work with data disks on regualar bases and it is a blessing that this can be moved over to another VM without having to stop any VM first.
upvoted 2 times
...
Dankho
8 months, 1 week ago
Right, not wrong!
upvoted 2 times
...
jackdryan
2 years, 4 months ago
C is correct
upvoted 5 times
...
jjnelo
3 years, 11 months ago
Correct. Just tested in lab.
upvoted 10 times
...
...
FunAJ
Highly Voted 3 years, 2 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
7 months 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 5 times
...
areyoushawtho
10 months, 3 weeks 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
7 months, 3 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
8 months, 3 weeks 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
2 years, 3 months ago
Makes sense but not needed according to MSF
upvoted 1 times
...
klasbeatz
2 years, 9 months ago
This makes the most sense but apparently stopping the VM isn't needed according to Microsoft documentation
upvoted 14 times
...
...
Zcw001
Most Recent 1 week ago
Selected Answer: C
Since the disk in question is a data disk and not the OS disk, you can detach it without needing to stop the VM (option C). If it were the OS disk, you would need to stop the VM first (option A) to safely detach and reattach it. Detaching a data disk can be done while the VM is running, minimizing downtime and ensuring a smoother transition.
upvoted 1 times
...
dfcvffg
1 week ago
Selected Answer: C
Makes perfect sense that also lab does allows you to detach the disk while VM is running.
upvoted 1 times
...
ipv6fan
3 weeks, 1 day ago
Selected Answer: C
The key term is data disk. You can detach a data disk, but can't detach an OS disk while running
upvoted 1 times
...
NicoVick
4 weeks, 1 day ago
Selected Answer: C
c is good answer
upvoted 1 times
...
Kirby87
2 months, 1 week ago
Selected Answer: A
ere's the correct sequence: ✅ Stop (deallocate) the VM the data disk is currently attached to (Option A). ✅ Then, detach the disk (Option C). ✅ Attach the disk to the other VM. ✅ Start the VMs as needed. So while Option C is a required step, it can't be the first step — you have to stop the VM first.
upvoted 1 times
...
andted98
2 months, 3 weeks ago
Selected Answer: C
The question didn't specify whether the data disk is used for OS so since it can be an external attachable data disk, it can be detached without the need to shutdown the VM.
upvoted 1 times
...
azuredbaadmin
5 months 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
5 months, 2 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
6 months 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
7 months, 1 week 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
8 months, 1 week 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
8 months, 4 weeks 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
8 months, 4 weeks 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
9 months 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]
9 months, 3 weeks ago
Selected Answer: C
it´s C
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 ...