Microsoft Azure Architect Design (legacy) — Question 12
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 notification when data is received from IoT devices.
✑ Minimizes compute cost.
What should you include in the recommendation?
Answer options
- A. Deploy an Azure logic app that has the Azure Cosmos DB connector configured to use a SendGrid action.
- B. Deploy a function app that is configured to use the Consumption plan and a SendGrid binding.
- C. Deploy an Azure logic app that has a SendGrid connector configured to use an Azure Cosmos DB action.
- D. Deploy a function app that is configured to use the Consumption plan and an Azure Event Hubs binding.
Correct answer: B
Explanation
The correct answer is B, as deploying a function app under the Consumption plan allows for cost-effective event-driven execution, which is ideal for handling notifications without incurring unnecessary expenses. Options A and C involve Azure logic apps, which may not be as cost-efficient in this scenario, while D introduces Azure Event Hubs, which is not directly related to sending email notifications.