Create a Dynamic Azure Function App for Event Grid | Microsoft Exam AZ-300

Create a Dynamic Azure Function App for Event Grid

Question

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?

Answers

Explanations

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-scale

The correct answer for this question is C. the Windows operating system and the Consumption plan hosting plan.

Azure Functions is a serverless compute service that enables you to run event-triggered code without worrying about the infrastructure. It allows you to build and deploy small pieces of code, called functions, that respond to events like changes in data, new messages on a queue, or a timer.

There are two hosting plans for Azure Functions: App Service plan and Consumption plan. App Service plan is a dedicated plan that allows you to run your functions on a set of dedicated virtual machines. Consumption plan, on the other hand, is a serverless plan that dynamically allocates resources to your functions as needed.

To ensure that resources are allocated dynamically to the function app and billing is based on the executions of the app, you should choose the Consumption plan hosting plan when you create the function app. With this plan, you only pay for the time that your function runs and the resources that it consumes. When your function is not running, you don't pay anything.

The other options are not the correct answer:

A. the Windows operating system and the App Service plan hosting plan - This option will not ensure that resources are allocated dynamically to the function app, and billing will not be based on the executions of the app. With an App Service plan, you pay for the dedicated virtual machines even when your function is not running.

B. the Docker container and an App Service plan that uses the B1 pricing tier - This option is similar to option A. It will not ensure that resources are allocated dynamically to the function app, and billing will not be based on the executions of the app. With an App Service plan, you pay for the dedicated virtual machines even when your function is not running.

D. the Docker container and an App Service plan that uses the S1 pricing tier - This option is similar to option A and B. It will not ensure that resources are allocated dynamically to the function app, and billing will not be based on the executions of the app. With an App Service plan, you pay for the dedicated virtual machines even when your function is not running.