Microsoft Certified: Azure Administrator AssociateDeploy and manage Azure compute resourcesMedium
A development team needs to deploy a containerized application to Azure. The application is stateless, requires rapid scaling based on HTTP traffic, and needs to be able to scale down to zero instances during periods of inactivity to minimize costs. Which Azure compute service is best suited for this scenario?
- AAzure App Service
- BAzure Container Instances (ACI)
- CAzure Kubernetes Service (AKS)
- DAzure Container Apps
Show answer & explanationAnswer & explanation
Correct answer: D. Azure Container Apps
Azure Container Apps is specifically designed for microservices and serverless containers. It supports event-driven scaling, including HTTP-based scaling and scaling to zero, which perfectly matches the requirements for a stateless application needing rapid, cost-effective scaling.
Why the other options are wrong
- A. Azure App Service is primarily for web applications and APIs, supporting container deployments. While it can scale, its scaling to zero for containers isn't as native or cost-optimized as Container Apps for event-driven scenarios.
- B. ACI is good for single container deployments or batch jobs but lacks advanced scaling features like scaling to zero based on HTTP traffic.
- C. AKS is a full-featured container orchestrator, offering robust scaling. However, for a stateless app needing 'scale to zero' and rapid HTTP-based scaling without the overhead of managing a full Kubernetes cluster, Container Apps is a more serverless and cost-optimized choice.
Azure Container Apps
A serverless platform for building and deploying modern apps and microservices using containers.
- Supports event-driven scaling (e.g., HTTP, Kafka, KEDA-compliant).
- Can scale down to zero instances.
- Ideal for microservices and serverless containers, abstracts Kubernetes complexity.
Memory trick: Container Apps are like smart thermostats for your containers: they turn off when not needed.