Q39 — AWS SAP-C02 Ch.3

Question 39 of 75 | ← Chapter 3

Q264. A company has implemented an ordering system using an event-driven architecture. During initial testing, the system stopped processing orders. Further log analysis revealed that one order message in an Amazon Simple Queue Service (Amazon SQS) standard queue was causing an error on the backend and blocking all subsequent order messages. The visibility timeout of the queue is set to 30 seconds, and the backend processing timeout is set to 10 seconds. A solutions architect needs to analyze faulty order messages and ensure that the system continues to process subsequent messages. Which step should the solutions architect take to meet these requirements?

Correct Answer: D. Configure a new SQS standard queue as a dead-letter queue to isolate the faulty messages.

Explanation

A new Amazon SQS standard queue is configured as a dead letter queue to isolate fault messages. When the home queue message cannot be processed or exceeds the number of retries, the fault message is automatically moved to the dead letter queue. By using a new standard queue as a dead letter queue, exception messages can be easily traced and debugged without worrying about affecting other messages that are being processed. Option A recommends increasing the back-end processing timeout to 30 seconds to match the visibility timeout, but this will only increase the processing time and will not handle the fault message problem. Option B recommends reducing the visibility timeout of the queue to automatically delete fault messages, but doing so may result in valid messages being accidentally deleted. The C option recommends configuring the new SQS FIFO queue as a dead letter queue to isolate fault messages, but in this case the home queue must be a FIFO queue and therefore does not work with standard queues. The dead-letter queue of a FIFO queue must also be a FIFO queue. Similarly, the dead-letter queue of a standard queue must also be a standard queue. Standard QueueDC