CloudGuild · Blog · Cheat sheets · Lessons · Certifications
Understanding Message Queues: AWS Certified Solutions Architect - Associate
Unpack a tricky AWS exam question about message queues and learn key decision points for the SAA-C03.
An application requires a message queue that guarantees exactly-once processing and strict ordering of messages. This specific decision trips many candidates during the AWS Certified Solutions Architect - Associate exam. Understanding the nuances of message queuing services is crucial.
The question
An application requires a message queue that guarantees exactly-once processing and strict ordering of messages. Which option meets this requirement?
A. Amazon SQS Standard queue
B. Amazon SQS FIFO queue
C. Amazon SNS Standard topic
D. Amazon Kinesis Firehose
Think before you scroll
Before you make your selection, consider what exactly-once processing and strict ordering entail. It’s essential to understand the capabilities and limitations of each service provided by AWS. This understanding will guide you to the correct option.
The answer
The correct answer is B. Amazon SQS FIFO queue. FIFO queues are designed to provide exactly-once processing and ensure that messages are processed in the exact order they are sent. This matches the requirements stated in the question.
Why the other options lose
A. Amazon SQS Standard queue: This option does not meet the requirements for exactly-once processing. Standard queues provide best-effort ordering and allow for at-least-once delivery. This means duplicates can occur, which is unacceptable for the scenario described.
C. Amazon SNS Standard topic: Amazon SNS is primarily a pub/sub messaging service. It does not provide message ordering or exactly-once delivery. This makes it unsuitable for applications needing strict message processing guarantees.
D. Amazon Kinesis Firehose: Kinesis Firehose is designed for loading streaming data into data lakes and analytics services. It does not function as a message queue and does not provide the exactly-once processing or strict ordering required in the question.
The concept behind it
Understanding the differences between queue types is critical. FIFO queues ensure that messages are processed exactly once and in order, making them ideal for scenarios requiring high reliability and consistency. In contrast, standard queues prioritize throughput and may lead to message duplication.
Exam trap to remember
Remember the two key traits needed: exactly-once processing and strict ordering. If both are required, think FIFO.