Question

Difficulty: MediumConfigure Virtual Machine Scale Sets (VMSS)

Your company has an Azure Virtual Machine Scale Set named vmss-processing. The scale set is configured with autoscale rules and currently runs five instances. One of the instances, vmss-processing_3, is currently running a critical, long-running database validation task that must not be interrupted. The remaining instances are idle. You expect a scale-in event to be triggered shortly due to low overall CPU utilization. You need to prevent vmss-processing_3 from being terminated during the scale-in event, without affecting the scaling behavior of the other instances. What should you do?

  1. From the scale set instances blade, select vmss-processing_3 and enable instance protection.Answer
  2. B
    Change the scale-in policy of the vmss-processing scale set to NewestVM.
  3. C
    Change the upgrade policy of the vmss-processing scale set to Manual.
  4. D
    Configure a Resource Lock of type CanNotDelete on the resource group containing vmss-processing.

Answer

From the scale set instances blade, select vmss-processing_3 and enable instance protection.
Enabling instance protection on a specific scale set instance ensures that the autoscale engine will not select it for termination during a scale-in event. Other, unprotected instances remain subject to normal scale-in actions, ensuring correct overall scaling behavior without interrupting the critical task running on the protected instance.

Step-by-Step Solution

1
Identify the instance performing the critical task, which is vmss-processing_3.
Target instance identified.
We must selectively protect only this instance from being terminated.
2
Apply instance protection to the target instance.
The instance vmss-processing_3 is excluded from scale-in selection.
Instance protection is designed to prevent the autoscale engine from terminating specific instances while keeping normal autoscale functions active for the rest of the scale set.

Key Concept

Instance Protection in Azure Virtual Machine Scale Sets allows administrators to protect specific virtual machine instances from being terminated during autoscale scale-in events.
Rate this question