AWS Certified Solutions Architect Associate SAA-C03 Practice Question
Your client's online retail system is being redesigned to enhance scalability and ensure that the inventory-tracking component can process transactions sequentially as they occur. To avoid any loss or misordering of transaction data, which AWS service should be implemented?
Use an Amazon SQS FIFO queue (managed message queue with FIFO capabilities)
Utilize a workflow-orchestration service to manage the application's tasks
Implement a publish/subscribe service for event notifications
Deploy a serverless function with an event-processing trigger
The most appropriate service is Amazon SQS FIFO queue (a managed message queue with FIFO capabilities). A FIFO queue guarantees exactly-once delivery and preserves strict ordering within a message group, which is critical for maintaining accurate inventory counts.
A standard publish/subscribe service such as an Amazon SNS standard topic offers at-least-once delivery and only best-effort ordering, so it could deliver transactions out of order. Workflow-orchestration services coordinate tasks but do not buffer or order messages. A serverless function alone is compute, not a durable message queue, and offers no ordering guarantees.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Amazon SQS FIFO queue?
Open an interactive chat with Bash
How does Amazon SQS FIFO ensure message ordering?
Open an interactive chat with Bash
Why is FIFO important for inventory-tracking systems?