A developer needs to deploy an Azure Function that processes incoming sensor telemetry from a queue. The telemetry data arrives sporadically throughout the day. Each function execution takes less than 10 seconds to complete. The primary goal is to minimize costs by ensuring that billing occurs only when the function is actively running.
Which hosting plan should the developer select?
- Consumption planCevap
- BPremium plan
- CDedicated plan
- DApp Service Environment plan
Cevap
Consumption plan
The Consumption plan is the default hosting option that automatically scales resources based on the number of incoming events. With this plan, billing is calculated based on execution time and execution count, scaling down to zero when no executions are taking place. This fits the requirement of minimizing costs for sporadic workloads.
Adım Adım Çözüm
Anahtar Kavram
Azure Functions hosting plans and their billing/scaling characteristics.