VOOZH about

URL: https://nerdexam.com/exams/az-104/questions/51

⇱ Hotspot Question You have an Azure subscription that contains a... | AZ-104 Q#51 Answer | NerdExam


Question

Hotspot Question 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. Answer:

Exhibits

Answer Area

  • ProvisionVMAgent is configured as:True
    TrueFalse
  • EnableAutomaticUpdates is configured as:False
    TrueFalse
  • The RollingUpgradePolicy mode is:Automatic
    AutomaticManualRolling
  • The AutomaticOSUpgradePolicy configured is:Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicy
    Microsoft.Azure.Management.Compute.Models.AutomaticOSUpgradePolicyManualOSUpgradePolicyNoOSUpgradePolicy

Explanation

Because the VMSS Upgrade Policy is set to Automatic, manual model changes (like VM size) apply to all instances simultaneously, but Automatic OS Upgrades are not supported and will not deploy automatically.

Approach. For the first drop-down, select 4. The UpgradePolicy mode is set to Automatic. Under this mode, any manual updates made to the scale set model (such as changing the VM instance size) are immediately and simultaneously applied to all existing virtual machine instances. Since the prompt states there are 4 instances, up to 4 VMs will be updated at the same time.

For the second drop-down, select 0. The scenario describes the Automatic OS Image Upgrade feature ('When a new build... is released'). According to Microsoft documentation, Automatic OS Image Upgrades require the scale set's UpgradePolicy.Mode to be explicitly set to Rolling. Because the mode is currently Automatic, the OS image upgrade feature is not supported and will not automatically trigger. Therefore, 0 virtual machines will be updated automatically when a new build is released.

Common mistakes.

  • common_mistake. A very common mistake (shown in the provided dump screenshot) is selecting '1' for the second box. People often assume the feature is enabled and calculate a default rolling batch size of 20% (20% of 4 VMs = ~1 VM). However, this completely overlooks that the UpgradePolicy is Automatic rather than Rolling, meaning the Automatic OS Upgrade feature is disabled by design. Additionally, EnableAutomaticUpdates: False only disables in-guest Windows Update patching, which is actually a requirement for OS image upgrades, but doesn't override the strict need for the 'Rolling' policy.

Concept tested. Azure Virtual Machine Scale Sets (VMSS) Upgrade Policies, Automatic Model Updates, and Automatic OS Image Upgrades.

Reference. https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade

Topics

#Virtual Machine Scale Sets#VMSS#Azure PowerShell

Community Discussion

No community discussion yet for this question.

Full AZ-104 Practice