exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 41 discussion

Actual exam question from Microsoft's AZ-204
Question #: 41
Topic #: 2
[All AZ-204 Questions]

DRAG DROP -
You provision virtual machines (VMs) as development environments.
One VM does not start. The VM is stuck in a Windows update process. You attach the OS disk for the affected VM to a recovery VM.
You need to correct the issue.
In which order should you perform the actions? 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:
Remove the update that causes the problem
1. Take a snapshot of the OS disk of the affected VM as a backup.
2. Attach the OS disk to a recovery VM.
3. Once the OS disk is attached on the recovery VM, run diskmgmt.msc to open Disk Management, and ensure the attached disk is ONLINE.
4. (Step 1) Open an elevated command prompt instance (Run as administrator). Run the following command to get the list of the update packages that are on the attached OS disk: dism /image:<Attached OS disk>:\ /get-packages > c:\temp\Patch_level
5. (Step 2) Open the C:\temp\Patch_level.txt file, and then read it from the bottom up. Locate the update that's in Install Pending or Uninstall Pending state.
6. Remove the update that caused the problem:
dism /Image:<Attached OS disk>:\ /Remove-Package /PackageName:<PACK
7. (Step 4) Detach the OS disk and recreate the VM. Then check whether the issue is resolved.
Reference:
https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-stuck-updating-boot-error

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
nedlo
Highly Voted 2 years, 1 month ago
sure i will use this knowledge for my developer work...
upvoted 47 times
grudzin
1 year, 10 months ago
Question says "The VM is stuck in a Windows update process". I ques it's common ;)
upvoted 8 times
...
br00net
1 year, 11 months ago
clearly, every developer needs to memorize such knowledge instead of searching in the documentation
upvoted 6 times
...
85e4c91
1 year, 6 months ago
I guess developers don't have access to google nowadays
upvoted 5 times
...
...
Magis
Highly Voted 2 years, 6 months ago
Correct. All steps are listed here - https://docs.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-stuck-updating-boot-error
upvoted 16 times
...
Christian_garcia_martin
Most Recent 9 months, 2 weeks ago
Is this a developer responsability?
upvoted 1 times
...
Lucifer14
2 years, 4 months ago
In 28-12-2022 exam
upvoted 3 times
...
memadk
2 years, 6 months ago
Is this a part of AZ-204? Then I must have missed something....
upvoted 5 times
martijn44
2 years, 6 months ago
I doubt it.. it seems many of these questions were copied over from AZ-203.
upvoted 2 times
...
...
finnishr
2 years, 8 months ago
100% correct!!
upvoted 4 times
...
SoftSol
3 years ago
Correct
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