AWS Certified Solutions Architect Associate SAA-C03 Practice Question
A company is looking to design a scalable image-processing application that handles bursts of upload events from users. Each uploaded image must be processed only once. The architect has decided to use a messaging service to decouple the upload service from the image-processing service. Which AWS service should be used to ensure that each image is processed exactly once by the consumer?
Amazon Simple Queue Service (SQS) FIFO queues provide FIFO delivery and exactly-once message processing by eliminating duplicates within a 5-minute deduplication window and guaranteeing that a message is delivered once and only once until it is processed and deleted. In contrast, an Amazon SNS standard topic offers at-least-once delivery, and although an Amazon SNS FIFO topic can also provide exactly-once ordering, it still relies on an underlying SQS FIFO queue for the consuming application. Amazon Kinesis Data Streams and Amazon MQ deliver messages at least once unless you add custom idempotency logic, so they do not meet the requirement out of the box.
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 are the main features of Amazon SQS FIFO queues?
Open an interactive chat with Bash
How does Amazon SNS differ from Amazon SQS when used for decoupling services?
Open an interactive chat with Bash
What are the alternatives to Amazon SQS for processing messages with exactly-once semantics?