You are designing an Azure Function App to process background jobs. The system has the following constraints:
- A single execution of the function can take up to 25 minutes to complete.
- The function must securely connect to an Azure SQL Database located inside a private Azure Virtual Network (VNet).
- The Function App must scale out dynamically to handle unpredictable spikes in traffic.
- You must avoid cold start latency when new messages arrive while minimizing costs during low-traffic periods.
Which hosting plan should you choose for the Function App?
- Premium planCevap
- BConsumption plan
- CDedicated (App Service) plan
- DDurable Functions on a Consumption plan
Cevap
Premium plan
The Premium plan is the correct choice because it natively supports regional outbound Virtual Network (VNet) integration, allows function execution limits of up to 60 minutes (or unlimited), scales out dynamically in response to triggers, and maintains pre-warmed instances to avoid cold start latency.
Adım Adım Çözüm
Anahtar Kavram
Azure Functions Hosting Plans features and constraints