AWS Certified Solutions Architect – Professional (SAP-C02) — Question 245
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?
Answer options
- A. Increase the backend processing timeout to 30 seconds to match the visibility timeout.
- B. Reduce the visibility timeout of the queue to automatically remove the faulty message.
- C. Configure a new SQS FIFO queue as a dead-letter queue to isolate the faulty messages.
- D. Configure a new SQS standard queue as a dead-letter queue to isolate the faulty messages.
Correct answer: D
Explanation
The correct answer is D because configuring a new SQS standard queue as a dead-letter queue allows for the isolation and later analysis of the faulty messages without blocking the processing of subsequent messages. Option A does not resolve the issue with the faulty message itself, while option B would not effectively handle the problematic message either. Option C is incorrect because a FIFO queue is not necessary for this scenario, as a standard queue is sufficient.