exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 18 discussion

Actual exam question from Microsoft's AZ-204
Question #: 18
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: Configure the app to use an App Service hosting plan and enable the Always On setting.
Does the solution meet the goal?

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

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
00avatar
Highly Voted 3 years, 10 months ago
Answer "No" is correct. Always On enables waking up on HTTPTrigger, but does not prevent the exceeding the max time out time of 230 seconds. https://docs.microsoft.com/en-us/azure/azure-functions/dedicated-plan#always-on
upvoted 65 times
Knightie
2 years, 3 months ago
No is the answer, but the reason is the timeout being raised by HTTP layer from the Azure Load Balancer, not the App layer that at least it gives 5 minutes for the cheapest type, Consumption, so however you enhance the app layer, the http layer Azure Load Balance will not wait more than 230 second and will reply it as timeout. Use the durable function pattern to poll the status for completion will be the easiest solution, else avoid the http layer like service bus will work too. https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout:~:text=1%20Regardless%20of,immediate%20response.
upvoted 6 times
...
surprise0011
1 year, 7 months ago
received 2023-04-17 went given answer, score 926
upvoted 2 times
...
abdou1987
3 years, 6 months ago
Answer is YES the default time for App service plan is 30 to unlimit https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout
upvoted 3 times
abdou1987
3 years, 6 months ago
Sorry i cant delete my previois comment. I confirm the answer is NO. Whatever the app service plan the maximum timeout for HTTP triggers is 230 seconds.
upvoted 23 times
...
...
Amrit862
3 years, 10 months ago
Answer is still 'No' but default time for dedicated host is 30 mins, it can be technically configured to infinite...but have to do that manually and that is not mentioned in solution. ref: https://docs.microsoft.com/en-us/azure/azure-functions/functions-host-json#functiontimeout
upvoted 1 times
...
...
Cornholioz
Highly Voted 4 years ago
Answer "B.No" seems right because this is not about App Services Best Practices.
upvoted 9 times
...
VK1989
Most Recent 4 months, 4 weeks ago
Selected Answer: B
Answer is "No" just verified with GEMINI
upvoted 2 times
...
HariB1992
7 months, 2 weeks ago
CoPilot Says Option as Yes. Yes, the solution meets the goal. By configuring the app to use an App Service hosting plan and enabling the Always On setting, you can prevent the app from timing out and ensure that it processes the blob data successfully.
upvoted 1 times
...
[Removed]
1 year ago
Selected Answer: B
No i correct
upvoted 1 times
...
Kanasan
1 year, 3 months ago
Selected Answer: B
https://learn.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.
upvoted 1 times
...
RenatoJr
1 year, 7 months ago
Selected Answer: B
Answer "No" is correct
upvoted 1 times
...
Anitay
2 years, 3 months ago
Use Durable function for this requirement
upvoted 1 times
...
Perplex
2 years, 4 months ago
Selected Answer: B
Always On does not prevent a timeout so is not a solution to this problem. Answer is B (No).
upvoted 1 times
...
Rakeshpro
2 years, 4 months ago
Selected Answer: A
Correct!
upvoted 1 times
...
Eltooth
2 years, 5 months ago
Selected Answer: B
B is correct answer (No). Max timeout for HTTP triggers is 230 seconds < 240 seconds (4 minutes).
upvoted 1 times
...
TakumaK
3 years, 5 months ago
"Always On" feature of Azure App Service is to keep the host process running to allow more responsive to requests after significant idle periods. This is UNRELATED to the timeout. So the answer is obvious!!
upvoted 5 times
...
mlantonis
3 years, 6 months ago
Correct Answer: No Always On enables waking up on HTTP trigger, but does not prevent the exceeding the max time out time of 230 seconds. If you run on an App Service plan, you should enable the Always on setting so that your function app runs correctly. On an App Service plan, the functions runtime goes idle after a few minutes of inactivity, so only HTTP triggers will "wake up" your functions. The Always on setting is available only on an App Service plan. On a Consumption plan, the platform activates function apps automatically. Reference: https://docs.microsoft.com/en-us/azure/azure-functions/dedicated-plan#always-on
upvoted 8 times
...
abdou1987
3 years, 6 months ago
Answer is YES "Best for long-running scenarios where Durable Functions can't be used. Consider an App Service plan in the following situations:" link: https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#overview-of-plans another link https://docs.microsoft.com/en-us/azure/azure-functions/functions-scale#timeout that mentionned the duration is 30 min and upper
upvoted 1 times
abdou1987
3 years, 6 months ago
Sorry i cant delete my previois comment. I confirm the answer is NO. Whatever the app service plan the maximum timeout for HTTP triggers is 230 seconds.
upvoted 3 times
TakumaK
3 years, 5 months ago
you are messing up this comment section by correcting your own wrong answer. :)
upvoted 1 times
...
...
...
UnknowMan
3 years, 6 months ago
Answer "No" is correct
upvoted 2 times
...
glam
3 years, 6 months ago
B. No,,
upvoted 3 times
...
bugimachi
3 years, 11 months ago
The page, however, does not talk about Service Bus queues (any more).
upvoted 1 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 ...