exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 22 question 2 discussion

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

HOTSPOT -
You need to update the order workflow to address the issue when calling the Printer API App.
How should you complete the code? 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
jay158
Highly Voted 3 years, 9 months ago
1. Fixed 2. PT10S 3. 5 PT10 means retry after 10sec , https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling
upvoted 61 times
4bd3116
8 months ago
The interval of “PT10S” (10 seconds) is chosen to ensure that the retry attempts are spaced out within the one-minute window. If you set the interval to “PT60S” (60 seconds), it would only allow for one retry attempt per minute, which wouldn’t meet the requirement of up to 5 attempts within one minute.
upvoted 1 times
...
Branners
3 years, 9 months ago
Agreed. PT10S means a 10 second delay between each try defined as the retry value.
upvoted 5 times
...
vilainchien
3 years, 2 months ago
Hi, I don't understand why PT10S is the correct answer. The function could fail immediately and the printer only accept 5 requests in 1 minute. If you set 5 retries with an interval of 10 seconds, you will have 6 requests in 1 minute?
upvoted 1 times
chingdm
3 years, 1 month ago
you have to also consider the time of executing the printer request, say printer timed-out in 0 seconds and first attempt issued, say the printer timed-out in 10 seconds, then request would wait 10 seconds before trying again, so the second retry attempt would be in the 20th seconds, so it will be less than 5 attempts in 1 minute.
upvoted 1 times
...
Knightie
2 years, 4 months ago
it will only retry 5 times and then fail and not going to retry anymore. So no 6 times in a min.
upvoted 1 times
...
...
ensa
3 years, 6 months ago
Currently it is 10, because fail after 10 min. we should increase the time interval and I am not sure to choose PT30 or PT60
upvoted 2 times
ensa
3 years, 6 months ago
Sorry, Jay158 is right. There is requirement in the question
upvoted 2 times
...
...
...
Gwak
Highly Voted 3 years, 9 months ago
I think Given ans is right "PT60 and count 5" menas try 5 times in 60sec.
upvoted 8 times
j888
3 years, 8 months ago
If you read the following: https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling#fixed-interval pt60s = 60s delay between each attempt. PT10s will be the better answer, 5 attempts with each 10 seconds delay satisfy the requirement “The label printer must only receive up to 5 attempts within one minute”.
upvoted 8 times
...
...
raymond_abcd
Most Recent 1 year, 2 months ago
Don't understand this, when PT10S => 5 times (10 sec timeout + retry after 10 sec) = total 100 seconds ? So not 60 seconds which is the requirement
upvoted 1 times
raymond_abcd
1 year, 2 months ago
Correction it is 5 times after the first attempt. So actually 6 times 20 seconds is total 120 seconds. So it will never exceed the 5 times retry in one minute. It will do 3 retries in 1 minute which is allowed according to the requirement
upvoted 1 times
...
...
yosri_c_sharp
1 year, 10 months ago
Logical App no more included in az-204
upvoted 4 times
...
adilkhan
2 years, 2 months ago
Ans is correct https://learn.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling?tabs=consumption Fixed, PT60S, 5
upvoted 1 times
...
SivajiTheBoss
3 years, 1 month ago
Correct Answer: 1. Fixed 2. PT10S 3. 5 https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling
upvoted 2 times
...
leonidn
3 years, 2 months ago
Fixed + PT10S, 5. None and default do not require "interval" parameter. Exponential requires additional parameters. "Fixed" is the only option that fits the schema. PT10S means that after the timeout occurs, the logic app waits 10 more seconds and tries again. It means that there will be up to 3 attempts in a minute. That fits the requirement. Extended interval does not make sense here from the user experience perspective. It is more desirable to reduce the time interval. As well as setting more than 5 attempts does not make sense. If printer cannot recover after 5 attempts it's not make sense to continue trying.
upvoted 5 times
...
RajMasilamani
3 years, 7 months ago
Answer to address or fix the issue.So the time interval increased to 60 seconds and for 5 attempts.As problem stated for the given fixed values its giving an error.To overcome this we need to increase the retry time .
upvoted 1 times
...
koreshulya
3 years, 10 months ago
I guess interval should be PT10S. “The label printer must only receive up to 5 attempts within one minute”.
upvoted 8 times
vokep77043
3 years, 8 months ago
One minute is 60 seconds - so it won't be 5 attempts... lol
upvoted 1 times
lexowe9241
3 years, 7 months ago
https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-exception-handling#fixed-interval "This retry policy attempts to get the latest news two more times after the first failed request with a 30-second delay between each attempt:" "retryPolicy": { "type": "fixed", "interval": "PT30S", "count": 2 } Back to our case: PT10S and 5 attempts means : 1st attempt plus 5 more. That is 60seconds in total.
upvoted 7 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