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?

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.