
Answer-first summary for fast verification
Answer: Configure a Retry field in the state machine definition for the Lambda function.
The correct answer is A. AWS Step Functions allows you to handle errors and automate retry policies directly within your state machine definition. By adding a Retry field to the Lambda function state's definition in the Step Functions state machine, you can specify the error types (like timeout errors) for which retries should occur. You can also configure the maximum number of retry attempts, the interval between retries, backoff rate, and other parameters. This approach ensures automatic retries in the case of timeout errors, enhancing the reliability of the serverless workflow.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In a serverless application on AWS, a Step Functions state machine manages multiple Lambda functions. How can a developer ensure automatic retries for a Lambda function that fails due to timeout errors during high demand?
A
Configure a Retry field in the state machine definition for the Lambda function.
B
Add a Timeout field in the state machine definition.
C
Introduce a Fail state in the state machine definition.
D
Modify the state machine to use Amazon SNS for invocation requests and subscribe a Lambda function to handle retries.
No comments yet.