Soru

Zorluk: OrtaConfigure Virtual Machine Scale Sets (VMSS)

An administrator is deploying an Azure Virtual Machine Scale Set named `vmss-worker`. The scale set will run a containerized background processing application. The startup script of the application registers each virtual machine instance with an external monitoring service. You need to ensure that the scale set does not provision temporary, excess virtual machine instances during scale-out events, as this leads to orphaned registrations in the monitoring service. What should you do?

  1. Set the overprovision property of the Virtual Machine Scale Set to false.Cevap
  2. B
    Set the upgrade policy of the Virtual Machine Scale Set to Manual.
  3. C
    Set the scale-in policy of the Virtual Machine Scale Set to NewestVM.
  4. D
    Set the singlePlacementGroup property of the Virtual Machine Scale Set to false.

Cevap

Disable overprovisioning by setting the overprovision property of the Virtual Machine Scale Set to false.
Disabling overprovisioning by setting the overprovision property to false prevents Azure from spinning up temporary, excess virtual machine instances during scale-out events. This ensures that only the requested number of instances are provisioned and initialized, preventing orphaned registrations in external services like monitoring tools.

Adım Adım Çözüm

1
Analyze the scale-out behavior of the Virtual Machine Scale Set.
By default, the scale set has overprovisioning enabled (overprovision=true), which deploys extra VMs to speed up provisioning time and deletes them once the target count is healthy.
Identify why temporary VMs are running initialization scripts and causing orphaned registrations.
2
Determine the configuration setting to prevent extra VM provisioning.
Disabling overprovisioning (setting overprovision to false) restricts Azure to provisioning only the exact number of instances specified in the scale-out request.
Ensures startup/initialization scripts are executed only on virtual machines that will remain part of the active scale set.
3
Select the correct parameter modification in the Azure Resource Manager (ARM) template or CLI/PowerShell command.
Setting the overprovision property to false resolves the orphaned registration issue.
Applies the required configuration to the scale set's deployment template.

Anahtar Kavram

Disabling Virtual Machine Scale Set (VMSS) overprovisioning prevents the creation and subsequent immediate deletion of temporary virtual machine instances during scale-out events, which is critical when initialization scripts perform external registrations.
Bu soruyu puanla