Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
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 (?) , you can switch to a simple comment.
Switch to a voting comment New
jecawi9630
Highly Voted 3 years, 3 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 241 times
jackdryan
1 year, 7 months ago
C is correct
upvoted 5 times
...
jjnelo
3 years, 2 months ago
Correct. Just tested in lab.
upvoted 10 times
...
FrostyD
3 years, 1 month ago
Correct, tested in lab
upvoted 8 times
...
imartinez
3 years, 1 month ago
Right. the correct answer is C: detach the disk is the first action. And Also: You can only attach a data disk to a VM that is running- https://docs.microsoft.com/en-us/azure/devtest-labs/devtest-lab-attach-detach-data-disk
upvoted 13 times
...
...
FunAJ
Highly Voted 2 years, 5 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
areyoushawtho
2 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 1 times
ty064
2 days, 12 hours 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 1 times
...
...
karrey
1 year, 6 months ago
Makes sense but not needed according to MSF
upvoted 1 times
...
klasbeatz
2 years, 1 month ago
This makes the most sense but apparently stopping the VM isn't needed according to Microsoft documentation
upvoted 11 times
...
skydivex
1 year, 7 months ago
Wrong... disk can be hot detached with powershell or through portal. the command ensures no operation is accessing the disk when detaching it. here is the link to micrsoft article: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/detach-disk
upvoted 16 times
Benzitho
1 year, 6 months ago
"You can hot remove a data disk using PowerShell, but make sure nothing is actively using the disk before detaching it from the VM." Copied from your LINK ....
upvoted 9 times
maxsteele
1 year ago
but the objective to reduce downtime as much as possible. So the real FIRST step would be to ensure nothing is actively using the disk. However that is not an option so we must go with the most correct option, which would be to Detach The Disk, as that prevents downtime.
upvoted 2 times
23ce930
6 months, 1 week ago
You are betting on the vm not having anything written on the disk. If you detach and disk gets corrupted then you need to spend more time backing it up.
upvoted 1 times
...
...
...
...
...
asuarez
Most Recent 6 days 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
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
1 week, 2 days 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
...
SeMo0o0o0o
1 month ago
Selected Answer: C
it´s C
upvoted 1 times
...
Davidsv
1 month, 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 2 times
...
securityES
1 month, 4 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
2 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 2 times
...
Mixxy1010
2 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
2 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 5 times
...
ELearn
2 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
...
amurp35
3 months, 2 weeks ago
Selected Answer: C
See the MS documentation, C is correct.
upvoted 3 times
...
tsummey
3 months, 2 weeks ago
Selected Answer: C
n Azure, every virtual machine (VM) has at least two types of disks: an operating system (OS) disk and one or more data disks. The OS disk is essential for booting the VM, while data disks are used for applications and data storage. When the question refers to a VM with a “single data disk,” it implies that there is one data disk in addition to the OS disk. Therefore, detaching the single data disk does not affect the VM’s ability to run because the OS disk remains attached, allowing the VM to operate normally. The data disk can be detached while the VM is running
upvoted 4 times
...
hemant_ahire
4 months ago
Answer is A since you need to make sure writing is not progress to data disk https://learn.microsoft.com/en-us/azure/virtual-machines/windows/detach-disk
upvoted 1 times
...
iqqbal
4 months, 1 week ago
Selected Answer: A
As the questions says which of the following is the action you should take first, so the correct answer is A, because before detaching we have to stop the source VM.
upvoted 1 times
...
samkhtb
4 months, 1 week ago
Correct Answer : A. Stop the VM that includes the data disk. As stated in the question, this is the only disk the VM has, meaning it is the one include the OS. no meaning keeping the VM on when detaching the OS disk from it.
upvoted 1 times
chucklu
4 months ago
we have two disk types here, os disk and data disk. when mentioned data disk, it means it's not os disk
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 ...