Question

Difficulty: MediumContainer-Based Workloads

A retail company is designing a container-based solution to process inventory updates from an Azure Service Bus queue. The application consists of a single containerized worker that must scale dynamically based on the number of messages in the queue, including scaling to zero when the queue is empty. Each message takes up to 12 minutes to process due to dependencies on legacy external systems. The company requires a solution that minimizes administrative overhead and infrastructure management. Which hosting option should you recommend for the containerized worker?

  1. A
    Azure Kubernetes Service (AKS)
  2. B
    Azure Functions on a Consumption plan
  3. Azure Container AppsAnswer
  4. D
    Azure Container Instances (ACI)

Answer

Azure Container Apps
Azure Container Apps provides a serverless platform for hosting containerized applications and background workers with no complex infrastructure management, directly satisfying the requirement to minimize administrative overhead. It features native integration with KEDA, enabling it to scale replicas from zero up to many instances based on the Azure Service Bus queue depth. Additionally, standard container apps running in Azure Container Apps do not have the 10-minute timeout limitation that applies to Azure Functions on a Consumption plan, making it the correct service for tasks that take up to 12 minutes to process.

Step-by-Step Solution

1
Analyze the execution duration requirements of the queue processing container.
The message processing can take up to 12 minutes.
This rules out Azure Functions on a Consumption plan, which enforces a strict 10-minute maximum execution timeout limit.
2
Evaluate the infrastructure management and administrative effort constraints.
The company wants to minimize infrastructure management and administrative overhead.
This rules out Azure Kubernetes Service (AKS), as it requires managing Kubernetes control planes, node pools, routing, and updates.
3
Assess the remaining serverless container hosting platforms for native auto-scaling capabilities.
Azure Container Apps supports serverless hosting with native KEDA scale rules to scale to zero based on Service Bus queue length, whereas Azure Container Instances (ACI) requires custom orchestration to scale dynamically.
This identifies Azure Container Apps as the optimal solution that meets both the scaling and administrative constraints.

Key Concept

Selecting Azure container hosting platforms based on administrative effort, scaling triggers, and execution duration limits.
Rate this question