exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 18 question 1 discussion

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

You need to correct the RequestUserApproval Function app error.
What should you do?

  • A. Update line RA13 to use the async keyword and return an HttpRequest object value.
  • B. Configure the Function app to use an App Service hosting plan. Enable the Always On setting of the hosting plan.
  • C. Update the function to be stateful by using Durable Functions to process the request payload.
  • D. Update the functionTimeout property of the host.json project file to 15 minutes.
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
rdemontis
Highly Voted 4 years, 1 month ago
Answer is correct. In addition you can see this pattern in microosoft documentation and it's known as Human Interaction. https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#human
upvoted 36 times
surprise0011
2 years ago
received 2023-04-17 went with given answer, score 926
upvoted 3 times
...
...
nflappo89
Highly Voted 3 years, 11 months ago
http trigger timeout is maxed to 230 seconds, so the only available option is to change to a durable one
upvoted 11 times
maukaba
3 years, 5 months ago
"Regardless of the function app timeout setting, 230 seconds is the maximum amount of time that an HTTP triggered function can take to respond to a request. This is because of the default idle timeout of Azure Load Balancer. For longer processing times, consider using the Durable Functions async pattern or defer the actual work and return an immediate response." REF: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale
upvoted 2 times
...
...
68bcf10
Most Recent 5 months, 4 weeks ago
when considering GDPR compliance for Azure Storage, you should generally prefer using Azure RBAC (Role-Based Access Control) over SAS (Shared Access Signature) to manage access to your data
upvoted 1 times
...
1CY1
10 months, 2 weeks ago
Selected Answer: C
A: Wrong : excluding async keyword results in a compile time error, not runtime. B: Wrong : enabling always on would relate to timeout not bad request. D: Wrong : functionTimeout property would relate to timeout not bad request. C: Correct : Durable function.
upvoted 1 times
...
oskx2
1 year, 1 month ago
How did it get this error message: 'Timeout value of 00:10:00 exceeded by function: RequestUserApproval'? If the max timeout for HTTP trigger is 230 seconds...
upvoted 3 times
Jay456
5 months, 2 weeks ago
I am wondering the exact same thing. It makes me doubt all my core beliefs.
upvoted 1 times
...
...
OPT_001122
2 years, 5 months ago
Selected Answer: C
Durable Function.
upvoted 2 times
...
Eltooth
2 years, 10 months ago
Selected Answer: C
C is correct answer. Durable Function.
upvoted 4 times
...
MrXBasit
3 years, 9 months ago
Answer is 100% correct
upvoted 3 times
...
farich
3 years, 11 months ago
I think here the answer is just to increase the functionTimeout. Durable Functions are used when you want to introduce a state, it is not just "if you have a long running function switch to Durable Functions". Another argument against Durable Functions is that architectural change seem to be out of scope for this case study. Another argument is that function can run for up to 30 mins.
upvoted 3 times
maukaba
3 years, 5 months ago
Maximum timeout you can set is 10 min in consumption plan. Unless you go to premium which is unlimited: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale
upvoted 1 times
...
xRiot007
2 years, 10 months ago
"if you have a long running function switch to Durable Functions" - actually, that is one of the features of DF. Modifying the function app timeout will do nothing. There is a hard limit of 230 seconds of timeout. Anything larger than that, use DF, state or no state.
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago