An agricultural technology startup is designing a serverless architecture to host two workloads:
1. A public API for farmers that experiences highly variable traffic, scaling from zero to thousands of concurrent requests, with a target response time under ms.
2. A background data analysis job that runs once daily to generate complex crop yield models. This job takes between to minutes to complete.
The startup requires a solution that minimizes both operational overhead and cost.
Which two Azure hosting services should you recommend?
- Azure Functions on a Consumption plan to host the public APIAnswer
- Azure Container Apps Jobs to run the daily background data analysis jobAnswer
- CAzure Functions on a Consumption plan to run the daily background data analysis job
- DAzure Kubernetes Service (AKS) to host both the API and the background analysis job
- ESpot Virtual Machines in a Virtual Machine Scale Set to host the public API
Answer
Azure Functions on a Consumption plan to host the public API, and Azure Container Apps Jobs to run the daily background data analysis job.
The correct recommendation is to host the public API on Azure Functions (Consumption plan) and the background job on Azure Container Apps Jobs. Azure Functions Consumption plan is cost-effective and highly responsive for light, bursty API request patterns. Azure Container Apps Jobs allows containerized tasks to run on-demand for up to multiple hours without timeout issues, fulfilling the requirement for the -to- minute process while remaining fully serverless with minimal administrative overhead.
Step-by-Step Solution
Key Concept
Selecting Azure hosting plans and services based on execution duration limits, scaling patterns, and administrative overhead.
Estimated Time:2m 0s