A company wants to host a web application that automatically scales based on traffic. Which Azure service is most appropriate for hosting this application without managing virtual machines?
Azure App Service is a fully managed Platform-as-a-Service (PaaS) offering specifically designed for hosting web applications, REST APIs, and mobile backends. It includes built-in auto-scaling capabilities based on metrics or schedules, as well as automatic patching, load balancing, and high availability, without requiring you to manage infrastructure. This makes it the optimal choice for a web app that needs to handle variable traffic with minimal operational effort.
Why this answer
Azure App Service is a fully managed platform-as-a-service (PaaS) offering that automatically scales web applications based on traffic without requiring you to manage the underlying virtual machines. It supports built-in autoscaling rules, load balancing, and high availability, making it ideal for hosting web apps with variable demand.
Exam trap
The trap here is that candidates often confuse Azure App Service with Azure Virtual Machines, thinking that any scalable web app requires IaaS control, or they mistakenly choose Azure Container Instances because of its 'serverless' label, overlooking its lack of built-in autoscaling for web traffic.
How to eliminate wrong answers
Option A is wrong because Azure Virtual Machines are infrastructure-as-a-service (IaaS) resources that require manual management of the OS, scaling, and patching, contradicting the requirement to avoid managing VMs. Option C is wrong because Azure Batch is designed for large-scale parallel and high-performance computing (HPC) workloads, not for hosting web applications with autoscaling based on HTTP traffic. Option D is wrong because Azure Container Instances (ACI) provide serverless containers but lack built-in autoscaling for web traffic; scaling requires manual intervention or integration with additional services like Azure Container Apps or Kubernetes.