Q7 — AWS DVA-C02 Ch.3
Question 7 of 100 | ← Chapter 3
A developer is creating an AWS Lambda function that polls messages from an Amazon Simple Queue Service (Amazon SQS) standard queue. The developer notices that the Lambda function processes some messages multiple times. How should the developer resolve this issue cost-effectively?
- A. Convert the Amazon SQS standard queue to an Amazon SQS FIFO queue by using Amazon SQS message deduplication IDs. ✓
- B. Configure a dead-letter queue.
- C. Set the AWS Lambda function’s maximum concurrency limit to 1.
- D. Change the message processing mechanism to use Amazon Kinesis Data Streams instead of Amazon SQS.
Correct Answer: A. Convert the Amazon SQS standard queue to an Amazon SQS FIFO queue by using Amazon SQS message deduplication IDs.
Explanation
The developer should convert the Amazon SQS standard queue to an Amazon SQS FIFO queue and use Amazon SQS message deduplication IDs. This ensures each message is processed exactly once, eliminating duplicate processing.