Question

Difficulty: MediumCreate and Configure Azure Functions

An organization needs to deploy an Azure Function App running on runtime version 44 (V4) to process data files. The deployment must meet the following requirements:
- Individual function executions can take up to 2020 minutes to complete.
- The hosting plan must automatically scale out to handle spikes in traffic without manual configuration.
- The functions must securely connect to an Azure SQL Database that is isolated within a private virtual network.

Which hosting plan should you configure for the Function App?

  1. A
    Azure Functions Consumption plan
  2. B
    App Service Dedicated plan (Basic tier)
  3. Azure Functions Premium planAnswer
  4. D
    App Service Dedicated plan (Free tier)

Answer

The Azure Functions Premium plan satisfies all requirements by supporting executions up to 3030 minutes or unbounded, regional virtual network integration, and dynamic serverless scaling.
The Azure Functions Premium plan supports regional virtual network integration for secure database connectivity, scales dynamically to handle workload spikes, and allows execution limits to be configured up to 3030 minutes or unbounded, satisfying the 2020-minute execution requirement.

Step-by-Step Solution

1
Evaluate the execution duration requirement of 2020 minutes.
The Consumption plan is eliminated because its execution timeout is capped at 1010 minutes. The Free tier of the Dedicated plan is also eliminated due to its 2.52.5-minute limit.
The selected hosting plan must support the maximum execution duration of the workload without timing out.
2
Evaluate the network connectivity requirement.
The Consumption plan and the Free/Basic App Service Dedicated plans are eliminated because they lack regional virtual network integration support.
Accessing resources inside a private virtual network requires a plan that supports outbound virtual network integration.
3
Evaluate the scaling requirement.
The Premium plan automatically scales out to meet demand, whereas Dedicated plans require configuring manual or metric-based autoscale rules.
The hosting plan must dynamically scale to handle spikes in traffic automatically.

Key Concept

Azure Functions hosting plans execution limits and network feature support
Rate this question