Q21 — AWS SAA-C03 Ch.3

Question 21 of 65 | ← Chapter 3

Q151. 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?

Correct Answer: D. Store the order in the database. Send a message that includes the order number to an Amazon Simple Queue Service (Amazon SQS) FIFO queue. Set the paymentservice to retrieve the message and process the order. Delete the message from the queue.