Medium1 markMultiple Choice
Domain 2.4: ReliabilityReliabilityStep FunctionsServerless

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:

A.

Configure the Lambda function to sleep for 10 seconds and retry the API call.

B.

Configure a Retry block in the Step Functions state machine for the specific error code, using exponential backoff.

C.

Use Amazon SQS as a Dead Letter Queue for the Lambda function.

D.

Increase the timeout of the Step Functions state machine.

How to approach this question

Leverage native Step Functions error handling.

Full Answer

B.Configure a Retry block in the Step Functions state machine for the specific error code, using exponential backoff.✓ Correct
AWS Step Functions has built-in error handling. You can configure a `Retry` block for specific errors (like 429s) and specify an `IntervalSeconds`, `MaxAttempts`, and `BackoffRate` to implement exponential backoff natively.

Common mistakes

Implementing retry logic inside the Lambda function, which costs money while waiting.

Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 7

75 questions · hints · full answers · grading

More questions from this exam