AWS SAP-C02 · Question 50 · Domain 2.4: Reliability
An architecture uses AWS Step Functions to orchestrate a complex order fulfillment process. One of the steps invokes an AWS Lambda function that interacts with a third-party payment API. The third-party API occasionally experiences rate limiting and returns 429 Too Many Requests errors. How should the architect handle these errors to ensure the order process eventually succeeds without manual intervention?
Answer options:
Configure the Lambda function to sleep for 10 seconds and retry the API call.
Configure a Retry block in the Step Functions state machine for the specific error code, using exponential backoff.
Use Amazon SQS as a Dead Letter Queue for the Lambda function.
Increase the timeout of the Step Functions state machine.
75 questions · hints · full answers · grading