
Answer-first summary for fast verification
Answer: Convert the SQS standard queue to an SQS FIFO queue using the message deduplication ID.
The correct answer is A: Convert the SQS standard queue to an SQS FIFO queue using the message deduplication ID. Amazon SQS FIFO queues are designed to ensure that messages are processed exactly once and in the exact order they are sent. This addresses the issue of the Lambda function processing some messages multiple times, which is associated with a standard queue. This solution prevents duplicate processing effectively and cost-efficiently.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
How can a developer resolve the issue of an AWS Lambda function processing messages from an Amazon SQS standard queue multiple times in a cost-effective manner?
A
Convert the SQS standard queue to an SQS FIFO queue using the message deduplication ID.
B
Implement a dead-letter queue.
C
Reduce the Lambda function's maximum concurrency to one.
D
Switch message processing to Amazon Kinesis Data Streams.
No comments yet.