exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 47 discussion

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

HOTSPOT
-

You are developing an Azure Function app.

All functions in the app meet the following requirements:

• Run until either a successful run or until 10 run attempts occur.
• Ensure that there are at least 20 seconds between attempts for up to 15 minutes.

You need to configure the host.json file.

How should you complete the code segment? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

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
uffuchsi
Highly Voted 2 years, 2 months ago
Received this in my exam today (22/02/2023). Selected retry, exponentialBackoff, and maxRetry. Score 927.
upvoted 19 times
...
imanonion
Highly Voted 2 years, 3 months ago
Answer seems correct. Did some research about exponential backoff: The "exponential backoff" retry strategy is a technique for retrying failed operations in a manner that avoids overloading the system being accessed. It works by increasing the amount of time that is waited between each retry attempt, using an exponential function to calculate the wait time. For example, with a coefficient of 2.0 and an initial retry interval of 1 second, the wait times between retries might be 1 second, 2 seconds, 4 seconds, 8 seconds, and so on. This allows the system being accessed to recover from any failures or load spikes before the next retry attempt is made, reducing the likelihood of further failures.
upvoted 18 times
the_odd_one
1 year, 6 months ago
Where is then the coefficient argument in the code? or is this an implicit value?
upvoted 2 times
...
dom271219
1 year, 7 months ago
So, based on your explanations, exponentialBackoff may conflict with the minimumInterval (20s) and maximumInterval (15m).
upvoted 1 times
...
...
jd99
Most Recent 8 months, 2 weeks ago
For exponential backoff min/max interval are used. For fixed delay delayInterval is used. My answer would be retry - exponentialBackoff - maxRetryCount https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.functions.annotation.exponentialbackoffretry?view=azure-java-archive https://learn.microsoft.com/en-us/java/api/com.microsoft.azure.functions.annotation.fixeddelayretry?view=azure-java-archive
upvoted 2 times
...
At09
10 months, 1 week ago
retry, exponentialBackoff, and maxRetry
upvoted 1 times
...
neelkanths
1 year ago
Got it on 20 April 2024...Marks > 950...answer is correct....all questions from examtopics 400 question bank Answer - retry exponential backoff maxRetry Exponential doesn't interfere with maximum time, it calculates time interval based on maximum time.
upvoted 3 times
Kk46
11 months, 2 weeks ago
Do you have all the questions
upvoted 2 times
...
...
evandrorenan
1 year, 2 months ago
Fixed delay. With exponentialBackoff the number of retries would be less than 20 in 15 minutes. CounterThreshold would need a delay field. Since it's not provided, it would go with the default mechanism, which is also exponential backoffice.
upvoted 2 times
...
1989jay
1 year, 3 months ago
This question was on exam. 09/01/2024. Passed 872.
upvoted 1 times
...
bgbgvfvf
1 year, 4 months ago
I think given answer is correct.
upvoted 1 times
...
85e4c91
1 year, 6 months ago
I don't get it, Exponential Backoff would increase the time between retrys, so it would not be 20 seconds anymore and it is clearly stated that the time between retrys should be 20 seconds for the 15 minutes. Both Fixed delay and Exponential backoff have Max retry count.
upvoted 2 times
asdfdude
1 year ago
It says "at least 20 seconds"
upvoted 1 times
...
85e4c91
1 year, 6 months ago
Per documentation on https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages?tabs=exponential-backoff%2Cisolated-process&pivots=programming-language-csharp Fixed Delay: A specified amount of time is allowed to elapse between each retry. Exponential Backoff: The first retry waits for the minimum delay. On subsequent retries, time is added exponentially to the initial duration for each retry, until the maximum delay is reached. Exponential back-off adds some small randomization to delays to stagger retries in high-throughput scenarios.
upvoted 2 times
...
...
leviatas
1 year, 7 months ago
Got this quesiton in examn, went with answer. - 2023.09.25. Got Case Study Contoso
upvoted 1 times
...
p2006
1 year, 7 months ago
https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages?tabs=exponential-backoff%2Ccsharp-script&pivots=programming-language-csharp#retry-examples
upvoted 1 times
p2006
1 year, 7 months ago
"Ensure that there are at least 20 seconds between attempts for up to 15 minutes." ==> exponentialBackoff
upvoted 1 times
...
...
longnguyendh
1 year, 9 months ago
the answer is correct retry exponentialBackoff maxRetryCount
upvoted 1 times
...
NightshadeRC
1 year, 9 months ago
Had this question today: 2023-07-26
upvoted 3 times
...
[Removed]
2 years ago
Got this in exam today (5 April 2023)
upvoted 3 times
...
PP2015
2 years, 1 month ago
Received this in my exam today (29/02/2023). Selected retry, exponentialBackoff, and maxRetry. Score 850.
upvoted 3 times
...
mmdex
2 years, 2 months ago
retry exponentialBackoff maxRetryCount https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-error-pages?tabs=exponential-backoff%2Ccsharp-script&pivots=programming-language-csharp#retry-strategies Only fixedDelay and exponentialBackoff strategies are possible and fixedDelay has different parameters than shown here.
upvoted 4 times
...
Esward
2 years, 2 months ago
It was there in 13 Feb 2023
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