You are building a custom Azure function app to connect to Azure Event Grid.
You need to ensure that resources are allocated dynamically to the function app. Billing must be based on the executions of the app.
What should you configure when you create the function app?
A . the Windows operating system and the Consumption plan hosting plan
B . the Windows operating system and the App Service plan hosting plan
C . the Docker container and an App Service plan that uses the B1 pricing tier
D . the Docker container and an App Service plan that uses the S1 pricing tier
Azure Functions runs in two different modes: Consumption plan and Azure App Service plan. The Consumption plan automatically allocates compute power when your code is running. Your app is scaled out when needed to handle load, and scaled down when code is not running.
B: When you run in an App Service plan, you must manage the scaling of your function app.