Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsMedium

A company is deploying a new web application that needs to handle intermittent, unpredictable traffic spikes. The application is built using .NET Core and is containerized. It needs to scale down to zero instances when idle to minimize costs, and then scale up rapidly to handle incoming requests. Which Azure compute solution is BEST suited for this scenario?

  1. AAzure App Service
  2. BAzure Container Apps
  3. CAzure Kubernetes Service (AKS)
  4. DAzure Virtual Machines (VMs)
Show answer & explanation

Correct answer: B. Azure Container Apps

Azure Container Apps is a managed service that enables you to run microservices and containerized applications on a serverless platform. It supports scaling down to zero, rapid scale-up, and is optimized for event-driven and microservices architectures, making it ideal for the described scenario.

Why the other options are wrong

  • A. Azure App Service can host containerized apps and offers autoscaling, but scaling down to zero is typically a feature of serverless container platforms like Container Apps, or requires specific, sometimes complex, configurations in App Service.
  • C. Azure Kubernetes Service provides powerful container orchestration but involves more management overhead and isn't inherently designed for scale-to-zero with the same simplicity and cost efficiency as Azure Container Apps.
  • D. Azure Virtual Machines require manual management and do not scale down to zero automatically for cost optimization in this manner.

Azure Container Apps

A serverless platform for building and deploying modern apps and microservices using containers.

  • Runs containerized microservices
  • Supports HTTP and event-driven scaling
  • Scales down to zero instances
  • Built on Kubernetes and open-source technologies (e.g., Dapr, KEDA)

Memory trick: Container Apps Scale to Zero, Rapidly

More Develop Azure compute solutions questions