An organization is designing a serverless solution for a new application that processes user-uploaded medical images. The solution contains two workloads:
1. An API frontend that receives image upload events and metadata. This API experiences highly volatile traffic patterns with long periods of idle time and must scale to zero to minimize hosting costs.
2. A background worker that performs computational analysis on the uploaded images. Each analysis task takes approximately 15 minutes to complete.
You need to select the compute resources that minimize operational overhead and hosting costs while ensuring that all processing tasks complete successfully.
Which two Azure hosting options should you recommend? (Select two.)
- Azure Functions on a Consumption plan to host the API frontendAnswer
- Azure Container Apps Jobs to run the background workerAnswer
- CAzure Functions on a Consumption plan to host the background worker
- DAn Azure Kubernetes Service (AKS) cluster to host both the API frontend and the background worker
Answer
Azure Functions on a Consumption plan to host the API frontend, and Azure Container Apps Jobs to run the background worker
Azure Functions on a Consumption plan is ideal for the API frontend because it scales dynamically to zero during idle periods, handles volatile traffic efficiently, and minimizes hosting costs. Azure Container Apps Jobs are suitable for the background worker because they can execute tasks that run for longer than 10 minutes (such as the 15-minute image analysis) while scaling to zero when no jobs are active, thus minimizing cost and administrative overhead.
Step-by-Step Solution
Key Concept
Selecting appropriate serverless hosting options based on execution limits, scaling needs, and operational overhead.