🔥 3-day streak
AWS Certified Developer - Associate138 / 150
Question 138 of 150

A developer configures an AWS Lambda function with an SQS standard queue as its event source mapping. The function processes messages in batches of 10. Occasionally, one or two messages in a batch fail while the others succeed. Currently, when any message fails, the entire batch is returned to the queue and reprocessed, causing already-successful messages to be processed multiple times. What is the recommended way to ensure only the failed messages are retried?

Reviewed for accuracy · Report an issueNext question