Question

Difficulty: MediumAzure Serverless Compute (Functions and Logic Apps)

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?

  1. A
    Azure Logic Apps on the Standard plan
  2. B
    Azure Functions on a Dedicated (App Service) plan
  3. Azure Functions on the Consumption planAnswer
  4. D
    Azure 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

1
Analyze the custom logic requirement
The requirement specifies executing custom Python code, which indicates a code-first serverless service (Azure Functions) rather than a designer-first workflows service (Azure Logic Apps).
This narrows down the service choice between Azure Functions and Azure Logic Apps.
2
Evaluate the scaling and billing constraints
The requirement states the solution must scale dynamically and incur zero cost when not running. This points to the serverless Consumption plan.
Dedicated plans and Virtual Machines charge continuous flat rates regardless of activity.
3
Identify the management model responsibilities
Virtual Machines represent an Infrastructure-as-a-Service (IaaS) model where the customer is responsible for operating system updates, which does not fit the serverless requirement.
Ensures the chosen solution leverages full cloud provider platform management.

Key Concept

Azure serverless compute options and hosting plans
Estimated Time:1m 0s
Rate this question