AZ-305 ยท Compute solution design
Azure Functions hosting plans
Azure Functions hosting plans (Flex Consumption, Consumption, Premium, Dedicated), cold start and VNet support, Durable Functions for orchestrations.
Key points
- Flex Consumption: recommended serverless; Linux, pay per execution, VNet, always-ready; timeout 30 min default, no max.
- Consumption (legacy): no VNet; timeout 5 min default, 10 max; Linux retires 30 September 2028.
- Premium (EP): always-ready, at least one instance billed, VNet.
- Dedicated: App Service plan, needs Always On for long runs.
- HTTP triggers: respond within 230 seconds; longer: Durable Functions (fan-out/fan-in).
Source: https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale
Practice questions
What is the maximum function execution timeout on the legacy Consumption plan?
- 5 minutes
- 10 minutes
- 30 minutes
- 60 minutes
Show answer
Answer: B. 10 minutes
The Consumption plan defaults to 5 minutes and allows at most 10 minutes. Flex Consumption, Premium and Dedicated default to 30 minutes and have no enforced maximum.
Which Azure Functions hosting plans support outbound virtual network integration?
- Flex Consumption plan
- Premium plan
- Consumption plan (legacy)
- Dedicated (App Service) plan
- Only plans running in an App Service Environment
Show answer
Answer: A. Flex Consumption plan, B. Premium plan, D. Dedicated (App Service) plan
Flex Consumption, Premium and Dedicated (App Service plan or ASE) all support VNet integration. The legacy Consumption plan does not, and you do not need an App Service Environment just to get VNet access.
Because the Premium plan has no maximum execution timeout, an HTTP-triggered function on it can keep a client request open for 30 minutes before responding.
Show answer
Answer: False
False. Whatever the function timeout, an HTTP-triggered function has at most 230 seconds to respond, because of the Azure Load Balancer idle timeout. For longer work, use the Durable Functions async HTTP pattern or queue the work and respond immediately.
Practice 8 questions on this topic in Bitzu
Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.
