Question

Difficulty: MediumCreate and Configure Azure Functions

You are designing an Azure Function App that will host critical HTTP-triggered APIs. The APIs must securely access an Azure SQL Database that is restricted to a private virtual network. To ensure optimal performance, the Function App must scale out dynamically to handle traffic spikes while avoiding cold-start latency. Which hosting plan should you configure for the Function App?

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

Answer

Premium plan
The Premium plan (often called Elastic Premium) supports regional virtual network integration, enabling the Function App to securely connect to private databases. Additionally, it supports pre-warmed instances, which guarantees that new instances are already initialized and ready to process requests, thereby avoiding cold-start latency during scaling.

Step-by-Step Solution

1
Analyze the networking requirement.
Virtual network (VNet) integration is required to access the secure Azure SQL Database.
The Consumption plan does not support VNet integration, which rules it out.
2
Analyze the performance requirement.
Pre-warmed instances are required to eliminate cold-start latency during dynamic scale-out.
The Premium plan maintains pre-warmed instances, whereas the Dedicated plan relies on standard VM scale-out which is slower and does not use the Functions-specific pre-warmed instances.
3
Select the plan that satisfies both networking and scaling requirements.
The Premium plan (Elastic Premium) supports both regional VNet integration and pre-warmed instances.
This is the only serverless hosting plan option that meets all specified requirements.

Key Concept

Azure Functions hosting plan selection based on networking and cold-start requirements
Rate this question