exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 29 question 1 discussion

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

HOTSPOT -
You need to implement the retail store location Azure Function.
How should you configure the solution? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
andrvelich
Highly Voted 3 years, 1 month ago
1. azure cosmos 2. output 3. blob storage
upvoted 56 times
SaintBahamut
3 years, 1 month ago
Agreed: We need write to cosmos output, so that deals box1 and 2, and func is triggered by changes on bloob
upvoted 4 times
...
Dani_ac7
2 years, 9 months ago
Seems ok, te person who writes answers in exam topics doesn't read questions...
upvoted 12 times
...
adilkhan
2 years, 2 months ago
100% correct!
upvoted 1 times
...
UzrShkl
2 years ago
Correct
upvoted 1 times
...
...
SenseiJC
Highly Voted 2 years, 6 months ago
1. (binding) = Azure CosmosDB reason: Azure Functions must update Azure Cosmos DB 2. (direction) = output reason: all triggers are input, so we are not talking about the trigger binding. we must update Azure Cosmos DB so we need output binding. If input and output were selectable, i'd probably go for that 3. (trigger) = EventGrid reason: the azure function is triggered by an EventGrid event so that processing happens immediately
upvoted 36 times
antonmelode
1 year ago
You're quite right. Don't really understand those suggested answers. Especially when they mention immediately and CosmosDB
upvoted 1 times
...
macobuzi
1 year, 9 months ago
There is no EventGrid mentioned anywhere. You can simply use Azure Function Blob Trigger to get triggered from the Blob storage.
upvoted 1 times
...
ks321
1 year, 10 months ago
This is the right answer and has to be highest voted
upvoted 1 times
...
...
nnmdmm
Most Recent 9 months ago
I think it should be: 1. Azure Cosmos DB 2. output 3. Blob storage My reasoning: Looking at the options we conclude that we can use only one binding. We need to process the uploaded data and update the database. (one output binding to the Cosmos DB is certain) With Event Grid we will receive only information about the event and nothing else. With Blob storage trigger we will have access to the blob itself. No need for additional input binding.
upvoted 1 times
...
4b6d959
10 months ago
The question is very confusing IMO. If we choose Binding direction: Input, then 1. HTTP 2. Input 3. Blob storage However, if we choose Binding direction: Output, then 1. Azure CosmosDB 2. Output 3. Blob storage
upvoted 4 times
...
8ac3742
10 months, 1 week ago
The trigger should be Event Grid. The blob trigger is based on the poll, Event Grid trigger can lead to a timely trigger.
upvoted 1 times
...
ProtossOR89144
11 months ago
Why would we need trigger for output? I think it's: Binding: blob storage direction: input trigger: event grid (counting previous question at page 38 topic 21 question 1 established that pattern is blob -> event queue -> Function)?
upvoted 2 times
...
giuliohome
11 months, 1 week ago
nowhere is said that there is an Event Grid, but the requirements only speak about Blob Storage, so why not a much simpler Trigger Blob Storage - Binding Cosmos DB - direction Input ?
upvoted 1 times
...
FeriAZ
1 year, 4 months ago
1. azure cosmos 2. output 3. blob storage For updating Azure Cosmos DB upon processing the data, an output binding to Azure Cosmos DB is needed. This enables the function to write data directly to Cosmos DB without needing to manually implement the database connection and data insertion logic. The trigger for this function should be Blob storage because the requirement is to start the processing immediately when data is uploaded to the Blob storage. This directly supports the scenario where store locations send data every hour to be processed.
upvoted 2 times
...
katrang
1 year, 8 months ago
I would say Cosmos - Output - Blob. You have a Blob storage trigger ( Azure Functions must process data immediately when data is uploaded to Blob storage). And a Cosmos Output Binding (Azure Functions must update Azure Cosmos DB by using native SQL language queries)
upvoted 2 times
ciberclon
1 year, 4 months ago
For me it is the correct answer
upvoted 1 times
...
...
applepie
1 year, 11 months ago
I wonder why the answer is not binding - Blob direction - in trigger - event grid. example scenario 2 - https://learn.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?tabs=csharp
upvoted 3 times
macobuzi
1 year, 9 months ago
Question stated that Function must update data to Azure Cosmos DB
upvoted 1 times
...
...
DenysEx
2 years, 1 month ago
based on the Topic 21 - Testlet 22, question #1 event routing: BLOB -> EventGrid -> Function 1. CosmosDB 2. Output 3. trigger = EventGrid
upvoted 6 times
...
AQMA
2 years, 2 months ago
1. Azure Cosmos DB 2. Output 3. Event Grid using Event Grid Trigger for blob events instead of using Blob storage as input to function, provides low latency. Reference: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-storage-blob-trigger?tabs=csharp-script&pivots=programming-language-csharp according to this reference, it says: "If you require faster or more reliable blob processing, you should instead implement one of the following strategies: Add the source parameter with a value of EventGrid to your binding definition and create an event subscription on the same container. OR Replace the Blob Storage trigger with an Event Grid trigger using an event subscription on the same container."
upvoted 3 times
...
Nhiendo
2 years, 5 months ago
1. azure cosmos 2. output 3. blob storage Becase 1.Triggers cause a function to run. A trigger defines how a function is invoked and a function must have exactly one trigger. Triggers have associated data, which is often provided as the payload of the function. 2.Binding to a function is a way of declaratively connecting another resource to the function; bindings may be connected as input bindings, output bindings, or both. Data from bindings is provided to the function as parameters. refer : https://learn.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?tabs=csharp
upvoted 2 times
...
OPT_001122
2 years, 5 months ago
1. azure cosmos 2. output 3. blob storage
upvoted 2 times
...
coffecold
2 years, 7 months ago
Can someone give a clue from which system this configuration format is? Azure functions : No Cosmos DB : No Azure Event Grid : No Storage blob : No
upvoted 2 times
OPT_001122
2 years, 6 months ago
this is more convincing !! Thanks
upvoted 1 times
...
coffecold
2 years, 7 months ago
If it was function.json it should have been someting like: { "disabled":false, "bindings":[ // ... bindings here { "type": "EventGridTrigger", "direction": "in", "name": "inBinding", // ... more depending on binding }, { "type": "CosmosDBOutput", "direction": "out", "name": "outBinding", // ... more depending on binding } ] }
upvoted 6 times
OPT_001122
2 years, 6 months ago
this is more convincing !! Thanks
upvoted 1 times
...
...
...
elequiel
2 years, 7 months ago
got for me in 20/10/2022
upvoted 4 times
darsak10
2 years ago
Can you confirm what is the correct answer, it looks like the answer is not clear yet.
upvoted 1 times
Ciupaz
1 year, 7 months ago
Should be: Azure Cosmos DB Output Event Grid
upvoted 1 times
...
...
...
gmishra88
2 years, 8 months ago
I do not understand this question. Binding is Azure cosmos, then the binding direction should be output. If it is trigger then binding direction should be in. So, I do not understand what this means. I just hope these kind of absurd questions are not asked by Microsoft. But for the trigger I will use EventGrid because it says it should respond immediately. Blob triggers use polling, while event grid triggers are "event-driven" (basically Microsoft wants us to better use Event Grid for storage events)
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 ...