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?
Click on the arrows to vote for the correct answer
A. B. C. D.C
https://docs.microsoft.com/en-us/azure/azure-functions/functions-scaleThe correct answer is C. the Windows operating system and the Consumption plan hosting plan.
Explanation: Azure Functions is a serverless compute service that enables you to run code on-demand without having to manage any infrastructure. Azure Functions can be used for a wide variety of scenarios, including processing data from Azure Event Grid.
When you create an Azure Functions app, you have to choose a hosting plan. There are two types of hosting plans for Azure Functions: the Consumption plan and the App Service plan.
The Consumption plan is a serverless hosting plan that automatically allocates resources to your app as needed. With the Consumption plan, you only pay for the time that your code runs. When your code is not running, you don't pay anything. This makes the Consumption plan a good choice for applications that have unpredictable or intermittent workloads.
On the other hand, the App Service plan is a dedicated hosting plan that requires you to provision and manage resources for your app. With the App Service plan, you pay for the resources you provision regardless of whether your code is running or not. This makes the App Service plan a good choice for applications with more consistent workloads.
In the given scenario, the requirement is to ensure that resources are allocated dynamically to the function app and billing is based on the executions of the app. This means that the Consumption plan is the best choice. The Consumption plan is designed to allocate resources dynamically and only charge you for the time that your code runs.
Option A (the Windows operating system and the App Service plan hosting plan) and Option D (the Docker container and an App Service plan that uses the S1 pricing tier) both require you to provision and manage resources for your app, which is not what is required in this scenario.
Option B (the Docker container and an App Service plan that uses the B1 pricing tier) is a possible choice, but the B1 pricing tier is not relevant to the requirement to allocate resources dynamically and bill based on the executions of the app. Moreover, it requires you to manage the resources for your app.
Therefore, the correct answer is C (the Windows operating system and the Consumption plan hosting plan).