Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 1 question 8 discussion

Actual exam question from Microsoft's AZ-204
Question #: 8
Topic #: 1
[All AZ-204 Questions]

DRAG DROP -
You are creating an Azure Cosmos DB account that makes use of the SQL API. Data will be added to the account every day by a web application.
You need to ensure that an email notification is sent when information is received from IoT devices, and that compute cost is reduced.
You decide to deploy a function app.
Which of the following should you configure the function app to use? Answer by dragging the correct options from the list to the answer area.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
[Removed]
Highly Voted 2 years, 6 months ago
Answer is correct: Consumption plan will reduce the cost and SendGrid is used to send emails from azure functions. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp
upvoted 22 times
...
fiercefreedom
Most Recent 1 month, 2 weeks ago
In a real application of this situation, you would need some type of trigger coming from CosmosDB in order to notify the app to send the email. CosmosDB Connectors are only for Logic Apps, and other CosmosDB triggers aren't part of the options. That's what makes this problem tricky and unrealistic.
upvoted 3 times
...
forgetfulalligator
1 month, 3 weeks ago
Hmm super tough problem , I can completely understand why people would choose Azure Event Hubs cause you could receive and process messages from IoT devices, and can trigger the function app to perform certain actions when new data is received. For example, you could use an Event Hub binding to send an email notification when new data is received from an IoT device. But it's most likely SendGrid binding since it could technically do it (I guess) but also it would keep computing costs low since we are processing a low-volume and low-latency task and it is specific to sending emails. Azure Event Hubs binding is usually for processing loads of events so not the best use case here.
upvoted 4 times
...
AryaNiaz
2 months, 4 weeks ago
Both options are indeed correct; however, regarding the function trigger, shouldn't it be the Azure Cosmos DB connector serving as the trigger?
upvoted 1 times
...
The answer is correct ,i would add a cosmos connector to interact with cosmos DB .
upvoted 1 times
nevermind ,DB connector should be for logic app no for function so answer is correct as given
upvoted 1 times
...
...
man5484
7 months, 1 week ago
To meet the requirements of sending an email notification when information is received from IoT devices and reducing compute costs, you should configure the function app with the following options: Azure Event Hubs binding: This will allow the function app to listen to events from IoT devices. SendGrid action: This will enable the function app to send email notifications. Consumption plan: This plan offers automatic scaling and only charges for the resources consumed by the function app, which helps in reducing compute costs.
upvoted 4 times
...
manopeydakon
10 months, 2 weeks ago
Seems to be correct answer after my investigation.
upvoted 2 times
...
whitefancy
10 months, 2 weeks ago
what is different between sendgrid binding and sendgrid action?
upvoted 2 times
manopeydakon
10 months, 2 weeks ago
If your primary goal is to send emails as part of a broader workflow, you might find SendGrid binding more convenient. If you need more control or want to customize the email-sending logic, using SendGrid as a direct action in your function code may be preferable.
upvoted 3 times
...
...
Aneeqa
1 year, 1 month ago
SendGrid action: This option is used to send email messages using SendGrid. However, it requires you to write code to send the email messages. By using the SendGrid binding, you can easily send email notifications without writing any code. Azure Event Hubs binding: This option is used to receive and process events from Azure Event Hubs. It is not relevant for sending email notifications.
upvoted 2 times
...
zreaf29
1 year, 3 months ago
Anyone can explain me what is different between SendGrid action and SendGrid binding??
upvoted 1 times
zreaf29
1 month, 3 weeks ago
I searched this question in Google Bard. And I got the answer. Both two are functions. But the difference is SendGrid Action is used to send an email synchronously, while SendGrid binding is used to send an email asynchronously. It means that SendGrid Action will block the execution of the function app until the email has been sent. This can lead to increased compute costs, especially if you are sending a large number of emails. On the other way, SendGrid binding will not block while the email is being sent. This can help to reduce compute costs, as the function app can continue to process other requests while the email is being sent. Question is "You need to eunsure that compute cost is reduced". So I think, Answer is SendGrid binding which is good for reducing costs.
upvoted 5 times
...
Molnmannen1337
1 year, 3 months ago
Actions are used in logic apps, bindings in functions. That is my guess.
upvoted 3 times
...
...
HQ1227
1 year, 4 months ago
what is different between sendgrid binding and sendgrid action?
upvoted 3 times
...
LuchoGonzalez
1 year, 5 months ago
Based on the options provided, the recommended configuration for the function app would be to use the "SendGrid action" for sending email notifications and the "consumption plan" to reduce compute costs. Check it out this pls
upvoted 2 times
...
uffuchsi
1 year, 9 months ago
Consumption Plan (Keep costs low) & Send Grid Bunding (Send Email). I think it could also be a Function App and Event Hub, but initial answer is more accurate.
upvoted 2 times
...
Alluru
2 years ago
Configure the function app to use consumption plan and use sendgrid bindings to send emails. https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp#example
upvoted 1 times
...
Chang401
2 years ago
answer should be consumption plan and SendGrid binding. as Azure Cosmos DB connector is for logic apps not for functions. event hub is not used for IOT data. IOT HUB is used for that.
upvoted 4 times
...
gds03
2 years ago
isn't Event hub, since info is been sent by IOT devices? I guess should be Event Hub binding
upvoted 1 times
Chang401
2 years ago
Microsoft recommends using Azure IoT Hub to connect IoT devices to Azure
upvoted 2 times
...
...
cronatale
2 years, 1 month ago
Why don't use Azure Cosmo DB connector to trigger the Function App execution?
upvoted 3 times
Expecho
2 years, 1 month ago
That is a logic apps thing.
upvoted 4 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 ...