You plan to create an Azure Cosmos DB account that uses the SQL API. The account will contain data added by a web application. The web application will send data daily.
You need to recommend a notification solution that meets the following requirements:
-> Sends email notifications when data is received from the web application
-> Minimizes compute cost
What should you include in the recommendation?
Click on the arrows to vote for the correct answer
A. B. C. D.C
You can send email by using SendGrid bindings in Azure Functions. Azure Functions supports an output binding for SendGrid.
Note: When you're using the Consumption plan, instances of the Azure Functions host are dynamically added and removed based on the number of incoming events.
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#consumption-planThe recommendation for a notification solution that meets the requirements of sending email notifications when data is received from the web application and minimizing compute cost would be to deploy an Azure Function App that is configured to use the Consumption plan and a SendGrid binding. Therefore, option C is the correct answer.
Azure Function Apps are event-driven serverless computing platforms that allow developers to run code in response to events without the need for dedicated infrastructure. With the Consumption plan, you only pay for the time your code is running, which makes it a cost-effective option for this scenario.
The SendGrid binding allows you to easily send email notifications whenever new data is received from the web application. SendGrid is an email delivery and transactional email service that provides a cloud-based email delivery platform, which can be used to send email notifications.
To implement this solution, you would need to follow these steps:
Once the function is deployed, it will automatically trigger whenever new data is received from the web application, and it will send an email notification through SendGrid without the need for additional infrastructure. This solution is cost-effective because you only pay for the time the function is running and for the emails sent through SendGrid.