
Answer-first summary for fast verification
Answer: Integrate an AWS Lambda function with an Amazon SQS FIFO queue, setting the queue to trigger the Lambda function, and modifying the application to enqueue requests in the FIFO queue.
The correct answer is D. Amazon SQS FIFO (First-In-First-Out) queues are designed to ensure exactly-once processing and maintain the order of messages. This aligns with the requirement to avoid duplicate shipping requests and process them in the order they arrive. By integrating the FIFO queue with an AWS Lambda function, you can automate and ensure the reliable delivery and processing of the shipping requests. Options A, B, and C do not guarantee the order and uniqueness required in this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
A company's EC2-based application requires a rearchitecture to address issues with the shipping request delivery process. The current system suffers from duplicate, lost, or out-of-order requests. The developer must ensure the delivery of unique, ordered requests, each under 250 KB and processed within 5-10 minutes. What is the recommended solution?
A
Utilize Amazon Kinesis Data Firehose and a Kinesis data stream, adjusting the application to input requests into the stream.
B
Implement an AWS Lambda function with an Amazon SNS topic, where the Lambda is subscribed to process messages published to the SNS topic.
C
Deploy an AWS Lambda function and an Amazon SQS standard queue, configuring the queue as a Lambda trigger and updating the application to enqueue requests.
D
Integrate an AWS Lambda function with an Amazon SQS FIFO queue, setting the queue to trigger the Lambda function, and modifying the application to enqueue requests in the FIFO queue.
No comments yet.