Azure Cosmos DB Notification Solution | SEO Best Practices

Azure Cosmos DB Notification Solution

Question

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?

Answers

Explanations

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

The 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:

  1. Create a Function App in Azure.
  2. Configure the Function App to use the Consumption plan.
  3. Create a SendGrid account in Azure and configure it to send emails.
  4. Add a binding to the Function App that allows it to connect to the SendGrid account.
  5. Write the code for the function to receive the data from the web application and send an email notification through the SendGrid binding.

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.