Question

Difficulty: EasyCreate and Configure Azure Functions

You are developing a serverless API using Azure Functions. The API must scale automatically to handle traffic spikes, but it requires that instances are pre-warmed to completely avoid cold-start latency. Which hosting plan should you select?

  1. Premium planAnswer
  2. B
    Consumption plan
  3. C
    Shared App Service plan
  4. D
    Basic App Service plan

Answer

Premium plan
The Premium plan is the correct choice because it offers the same dynamic scaling as the Consumption plan while ensuring that instances are kept pre-warmed to prevent cold starts.

Step-by-Step Solution

1
Identify the key requirements from the scenario.
The function app needs serverless automatic scaling and pre-warmed instances to eliminate cold start latency.
This determines which hosting plans meet both serverless scaling and zero cold start requirements.
2
Evaluate the capabilities of the Consumption plan.
The Consumption plan scales automatically but scales down to zero when idle, leading to cold starts on subsequent invocations.
This eliminates the Consumption plan as a valid option.
3
Evaluate the capabilities of the Premium plan.
The Premium plan scales automatically and maintains pre-warmed worker instances to avoid any cold start latency.
This confirms the Premium plan satisfies all criteria.

Key Concept

Azure Functions hosting plans capabilities and selection
Estimated Time:45s
Rate this question