exam questions

Exam AZ-301 All Questions

View all questions & answers for the AZ-301 exam

Exam AZ-301 topic 3 question 6 discussion

Actual exam question from Microsoft's AZ-301
Question #: 6
Topic #: 3
[All AZ-301 Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
starnb
Highly Voted 5 years, 3 months ago
Answer A seems correct. Answer B is wrong - Why would you bind a function to SendGrid instead of Event Source i.e. IoT device.
upvoted 12 times
asdfgh1234567
4 years, 11 months ago
you can have a input and output binding.
upvoted 1 times
...
...
beriz
Highly Voted 5 years ago
I'm going with B: - functions are cheaper than logic apps (The first 400,000 GB/s of execution and 1,000,000 executions are free.) - you can easily create a cosmosdb trigger (https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-cosmos-db-triggered-function)
upvoted 10 times
jimmyjose
4 years, 9 months ago
Functions is cheaper than Logic Apps. Hence, the correct answer is B. 1. https://azure.microsoft.com/en-us/pricing/details/logic-apps/ 2. https://azure.microsoft.com/en-us/pricing/details/functions/
upvoted 1 times
...
...
lodalasan
Most Recent 4 years, 4 months ago
Question is not properly described.
upvoted 1 times
...
glam
4 years, 4 months ago
B. Deploy a function app that is configured to use the Consumption plan and a SendGrid binding.
upvoted 2 times
...
sanketshah
4 years, 6 months ago
B is correct answer.
upvoted 2 times
...
sidbarker
4 years, 9 months ago
B is correct. There is not such thing like SendGrid binding.
upvoted 2 times
MiniLa92
1 year, 7 months ago
Yes it is there. Refer https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=isolated-process%2Cfunctionsv2&pivots=programming-language-csharp
upvoted 1 times
...
...
Rooh
4 years, 9 months ago
i will go with A
upvoted 1 times
...
user_name
4 years, 9 months ago
https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-computing-database I think: B
upvoted 4 times
toja1234
4 years, 9 months ago
Yes B. The only difference to the example in the link is that we have to send an extra Email https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-computing-database#iot-use-case---azure-functions-trigger-and-output-binding-for-cosmos-db
upvoted 1 times
toja1234
4 years, 9 months ago
I cant delete it. its a function trigger and the cosmoc-db binding is not mentioned
upvoted 1 times
...
...
...
bobby2
4 years, 9 months ago
Following Azure doc says Logic App is the right connector for Azure cosmos DB SQL APi https://docs.microsoft.com/en-us/connectors/documentdb/ Don't you guys think about option A? Thanks
upvoted 3 times
...
PawanGupta
4 years, 10 months ago
There is no trigger for CosmosDB availabe in Logics Apps, so B is correct answer
upvoted 3 times
...
zarl
4 years, 10 months ago
The correct answer is B. 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. Reference: 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
upvoted 2 times
...
Neetiniti
4 years, 11 months ago
Correct Answer: B. https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings
upvoted 6 times
...
Wildsheep
4 years, 11 months ago
I'll go with B. Logic Apps Cosmos DB connector is for creating and updating documents, there's no cosmos DB trigger in Logic apps. But you can use a cosmos DB trigger in a function.
upvoted 6 times
BiggusJiggus
4 years, 11 months ago
^^^ This ^^^ There are no Cosmos DB triggers in Logic apps, which rules A & C out. B with send grid makes more sense. Answer - B
upvoted 1 times
...
...
freeheart
4 years, 11 months ago
I think both Azure logic app and Azure function works well, https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-computing-database#iot-use-case---azure-functions-trigger-and-output-binding-for-cosmos-db, https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=csharp, and Azure function & consumption plan should be cheaper, I will go with B.
upvoted 2 times
...
freeheart
4 years, 11 months ago
I think both Azure logic app and Azure function works well, https://docs.microsoft.com/en-us/azure/cosmos-db/serverless-computing-database#iot-use-case---azure-functions-trigger-and-output-binding-for-cosmos-db, https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=csharp, and Azure function & consumption plan should be cheaper, I will go with B.
upvoted 1 times
...
kumar123
4 years, 12 months ago
i think key word here is sendgrid action and sendgrid binding
upvoted 2 times
...
dev2dev
5 years ago
Isn't Logic app comes with hidden charges which requires polling? so functions app in consumption plan could be cheaper?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...