You are deploying a stateless web application on Azure virtual machines. The solution must automatically add and remove instances based on CPU demand and allow all instances to be managed as one logical group. Which Azure compute feature should you deploy?
Scale Sets provide autoscaling and centralized management for identical VM instances.
Why this answer
A Virtual Machine Scale Set (VMSS) is the correct Azure compute feature because it automatically manages a group of identical, load-balanced VMs that can scale in and out based on CPU demand using autoscale rules. It treats all instances as a single logical group, enabling unified management, patching, and application deployment, which is exactly what the stateless web application requires.
Exam trap
The trap here is that candidates often confuse an availability set (which provides high availability) with a scale set (which provides both high availability and automatic scaling), leading them to select availability set when the question explicitly requires automatic scaling and logical group management.
How to eliminate wrong answers
Option B (availability set) is wrong because it only provides high availability by distributing VMs across fault and update domains, but it does not support automatic scaling or management as a single logical group. Option C (Recovery Services vault) is wrong because it is a backup and disaster recovery service for Azure VMs and on-premises workloads, not a compute feature for scaling or grouping instances. Option D (boot diagnostics) is wrong because it is a troubleshooting feature that captures serial console output and screenshots for VM boot failures, with no capability for scaling or logical grouping.