Question

Difficulty: MediumServerless and Web Application Hosting

You are designing a serverless processing pipeline for an IoT platform. Devices upload binary log files to an Azure Storage account. A custom executable packaged in a Linux container must run to extract anomaly metrics from each log file. The extraction process takes approximately 12 minutes per file. The solution must scale automatically based on demand, scale to zero when no logs are uploaded, and avoid any running compute charges when idle. Which hosting option should you select to meet these requirements?

  1. Azure Container Apps event-driven jobsAnswer
  2. B
    Azure Functions using the Consumption hosting plan
  3. C
    Azure Functions using the Premium hosting plan
  4. D
    A managed Azure Kubernetes Service cluster

Answer

Azure Container Apps event-driven jobs
Azure Container Apps event-driven jobs is the correct hosting option because it can run containerized tasks on demand, supports execution times longer than 10 minutes (up to 24 hours), and scales down to zero instances when idle, incurring no billing costs during idle periods.

Step-by-Step Solution

1
Analyze execution duration and packaging requirements
The workload is packaged as a Linux container and takes 12 minutes to run.
This rules out hosting options with strict timeout limitations below 12 minutes.
2
Evaluate scale-to-zero and idle cost requirements
The hosting option must scale to zero and incur zero compute charges when idle.
This rules out plans that charge for pre-warmed or running instances when idle.
3
Select the service that meets all constraints
Azure Container Apps event-driven jobs meets all requirements.
It runs containerized tasks, supports executions exceeding 10 minutes, and scales to zero with zero idle cost.

Key Concept

Selecting serverless hosting options based on execution limits, packaging, and scale-to-zero capabilities.
Rate this question