A logistics company is designing a serverless infrastructure solution for two application workloads:
* A REST API for package tracking that must scale out rapidly to handle sudden spikes in traffic, integrate with an Azure Virtual Network (VNet), and avoid cold-start latency.
* An event-driven invoice processing job that extracts metadata from uploaded documents using OCR. This job can take up to 20 minutes to complete.
You need to recommend the compute services that satisfy these requirements while minimizing operational overhead.
Which two Azure compute solutions should you recommend? (Select TWO.)
- Azure Functions on the Premium plan for the REST APIAnswer
- Azure Container Apps Jobs for the invoice processing jobAnswer
- CAzure Functions on the Consumption plan for the invoice processing job
- DAzure Kubernetes Service (AKS) for the REST API
Answer
Azure Functions on the Premium plan for the REST API and Azure Container Apps Jobs for the invoice processing job.
The REST API requires rapid scaling, VNet integration, and no cold starts, which are all key features provided by the Azure Functions Premium plan. The invoice processing job runs for up to 20 minutes, which exceeds the timeout limits of the Consumption plan. Azure Container Apps Jobs is the ideal serverless choice for this run-to-completion, event-driven task, as it supports execution runtimes of up to several hours without VM management overhead.
Step-by-Step Solution
Key Concept
Selecting appropriate serverless hosting plans based on execution limits, virtual network integration, latency profiles, and operational complexity.