exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 43 discussion

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

HOTSPOT -
You are developing an Azure Durable Function based application that processes a list of input values. The application is monitored using a console application that retrieves JSON data from an Azure Function diagnostic endpoint.
During processing a single instance of invalid input does not cause the function to fail. Invalid input must be available to the monitoring application.
You need to implement the Azure Durable Function and the monitoring console application.
How should you complete the code segments? 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
RochaG2
Highly Voted 2 years, 8 months ago
I've not seen any of this stuff in Microsoft's Learning Path's for AZ-204
upvoted 40 times
OPT_001122
2 years, 7 months ago
yes. there are a few questions added in last month. not sure if all of them are of AZ-204
upvoted 2 times
...
gmishra88
2 years, 6 months ago
The learning path and the preparation videos are showing things you need not know for the exam.
upvoted 22 times
...
130nk3r5
1 year, 3 months ago
Got this today. Went with answer here. Score 927
upvoted 6 times
...
...
Akiu
Highly Voted 2 years, 6 months ago
I'd say: SetOutput() == Completed result.output The function needs to return the one invalid input, so you could use either SetOutput or SetCustomStatus, but custom status is not available after the function completes. The one invalid input does not cause the function to fail, therefore Completed.
upvoted 27 times
Christian_garcia_martin
8 months, 2 weeks ago
last one should be runtimeStatus
upvoted 1 times
...
POOOJAAAAAAAAAA
2 years, 4 months ago
is this correct ?
upvoted 4 times
...
regux
1 year, 6 months ago
async functions needs an await part. SetOutput() won't qualify for that as function.
upvoted 1 times
gebpt
10 months ago
you've got await in "var json = await response.Content.ReadAsStringAsync();"
upvoted 1 times
...
...
macobuzi
1 year, 8 months ago
This one seems right!
upvoted 1 times
...
...
8ac3742
Most Recent 8 months, 4 weeks ago
I choose setCustomStatus/Completed/customStatus, setCustomStatus make invaluid input available to monitoring, response.EnsureSuccessStatusCode() would throw Exception if the result.runtimeStatus != "Complete" so I choose result.runtimeStatus == "Completed" amd return result.customStatus.
upvoted 1 times
...
oskx2
1 year, 1 month ago
The output of the function has to match the method return type. It cannot be SetOutput. You can use CustomStatus, since the other 2 do not make sense. And the output is available on completion since the function does not throw an exception. But because the function return type is List<string>, and it may be used for another purpose, we use the custom status to get the invalid input. Also, the custom status is available after the function completes. https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-http-api#get-instance-status
upvoted 2 times
...
CarlosTheBoldest
1 year, 4 months ago
I check it and setcustomstatus makes sense, cause they want to show the input that is causing errors (see link below). Apart of that, the ensuresuccessstatuscode will throw an exception if it fails, so I would go with "completed" and output https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-custom-orchestration-status?tabs=csharp https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpresponsemessage.ensuresuccessstatuscode?view=net-8.0
upvoted 4 times
...
Vegetta95
1 year, 4 months ago
1. SetCustomStatus. There is no point in calling context.CallEntityAsync with "error" as parameter before knowing if error occured or not 2. Failed (only negative status) 3. runTimeStatus ( This is the only property we are sure that dynamic object posess. We don't know the custom response from the url)
upvoted 1 times
...
Ciupaz
1 year, 4 months ago
Hope don't find this question in my exam.
upvoted 9 times
...
Vukile
1 year, 5 months ago
On exam 9 Nov 2023, went with given answer, socre 865. Case Study: Farmers and Distributors
upvoted 3 times
...
longnguyendh
1 year, 9 months ago
I think that the anwser is SetCustomStatus Failed result.customStatus
upvoted 3 times
...
MysticalSam
1 year, 10 months ago
This question was in today's exam at 10-June-2023
upvoted 7 times
NavinD
1 year, 9 months ago
How much percent questions did you get from here? Do you have contributor access?
upvoted 2 times
...
...
[Removed]
2 years ago
Got this in exam today (5 April 2023)
upvoted 4 times
...
PP2015
2 years, 1 month ago
Did my exam on 3/29/2023. This question was on it. Selected context.Signal(input[errIndex], "error"), Completed, output. Score 850
upvoted 2 times
...
red0400
2 years, 1 month ago
Answer - setOutput, completed, output
upvoted 5 times
...
pkolodziej
2 years, 1 month ago
For those who are wondering if it's a SignalEntity, it's not: SignalEntity(EntityId, DateTime, String, Object) Signals an operation to be performed by an entity at a specified time. Any result or exception is ignored (fire and forget). We're clearly waiting for completion here, so have to use CallEntity,
upvoted 1 times
pkolodziej
2 years, 1 month ago
I correct my mistake: it should be CustomStatus https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-custom-orchestration-status?tabs=csharp#querying-custom-status-with-http
upvoted 4 times
...
...
uffuchsi
2 years, 2 months ago
Received this in my exam today (22/02/2023). Selected context.Signal(input[errIndex], "error"), Completed, output. Score 927.
upvoted 10 times
memobed890
2 years, 1 month ago
De donde saco la información para decir que son esas respuestas?
upvoted 4 times
...
...
RealRaymond
2 years, 2 months ago
Answer should be CustomStatus. Ref: https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-custom-orchestration-status?tabs=csharp#querying-custom-status-with-http
upvoted 2 times
...
manopeydakon
2 years, 2 months ago
Nigros the answer is correct since we are after the failed input values.
upvoted 5 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago