You are deploying a latency-sensitive Azure Function App (V4 runtime) that processes messages from an Azure Service Bus queue. The application must meet the following requirements:
- Avoid cold start latency for all invocations.
- Scale dynamically and automatically based on the volume of incoming queue messages.
- Keep a minimum of two instances pre-warmed and ready to handle requests at all times.
Which two actions should you perform? (Select two.)
- Create the Function App under an Azure Functions Premium hosting plan.Answer
- Configure the minimum number of pre-warmed instances to 2 in the hosting plan settings.Answer
- CCreate the Function App under a Consumption hosting plan.
- DCreate the Function App under a Dedicated (App Service) hosting plan and enable the Always On setting.
- EConfigure the WEBSITE_MAX_DYNAMIC_APPLICATION_SCALE_OUT app setting to a value of 2.
Answer
Create the Function App under an Azure Functions Premium hosting plan and configure the minimum number of pre-warmed instances to 2 in the hosting plan settings.
Creating the Function App under the Azure Functions Premium hosting plan satisfies both the dynamic scaling and cold start avoidance requirements. Configuring the minimum number of pre-warmed instances to 2 ensures that two instances are continuously running and ready to handle requests, eliminating cold start delays for those resources.
Step-by-Step Solution
Key Concept
Azure Functions Premium plan features and scale configuration
Estimated Time:1m 30s