exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 3 question 12 discussion

Actual exam question from Microsoft's AZ-304
Question #: 12
Topic #: 3
[All AZ-304 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 notifications when data is received from the web application
✑ Minimizes compute cost
What should you include in the recommendation?

  • A. Deploy an Azure logic app that has a SendGrid connector configured to use an Azure Cosmos DB action.
  • B. Deploy a function app that is configured to use the Consumption plan and an Azure Event Hubs binding.
  • C. Deploy a function app that is configured to use the Consumption plan and a SendGrid binding.
  • D. Deploy an Azure logic app that has a webhook configured to use a SendGrid action.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
kwaazaar
Highly Voted 4 years, 3 months ago
Function apps support triggers for CosmosDB, logic apps do not. https://docs.microsoft.com/nl-nl/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger?tabs=csharp CosmosDB actions makes no sense: we don't want to modify the CosmosDB data.
upvoted 31 times
BrettusMaximus
3 years, 11 months ago
Correct answer Azure functions can be directly tied to the change feed of Cosmos DB. https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-functions
upvoted 7 times
BrettusMaximus
3 years, 11 months ago
Note: Send Grid ==> send Email
upvoted 9 times
...
...
...
nkv
Highly Voted 3 years, 9 months ago
came in exam on 20-sep-21, I passed, i choose C
upvoted 9 times
...
rxlicon
Most Recent 1 year, 9 months ago
You can send email by using SendGrid bindings in Azure Functions Azure functions can be directly tied to the change feed of Cosmos DB
upvoted 1 times
...
Dawn7
3 years, 3 months ago
Selected Answer: C
I would choose C here
upvoted 1 times
...
FinMessner
3 years, 5 months ago
Azure Functions consumption plan is billed based on per-second resource consumption and executions. Consumption plan pricing includes a monthly free grant of 1 million requests and 400,000 GB-s of resource consumption per month per subscription in pay-as-you-go pricing across all function apps in that subscription. Azure Functions Premium plan provides enhanced performance and is billed on a per second basis based on the number of vCPU-s and GB-s your Premium Functions consume. Customers can also run Functions within their App Service plan at regular App Service plan rates.
upvoted 1 times
...
Eitant
3 years, 6 months ago
Selected Answer: C
Correct answer
upvoted 2 times
...
Dpejic
3 years, 6 months ago
Appere on exam 23-dec-2021
upvoted 3 times
...
syu31svc
3 years, 8 months ago
A and D are out since "minimize compute cost" https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger?tabs=csharp https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=csharp https://docs.sendgrid.com/ui/sending-email/how-to-send-email-with-marketing-campaigns C is the answer
upvoted 4 times
...
dkltruong88
3 years, 9 months ago
Was in exam today 1-10-2021. I passed with score 896. I chose C
upvoted 6 times
...
pentium75
3 years, 10 months ago
This seems to be the only question in both AZ-303 and AZ-304 that includes a 3rd party solution (SendGrid) in the suggestion solution.
upvoted 4 times
...
murongqing
3 years, 10 months ago
correct: consumption plan: (min computer cost) Scale automatically and only pay for compute resources when your functions are running
upvoted 1 times
...
Bijith
3 years, 10 months ago
D is correct. To save cost LogicApp and work on top of webhook tirgger
upvoted 1 times
...
ashish0711
3 years, 11 months ago
Answer seems D. We have to save compute costs, Use Azure Logic Apps instead of Azure Functions. As the web application will send a notification via a web trigger to the Azure Logic App, then use an Azure Logic App that has a webhook trigger and the SendGrid action can be used to send a notification.
upvoted 3 times
dennnnnnnnnn
3 years, 11 months ago
Both C & D can satisfy the requirement. However, C did mentioned "Consumption plan" but not Logic App. So C would be more precise in low costing aspect
upvoted 4 times
...
...
GetulioJr
4 years ago
Answer seams right. Function supports trigger with CosmosDB with SQL API is used and the text mentions it. There is also a text explaining how to do it below. That with sendgrid to send the email is all that is needed. So I will go with answer C https://docs.microsoft.com/en-us/azure/azure-functions/functions-create-cosmos-db-triggered-function
upvoted 5 times
...
jaiarya
4 years ago
Correct Answer is D. Here since we need to save the compute cost so Logic App needs to be used instead of Function App. 2. Since the application are sending via webtrigger so SendGrind Action would be required.
upvoted 1 times
VincentZhang
3 years, 9 months ago
pls explain on how a logic app to trigger a function of SendGrid?
upvoted 1 times
jmay
3 years, 5 months ago
https://docs.microsoft.com/en-us/azure/connectors/connectors-create-api-sendgrid
upvoted 1 times
...
...
...
LT
4 years, 1 month ago
Correct Answer - C. Deploy a function app that is configured to use the Consumption plan and a SendGrid binding. https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-sendgrid?tabs=csharp#example
upvoted 3 times
...
VivekSood
4 years, 1 month ago
So what is the right answer?
upvoted 2 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 ...