A retailer runs the web tier of an internal ordering application on Azure virtual machines. The web tier has these requirements:
- All web servers must run an identical configuration, and administrators do not want to keep that configuration consistent by hand.
- Traffic must be distributed across the web servers.
- The number of web servers must increase during known busy periods and when load rises unexpectedly, and decrease when demand falls.
- The application must keep running on virtual machines, because it depends on custom software installed in the operating system.
Which solution should you recommend for the web tier?
Virtual machine scale sets create and manage groups of identical, load-balanced VMs. They centralise the configuration, so administrators do not need to keep each VM consistent manually, and they scale out or in automatically based on demand or a schedule. Availability sets address only in-region redundancy, and Azure Batch is meant for batch and HPC jobs. A scale set therefore meets every stated requirement while keeping the workload on VMs.
- Correct: Deploy the web servers in a virtual machine scale set that autoscales on demand and on a schedule. Scale sets manage groups of identical, load-balanced VMs from a central configuration and can scale out or in automatically based on demand or schedules.
- Not correct: Deploy a single virtual machine and resize it to a larger size before each busy period. A single VM gives no load distribution, and manual resizing does not respond automatically to unexpected load increases.
- Not correct: Deploy a fixed number of web servers in an availability set behind an Azure Load Balancer. Availability sets improve resiliency against maintenance events and hardware failures, but they do not centralise configuration or change the number of instances automatically.
- Not correct: Deploy several B-series burstable virtual machines with individually managed configurations. Burstable sizes handle occasional CPU spikes on dev/test workloads, but this option still needs manual configuration management and does not add or remove instances.
- Not correct: Deploy the web tier to an Azure Batch pool and let Batch scale the compute nodes up and down. Azure Batch is designed to run large-scale parallel and HPC jobs and tasks, not to host a continuously running, load-balanced web tier.