AWS Certified Solutions Architect – Associate (SAA-C03) — Question 228

A company has an ecommerce checkout workflow that writes an order to a database and calls a service to process the payment. Users are experiencing timeouts during the checkout process. When users resubmit the checkout form, multiple unique orders are created for the same desired transaction.

How should a solutions architect refactor this workflow to prevent the creation of multiple orders?

Answer options

Correct answer: D

Explanation

The correct answer is D because using an Amazon SQS FIFO queue ensures that messages are processed in order and exactly once, preventing the creation of duplicate orders. Options A and C do not guarantee the same level of message handling, while option B does not utilize a queue or a method to ensure order uniqueness, leading to potential duplicates.