Question

Difficulty: EasyCreate and Configure Azure Functions

You are developing a new event-driven Azure Function that will process messages from an Azure Queue Storage queue. The message traffic is highly irregular with long periods of inactivity. To minimize costs, you require a hosting plan that scales to zero instances when idle and charges you only for the resources consumed during execution.

Which hosting plan should you select?

  1. Consumption planAnswer
  2. B
    Premium plan
  3. C
    Dedicated (App Service) plan
  4. D
    Basic App Service plan

Answer

Consumption plan
The Consumption plan is the correct choice because it automatically scales instances based on demand, scales down to zero when there is no traffic, and bills only for active executions.

Step-by-Step Solution

1
Analyze the requirements for scaling and billing.
The requirement specifies scaling to zero instances when idle and a pay-per-use cost model (billed only during execution).
Understanding the core constraints helps filter out plans with pre-warmed instances or flat-rate VM pricing.
2
Evaluate the Consumption plan features.
The Consumption plan scales out automatically, scales down to zero instances when idle, and charges only based on execution count and resource consumption.
This matches all criteria in the scenario.
3
Evaluate the alternative hosting plans.
The Premium plan requires at least one pre-warmed instance, and both Dedicated and Basic App Service plans charge continuous VM fees, so none of these scale to zero and offer pure consumption billing.
Eliminating options that do not scale to zero confirms the correct selection.

Key Concept

Selecting the appropriate Azure Functions hosting plan based on scaling requirements and billing models.
Estimated Time:45s
Rate this question