AWS SAP-C02 · Question 71 · Domain 2.4: Reliability
An architecture uses Amazon SQS and AWS Lambda. The Lambda function processes messages from the SQS queue and writes data to Amazon DynamoDB. Occasionally, the DynamoDB write fails due to a temporary network issue. How should the architect ensure the message is not lost and is retried?
Answer options:
Write custom code in the Lambda function to push the message back to the SQS queue.
Do nothing. If the Lambda function throws an error, the message becomes visible in the SQS queue again after the visibility timeout expires.
Configure a Dead Letter Queue on the Lambda function.
Use AWS Step Functions to orchestrate the retry logic.
75 questions · hints · full answers · grading