Q79 — AWS DVA-C02 Ch.2

Question 79 of 100 | ← Chapter 2

A company has built an application to consume and process data. The application uses Amazon Simple Queue Service (Amazon SQS) and AWS Lambda functions. The application currently works as expected, but occasionally receives a few messages that cannot be processed correctly. The company wants to remove these messages to prevent the queue from becoming blocked. Developers must implement a solution to ensure queue processing remains operational at all times. The solution must allow the company to delay erroneous messages and retain them for further analysis. What is the most effective solution that meets these requirements?

Correct Answer: B. Create a new SQS queue. Configure the new queue as a dead-letter queue (DLQ) for the application queue. Configure the maximum receive count setting.

Explanation

Dead-letter queues are useful for debugging your application or messaging system because they allow you to isolate unprocessed messages to determine why their processing failed.