exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 16 discussion

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

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.
After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.
You develop an HTTP triggered Azure Function app to process Azure Storage blob data. The app is triggered using an output binding on the blob.
The app continues to time out after four minutes. The app must process the blob data.
You need to ensure the app does not time out and processes the blob data.
Solution: Use the Durable Function async pattern to process the blob data.
Does the solution meet the goal?

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
sasisang
Highly Voted 4 years, 6 months ago
if someone knows the exact answer or any reference , then only comment. It is so confusing
upvoted 92 times
john4p
3 years, 5 months ago
A. Yes "230 seconds is the maximum amount of time[...] For longer processing times, consider using the DURABLE FUNCTIONS ASYNC PATTERN[...]" https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 56 times
Netspud
3 years, 3 months ago
See question 17, which would suggest the correct answer for this question is NO. The issues is the calling app is timing out not the function (i.e. the function in not replying as completed to the calling app in time, so use a queue, queue replies as completed in time, and work is deferred). At least after reading the two that is how I understand it. Very confusing question.
upvoted 4 times
xRiot007
2 years, 11 months ago
these types of questions can have multiple correct responses, and sometimes no correct responses at all. In this case, Durable Functions and using http triggers that can differ to a queue for long time processing are good answers.
upvoted 3 times
...
Magis
2 years, 7 months ago
I agree with xRiot007. This question have two correct answers as MS saying that you can use Durable Function OR Service Bus in this scenario. So are correct. 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.
upvoted 1 times
...
...
...
rgullini
2 years, 2 months ago
Somehow you need to investigate and understand the answers, not just memorize without understanding.
upvoted 7 times
montoya8201
1 year, 1 month ago
It's true
upvoted 1 times
...
...
surprise0011
2 years, 1 month ago
received 2023-04-17 went with most voted answer, score 926
upvoted 4 times
...
...
Awry
Highly Voted 4 years, 7 months ago
Shouldn't this be TRUE? https://docs.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=csharp#async-http
upvoted 58 times
sieiro
3 years, 6 months ago
I thing that maybe durable functions exceed de timeout of other functions, but if the functions fails or interrumpt don't cover the "The app must process the blob data".
upvoted 1 times
...
noro5
3 years, 4 months ago
True, I think the explanation mentions this https://docs.microsoft.com/en-us/azure/architecture/patterns/async-request-reply#example which looks exactly like the Async Pattern of Durable Function
upvoted 1 times
...
Secure01
4 years, 6 months ago
Seems you are right... Durable Functions provides built-in support for this pattern(Pattern #3: Async HTTP APIs), simplifying or even removing the code you need to write to interact with long-running function executions.
upvoted 8 times
...
WillPassExam
4 years, 1 month ago
Agree :) Durable function is one of the suggested two options for long processing tasks (the other is to defer the actual work (e.g. push to service bus queue + queue triggered function solution) https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout 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.
upvoted 28 times
...
...
fiercefreedom
Most Recent 7 months, 1 week ago
A function app cannot be triggered by an output binding. The wording is confusing.
upvoted 1 times
...
HariB1992
1 year, 1 month ago
The solution provided does not meet the goal. The Durable Function async pattern is not necessary for this scenario. Instead, you can address the timeout issue by adjusting the execution timeout settings for your Azure Function app
upvoted 1 times
...
Isoldhe
1 year, 3 months ago
Selected Answer: A
Copilot AI: Yes, the solution meets the goal. Using the Durable Function async pattern to process the blob data can help you avoid the HTTP timeout issue and handle long-running operations in a serverless environment. Durable Functions let you write stateful functions that can orchestrate other functions and entities using the Azure Functions programming model. You can use the async HTTP API pattern to implement a polling mechanism that allows the client to check the status and the result of the operation.
upvoted 3 times
...
FeriAZ
1 year, 4 months ago
Selected Answer: A
Using the Durable Function async pattern allows the function app to orchestrate the processing of blob data in a way that does not tie up the initial HTTP triggered function. Instead, the HTTP trigger can initiate the process and respond immediately, while the actual processing happens asynchronously. This method effectively circumvents the timeout issue because the durable orchestration can run for much longer than the standard function timeout period.
upvoted 1 times
...
AhmedAbdelAziz
1 year, 4 months ago
Correct Answer No : As the app time out you have to use service bus queue and trigger function app when item added to the queue and for the better performance you can event grid and let the function trigger based on the service bus trigger events from the event grid
upvoted 1 times
...
Jak007
1 year, 4 months ago
Selected Answer: A
A is true as per the documentation here: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout However the explanation in the answer provided by ExamTopics is also correct it seems.
upvoted 1 times
...
manopeydakon
1 year, 5 months ago
Using the Durable Function async pattern can help overcome the timeout limitation. Durable Functions provide a way to write stateful functions in a serverless environment, and they support long-running workflows. By breaking down the processing into smaller, manageable steps and leveraging the async pattern, you can ensure that the function continues processing the blob data without timing out. So I would say Yes.
upvoted 1 times
...
Vladimir_Gajinov
1 year, 9 months ago
Selected Answer: A
The answer is YES. 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. https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 2 times
...
Michael19842
1 year, 11 months ago
This site is not helping me at all... Every third awnser is wrong
upvoted 5 times
...
sarmaria
2 years, 2 months ago
Got this question in the exam on 16/03/2023. Chosen yes. Scored 846. Make sure to prepare for case studies. I got city and lights case study.
upvoted 3 times
...
daothanhyen
2 years, 3 months ago
Selected Answer: B
No. Durable changes timeout settings. It can’t resolve the problem. Use queues to response immediately
upvoted 1 times
...
jimmyyml
2 years, 3 months ago
Yes, using the Durable Function async pattern can solve the problem of the app timing out and ensure that the blob data is processed. The Durable Function allows long-running functions to be executed in a more scalable and reliable way, by splitting the functions into smaller, asynchronous tasks that can be managed by the framework. This can help prevent timeouts by allowing the function to continue processing in the background, while also providing additional benefits such as state management and error handling.
upvoted 1 times
...
dimsok
2 years, 4 months ago
I wouldn't use durable functions, they are build to solve stateful problems, and in any case If the calling app is timing out, then durable functions will do nothing.
upvoted 3 times
...
Esward
2 years, 4 months ago
Yes, Is the correct answer
upvoted 1 times
Esward
2 years, 4 months ago
https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 1 times
...
...
narenazure
2 years, 4 months ago
Selected Answer: A
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.
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 ...