An energy provider needs to execute custom Python code whenever a wind turbine telemetry event is received. The execution must occur on-demand, scale dynamically to handle thousands of concurrent events, and incur no costs when the code is not running. Which service and hosting plan combination meets these requirements?
- AAzure Logic Apps on the Standard plan
- BAzure Functions on a Dedicated (App Service) plan
- Azure Functions on the Consumption planAnswer
- DAzure Virtual Machines with auto-scaling enabled
Answer
Azure Functions on the Consumption plan
The correct answer is Azure Functions on the Consumption plan. Azure Functions is Azure's serverless compute service designed for executing custom code blocks (such as Python) on-demand. When hosted on the Consumption plan, it automatically scales compute resources to meet load and dynamically scales down to zero instances when idle, meaning the user is billed only for active execution time.
Step-by-Step Solution
Key Concept
Azure serverless compute options and hosting plans
Estimated Time:1m 0s