
Answer-first summary for fast verification
Answer: Implement a retrier for GetResource configured for TooManyRequestsException with a 10-second interval and one maximum attempt.
The correct answer is C. Adding a retrier directly to the GetResource task with the appropriate error type, interval, and maximum attempts configuration is the most efficient and streamlined way to handle the TooManyRequestsException error. This allows the state machine to retry the GetResource task once after a 10-second delay in a straightforward manner, adhering to the requirement without adding unnecessary complexity. Options A and B involve additional steps and components that are not required for this specific scenario. Option D adds redundancy by duplicating tasks, which is also not necessary.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer implement Lambda retry functionality in an AWS Step Functions state machine to stop on IllegalArgumentException and retry GetResource task once after a 10-second delay on TooManyRequestsException, without adding unnecessary complexity?
A
Place a Delay task post GetResource, with a catcher for TooManyRequestsException directing to this Delay for 10 seconds, then retrying GetResource.
B
Utilize a catcher on GetResource for TooManyRequestsException with a 10-second interval and one maximum attempt, followed by a retry of GetResource.
C
Implement a retrier for GetResource configured for TooManyRequestsException with a 10-second interval and one maximum attempt.
D
Duplicate GetResource as TryAgain, with a catcher on the original for TooManyRequestsException directing to the duplicated task.
No comments yet.