AWS SAP-C02 · Question 33 · Domain 2.4: Reliability Requirements
A company is building a serverless application using AWS Step Functions to orchestrate a complex workflow. One of the steps involves calling an external third-party API that is known to be unreliable and frequently times out. The workflow must not fail immediately; it should retry the API call up to 5 times, waiting longer between each attempt. How should the architect implement this?
A company is building a serverless application using AWS Step Functions to orchestrate a complex workflow. One of the steps involves calling an external third-party API that is known to be unreliable and frequently times out. The workflow must not fail immediately; it should retry the API call up to 5 times, waiting longer between each attempt. How should the architect implement this?
Answer options:
Write custom retry logic with Thread.sleep() inside the AWS Lambda function that calls the API.
Configure the Retry field in the Step Functions Task state with an IntervalSeconds and a BackoffRate.
Use an Amazon SQS queue with a visibility timeout to delay the retries.
Configure AWS App Mesh to intercept the API call and apply a retry policy.
How to approach this question
Full Answer
Common mistakes
Practice the full AWS Solutions Architect Professional SAP-C02 Practice Exam 4
75 questions · hints · full answers · grading
Expert