AWS Certified Developer – Associate (DVA-C02) — Question 283

An application that runs on AWS receives messages from an Amazon Simple Queue Service (Amazon SQS) queue and processes the messages in batches. The application sends the data to another SQS queue to be consumed by another legacy application. The legacy system can take up to 5 minutes to process some transaction data.

A developer wants to ensure that there are no out-of-order updates in the legacy system. The developer cannot alter the behavior of the legacy system.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

To preserve strict ordering and prevent out-of-order processing, an SQS FIFO queue is required, which eliminates standard queues (options B and C). Additionally, because the legacy system can take up to 5 minutes to process data, the visibility timeout must be configured to at least 5 minutes to prevent other consumers from picking up the message during processing. DelaySeconds (option D) only postpones the message's initial delivery and does not address the concurrent processing window.