A migrated application sends shipping requests that must be processed in order, without duplicates. Requests are up to 250 KB and take 5–10 minutes to process. The current system produces duplicate, lost, or out-of-order requests. How should a developer rearchitect the solution to guarantee ordered, non-duplicated processing?
Choose an answer
Tap an option to check your answer.
Correct answer: Create a Lambda function to process requests. Create an Amazon SQS FIFO queue, set the queue as an event source for the Lambda, and have the application send requests to the SQS queue..
Why this is the answer
The correct solution uses an Amazon SQS FIFO (First-In, First-Out) queue because it guarantees message ordering and exactly-once processing, which prevents duplicates. The Lambda function processes requests from the queue. SQS FIFO queues are ideal for scenarios requiring strict message order and preventing duplicates, aligning perfectly with the problem statement. Incorrect options: Kinesis Data Firehose and Kinesis Data Streams are primarily for real-time data streaming and analytics, not for guaranteed ordered, non-duplicated processing of individual requests that take minutes to process. Amazon SNS topics do not guarantee message order or prevent duplicates, making them unsuitable for this requirement. Amazon SQS standard queues do not guarantee message order and may deliver duplicates, failing to meet the core requirements of the problem.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed