Question

Difficulty: MediumCreate and Configure Azure Functions

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.)

  1. Create the Function App under an Azure Functions Premium hosting plan.Answer
  2. Configure the minimum number of pre-warmed instances to 2 in the hosting plan settings.Answer
  3. C
    Create the Function App under a Consumption hosting plan.
  4. D
    Create the Function App under a Dedicated (App Service) hosting plan and enable the Always On setting.
  5. E
    Configure 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

1
Evaluate the hosting plan requirements.
Identify that the Premium plan is necessary because it supports both dynamic event-driven scaling (unlike Dedicated plans) and pre-warmed instances to eliminate cold start latency (unlike Consumption plans).
Choosing the correct hosting plan is the foundation for scaling and performance requirements.
2
Configure instance settings to meet the concurrency requirement.
Set the minimum pre-warmed instance count to 2.
This guarantees that two instances are active and ready to handle incoming queue messages immediately, avoiding cold starts.

Key Concept

Azure Functions Premium plan features and scale configuration
Estimated Time:1m 30s
Rate this question