Question 280
A scale set reduces instances aggressively and drops long-running jobs. What should its scale-in design include?
Explanation
Correct Answer
A busy VMSS worker can be removed during autoscale scale-in even while it processes a long job. The reliable design combines conservative scale-in selection, instance protection for workers that must not be selected, and VMSS terminate notifications via Azure Scheduled Events so the instance can stop accepting work, checkpoint or drain jobs within its configured deletion delay. The delay is bounded and is not an unlimited guarantee; operations must test behavior when jobs exceed it. Health monitoring is useful for upgrades and instance repair but does not itself implement graceful scale-in draining. Verify actual completed work rather than only probe health.
Incorrect Answers
Placement across availability zones or fault domains protects against infrastructure failures and helps distribute scale-set instances. It does not determine whether a busy VM is safe to terminate during autoscale scale-in. Here the failures occur while long-running worker jobs are active, so changing placement alone leaves the application-level data-loss risk unchanged. Use workload-aware scale-in design, instance protection when required, and termination notifications with an application drain or checkpoint procedure. Then verify that a chosen scale-in target stops accepting jobs before the instance is actually removed.
Azure Virtual Machine Scale Sets already manage the pool of virtual machines and support autoscale rules. Choosing the same service again does not address the observed loss of in-progress jobs as instances are deleted. The missing controls are termination awareness and workload coordination: use scheduled-event termination notification where supported, a bounded delay to drain or checkpoint work, and scale-in policy or instance protection to avoid selecting critical workers. Application health probes can inform other orchestration features but do not independently guarantee that a busy job has finished before deletion.
Adding compute replicas is horizontal scale-out and can help a system process more jobs during peaks, whereas increasing a single VM disk is a storage-capacity change. Neither action fixes the current hazard: the scale set already scales down, and the jobs are interrupted before their state is safely completed. A correct response needs termination-notification handling and application-level draining or idempotent checkpoint/retry behavior, with suitable scale-in policy and protection. A scale-out decision might reduce queue depth temporarily but would not guarantee safe deletion when the subsequent scale-in occurs.






Microsoft Azure Administrator (AZ-104) Practice Tests