Soru

Zorluk: OrtaConfigure Virtual Machine Scale Sets (VMSS)

You are configuring an Azure Virtual Machine Scale Set (VMSS) named `vmss-finance` to handle a queue-based processing workload. The scale set is configured with a Flexible orchestration mode, a current instance count of 8, and a Manual upgrade policy. You need to configure a scale-in policy to ensure that when the queue depth decreases and the scale set scales in, the virtual machines that have been running the longest are deleted first. Which scale-in policy should you configure?

  1. OldestVMCevap
  2. B
    NewestVM
  3. C
    Default
  4. D
    OldestInstance

Cevap

OldestVM
The correct policy is 'OldestVM'. This policy deletes the oldest virtual machine in the scale set based on its creation time. This satisfies the requirement to delete the virtual machines that have been running the longest.

Adım Adım Çözüm

1
Analyze the VMSS requirements and parameters.
The goal is to delete the virtual machines that have been running the longest (the oldest VMs) during scale-in events.
This helps clean up VMs that may have accumulated temporary state or older configurations over time.
2
Evaluate the available scale-in policies in Azure VMSS.
The three valid scale-in policies are Default, OldestVM, and NewestVM.
Azure provides these built-in policies to control which virtual machines are removed during scale-in.
3
Select the policy that targets the oldest virtual machines.
The 'OldestVM' policy aligns with the requirement, while 'Default' balances zones/fault domains first and 'NewestVM' targets the most recently created instances.
Choosing 'OldestVM' ensures that the virtual machines with the earliest creation time are deleted first.

Anahtar Kavram

Azure VMSS Scale-In Policies
Bu soruyu puanla