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 4 question 57 discussion

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

HOTSPOT -
You have an Azure subscription that contains a virtual machine scale set. The scale set contains four instances that have the following configurations:
✑ Operating system: Windows Server 2016
✑ Size: Standard_D1_v2
You run the get-azvmss cmdlet as shown in the following exhibit:

Use the drop-down menus to select the answer choice that completes each statement based on the information presented in the graphic.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
The Get-AzVmssVM cmdlet gets the model view and instance view of a Virtual Machine Scale Set (VMSS) virtual machine.

Box 1: 0 -
The enableAutomaticUpdates parameter is set to false. To update existing VMs, you must do a manual upgrade of each existing VM.

Box 2: 4 -
Enabling automatic OS image upgrades on your scale set helps ease update management by safely and automatically upgrading the OS disk for all instances in the scale set.
Reference:
https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
mlantonis
Highly Voted 3 years, 6 months ago
Correct Answer: Box 1: 4 If you resize the Scale Set all the VMs get resized at once, thus 4 is the correct answer. Box 2: 1 Automatic OS updates update 20% of the VMs at once, with a minimum of 1 VM instance at a time. Also 20% of 4 = 0.8. Reference: https://docs.microsoft.com/en-us/learn/modules/build-app-with-scale-sets/2-features-benefits-virtual-machine-scale-sets https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set
upvoted 227 times
yoelalan14
2 years, 12 months ago
For Box 2, what about the Automatic Updated feature that is turned "off"? Wouldn't the answer be 0?
upvoted 11 times
e_karma
2 years, 11 months ago
That is patches where as this is os upgrades
upvoted 12 times
...
...
...
solarwinds123
Highly Voted 3 years, 11 months ago
The question asks "if the administrator changes the size", not if it gets scaled up vertically. I tested this, and if you resize the scale set all the virtual machines get resized at once, thus 4 is the correct answer. For the second part, automatic OS updates update 20% of the VMs at once, with a minimum of 1 VM instance at a time.
upvoted 106 times
oshoparsi
3 years, 7 months ago
20% 4 = 0.8 but minimum would be 1 vm.
upvoted 5 times
...
ciscogeek
3 years, 8 months ago
Most trustworthy, and correct as per other explanations and references as well.
upvoted 11 times
...
...
HawkesLager
Most Recent 3 weeks, 1 day ago
enableAutomaticUpdates = false , so its 0.
upvoted 1 times
...
LuLaCeK
1 month ago
You can resize VM in VMSS config. Only the one specific VM will be resized, not whole scale set. Box1 :1 Box2 :1
upvoted 1 times
...
SeMo0o0o0o
2 months ago
WRONG 4 1
upvoted 2 times
...
varinder82
5 months, 4 weeks ago
Final Answer : 4 1
upvoted 2 times
...
sairam
6 months, 3 weeks ago
Box 1: 1 This is because the question 1 states : " if the administrator changes the size of a VM (in the scaleset)" It is not resizing the scaleset. AI answer to this is as follows: Resizing an Individual VM: When you change the size (SKU) of an individual VM within the VMSS (e.g., from a smaller size to a larger one), only that specific VM is resized. The other VMs in the VMSS remain unaffected. The resized VM may need to be restarted to apply the new size. In summary, resizing an individual VM within a VMSS does not automatically resize all VMs in the set. You’ll need to manage each VM’s size independently. So the answer is 1 for Box 1. Box 2= 1 Automatic OS updates update 20% of the VMs at once, with a minimum of 1 VM instance at a time. Box 2 = 1
upvoted 2 times
...
quocdunginfo2
1 year, 2 months ago
EnableAutomaticUpdates = FALSE: New Windows OS update must be done manually => 0 VM UpgradePolicy = Automatic: 20% of VMs will be upgrade at the same time (Min=1) => 1 VM
upvoted 2 times
SgtDumitru
12 months ago
From those who are new on this question, this is the correct answer based on latest images.
upvoted 1 times
nchebbi
11 months, 3 weeks ago
That's not true, that flag enables in OS (VM) patching where the OS pacthes itself. "For scale sets using Windows virtual machines, starting with Compute API version 2019-03-01, the property virtualMachineProfile.osProfile.windowsConfiguration.enableAutomaticUpdates property must set to false in the scale set model definition. The enableAutomaticUpdates property enables in-VM patching where "Windows Update" applies operating system patches without replacing the OS disk" Ref: https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade#requirements-for-configuring-automatic-os-image-upgrade
upvoted 1 times
SgtDumitru
11 months, 3 weeks ago
I'm rethinking..... Based on your doc, indeed it will update all 4 since here we have a scale set. Therefore, correct answers are 4 and 1
upvoted 4 times
...
...
...
...
szy4624
1 year, 3 months ago
Newbee here, where can I know the total number of VMs?
upvoted 2 times
ajith_16
1 year, 3 months ago
It's mentioned in the scenerio itself!
upvoted 3 times
...
umavaja
9 months, 1 week ago
It is second line on start oof question HOTSPOT - You have an Azure subscription that contains a virtual machine scale set. The scale set contains four instances that have the following configurations:
upvoted 1 times
...
...
Josete1106
1 year, 4 months ago
Box 1: 4 & Box 2: 1
upvoted 2 times
...
lulzsec2019
1 year, 8 months ago
Guys, sorry for the noob question. where did you get the value "4"? I don't see any number 4 in the picture.
upvoted 4 times
redbull2023
1 year, 7 months ago
read the question again bro
upvoted 4 times
...
Indy429
11 months ago
It's at the top in the first or second sentence
upvoted 1 times
...
umavaja
9 months, 1 week ago
HOTSPOT - You have an Azure subscription that contains a virtual machine scale set. The scale set contains four instances that have the following configurations:
upvoted 1 times
...
...
yellowdot
1 year, 8 months ago
Box1 - 4 This refers to the second PS cmdlt 'UpgradePolicy' which "determines what happens next after you change the scale set model" (ex. VM size, OS ver, extensionPolicy). Box1 asks what happens when size of VM changes. Since it's set to 'automatic', the change will be applied to all the VMs in the scale set at once [ref: https://msftstack.wordpress.com/2016/11/15/azure-scale-set-upgrade-policy-explained/] Box2 - 0 This refers to the first PS cmdlt 'UpgradePolicy' which "determines what happens when image publishers publishes the latest image OS image - which in this case Microsoft released the Win Server 2016 image. Since it's set to 'false', there will be no changes made- u[dates will need to happen manually with user intervention. [ref: https://techcommunity.microsoft.com/t5/azure-paas-blog/azure-service-fabric-enableautomaticupdates/ba-p/834246]
upvoted 6 times
...
Standa_82
1 year, 9 months ago
It seems to me that picture doesn't match questions.
upvoted 7 times
...
dc2k79
2 years ago
Box 1: 4 The first command has nothing to do with VM Resizing. Box 2: 1 What's set to 'false' is Patch updates. This is recommended to be set to 'False' when Automatic OS upgrades are set to 'True'. What this means is that the automatic rolling OS Upgrades will happen at 20%.
upvoted 8 times
...
Bobby1977
2 years, 2 months ago
WindowsConfiguration.EnableAutomaticUpdates PropertyGets or sets indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning. Based on the above note, as EnableAutomaticUpdates = False the OS updates will not happen. So answers are Box1: 4 and Box 2: 0
upvoted 4 times
...
tt2tt
2 years, 3 months ago
There're seven more confusing comments here, I am totally lost... as usual, I will follow the answer from mlantonis
upvoted 11 times
Davin0406
2 years, 2 months ago
Me too bro
upvoted 6 times
...
...
NotMeAnyWay
2 years, 4 months ago
Part one: Answer 0 The Administrator is doing a manual change to the virtual machine scale set MODEL (AKA OS Build), however this model change does not take immediate affect for the exsiting machines in the Scale Set, see this section of the doc: Read Here: (https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set#how-to-update-global-scale-set-properties) Part 2: Answer 4 The Upgrade policy (Don't get confused with "Update" Policy, which is for OS Patches) is set to Automatic. When the Upgrade policy is set to automatic, all the VMs may be taken down and upgraded at the same time, as per the MS docs: Read Here: (https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set#how-to-bring-vms-up-to-date-with-the-latest-scale-set-model) NB: The 20% policy for upgrades mentioned in other comments is for Extensions in a VMSS, not the actual VM scale set.
upvoted 3 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 ...