Microsoft Certified: Azure Administrator AssociateDeploy and manage Azure compute resourcesHard

A company needs to deploy a highly available web application to Azure. The application's backend consists of several stateless APIs. You want to ensure automatic scaling, zero-downtime deployments, and integrated monitoring. You also need to control costs by scaling to zero when not in use.

  1. AAzure Kubernetes Service (AKS) with Horizontal Pod Autoscaler and custom deployment strategies.
  2. BAzure Virtual Machines with a Load Balancer and custom auto-scaling scripts.
  3. CAzure Container Instances with Azure Monitor and manual scaling.
  4. DAzure App Service with auto-scaling rules and deployment slots.
Show answer & explanation

Correct answer: D. Azure App Service with auto-scaling rules and deployment slots.

Azure App Service provides a fully managed platform for hosting web applications and APIs. It inherently supports automatic scaling, deployment slots for zero-downtime deployments, and integrated monitoring. The Consumption plan for App Service (used by Azure Functions, which can host APIs) can scale to zero, meeting the cost requirement.

Why the other options are wrong

  • A. AKS offers advanced orchestration and scaling but is more complex and higher overhead than needed for 'stateless APIs' with a 'scale to zero' requirement, where App Service is simpler and often more cost-effective.
  • B. VMs require significant management overhead and custom solutions for scaling and zero-downtime deployments, increasing complexity and cost.
  • C. ACI is good for individual containers but lacks built-in zero-downtime deployment features and robust auto-scaling for web apps, and scaling to zero isn't as seamless as App Service Consumption plans.

Azure App Service

A fully managed platform-as-a-service (PaaS) for building, deploying, and scaling web apps, mobile backends, and RESTful APIs, supporting multiple languages and frameworks.

  • Supports auto-scaling and deployment slots.
  • Integrated monitoring and diagnostics.
  • Can scale to zero with specific plans (e.g., Consumption for Functions).
  • Reduces infrastructure management overhead.

Memory trick: App Service Shines for Scalable Sites.

More Deploy and manage Azure compute resources questions