The short answer: use Amazon SQS when work must wait in a queue until a consumer pulls it, Amazon SNS when one message must be pushed to many subscribers at once, and Amazon EventBridge when events from AWS services, your own applications or SaaS partners must be matched against rules and routed to different targets. SQS is about buffering, SNS is about fan-out, and EventBridge is about routing by content. When a question needs fan-out and buffering, the answer is usually SNS in front of one SQS queue per consumer.
The three side by side
| Amazon SQS | Amazon SNS | Amazon EventBridge | |
|---|---|---|---|
| Model | Queue | Publish/subscribe topic | Event bus with rules (plus Pipes and Scheduler) |
| Delivery | Consumers poll and delete messages | Pushed to every subscriber | Pushed to the targets of each matching rule |
| Who gets a message | One consumer processes each message | Every subscriber gets a copy | Every target of every rule whose pattern matches |
| Holds messages | Yes: 4 days by default, 1 minute to 14 days | No queue of its own; pair it with SQS for durability | Routes rather than queues (the newer Custom Event Bus adds retention and replay) |
| Filtering | None on receive | Subscription filter policies on attributes or body | Event patterns on any field of the event |
| Ordering | Standard: best effort. FIFO: strict within a message group | Standard: none. FIFO topics: ordered | Not a selling point of the classic bus |
| Typical sources | Your producers | Your producers, CloudWatch alarms, other services | AWS services, custom apps, SaaS partners |
| Typical consumers | Worker fleets, Lambda | SQS, Lambda, HTTP(S), email, SMS, mobile push, Firehose | Lambda, SQS, SNS, Step Functions, API destinations, other buses and many AWS APIs |
Retention figures are from the SQS SetQueueAttributes reference; the rest is from the service guides listed under Sources.
Amazon SQS: a buffer between a producer and its workers
A queue decouples time. The producer writes a message and moves on. Workers pick it up when they have capacity, process it, and delete it. If they fail before deleting, the message becomes visible again after the visibility timeout (30 seconds by default, up to 12 hours) and another worker retries it. Nothing is lost during a traffic spike: the queue simply gets longer, and you can scale the worker fleet on queue depth.
AWS documents two queue types. Standard queues give nearly unlimited throughput, at-least-once delivery (so consumers must cope with the occasional duplicate) and best-effort ordering. FIFO queues give exactly-once processing and first-in-first-out order within each message group, at lower throughput: up to 300 API calls per second per action without batching, or 3,000 messages per second with batches of 10, more in high-throughput mode.
The one property to remember: on a single queue, consumers compete. Each message is handled by one of them. If three services all need to see every order, one shared queue is the wrong answer.
Amazon SNS: one message, many recipients
A topic decouples who is listening. The publisher sends once; SNS pushes a copy to every subscription. Subscribers can be applications (SQS queues, Lambda functions, HTTP(S) endpoints, Amazon Data Firehose) or people (email, SMS, mobile push), which is why SNS is also the service behind most "notify the on-call team" answers.
By default every subscriber receives every message. A subscription filter policy narrows that down, matching on message attributes or on the JSON message body, so a shipping queue can receive only order_shipped events while other subscribers still get everything. For strict ordering and deduplication through a fan-out, AWS pairs SNS FIFO topics with SQS FIFO queues.
SNS pushes; it doesn't keep a backlog for a slow consumer to work through later. That is the reason for the classic fan-out pattern: SNS topic, one SQS queue per consumer. SNS gives every service its own copy, and each queue absorbs its consumer's pace.
Amazon EventBridge: routing events by what they contain
EventBridge is a serverless event router. Events arrive on an event bus from AWS services (an EC2 state change, a GuardDuty finding, an S3 object created), from your own applications, or from SaaS partner integrations. Rules compare each event to an event pattern and send matches to targets. On the classic bus a rule can have up to five targets, and the target list is long: Lambda, SQS, SNS, Step Functions, ECS tasks, Kinesis, API destinations (any HTTPS endpoint), other event buses including cross-account ones, and direct API calls such as stopping an EC2 instance.
EventBridge also has two neighbours that show up in developer questions. EventBridge Pipes connects one source to one target point to point, with optional filtering and enrichment in between, such as reading from an SQS queue, calling an API to enrich each message and starting a Step Functions workflow without glue code. EventBridge Scheduler runs one-time or recurring invocations; AWS now calls scheduled rules on the bus a legacy feature and recommends Scheduler instead.
AWS's documentation also describes a newer Custom Event Bus alongside the classic one, with event retention, ordered delivery and replay. Exam questions written to the current exam guides describe the classic rules-and-targets model, so learn that first.
When to use which
- Absorb bursts, retry failed work, process each job once: SQS. Scale workers on queue depth. Add FIFO when order or exactly-once processing matters.
- Several independent services each need every message: SNS, with an SQS queue per service if any of them can be slow or offline.
- Send alerts to people by email or SMS: SNS.
- React to AWS service events, or route by event content to different targets: EventBridge.
- Receive events from a SaaS application: EventBridge partner event sources.
- Run something on a schedule or at one specific time: EventBridge Scheduler.
- Move items from one source to one target with enrichment, without writing a Lambda just to move data: EventBridge Pipes.
Exam traps
- "Each service must receive every event" with a shared queue as an option. Consumers on one SQS queue compete, so each message reaches only one of them. Fan-out needs SNS (or EventBridge), not a single queue.
- SNS alone when a consumer is slow or sometimes down. SNS pushes and retries, but it isn't a work backlog. The durable answer puts an SQS queue behind the topic for that consumer.
- "Strict order" answered with a standard queue. Standard queues are best-effort. Only FIFO guarantees order, and only within a message group. Fanning out from a standard SNS topic to standard queues guarantees nothing about order either.
- "Events from AWS services and SaaS partners, matched by pattern" answered with SNS. SNS filter policies are per subscription. A bus that ingests AWS and partner events and routes them by rules is EventBridge.
- Look-alike services as distractors. Kinesis Data Streams is for ordered, replayable streams read by several consumers at high volume; Step Functions orchestrates steps; Amazon MQ is for apps already on JMS, AMQP or MQTT. None of them is a drop-in for the three here.
- Encryption gotchas. Developer and operations questions like a fan-out that silently stops after someone turns on SSE with the AWS managed key for SQS. AWS's SNS encryption guide uses a customer managed key whose key policy grants the SNS service principal
kms:GenerateDataKeyandkms:Decrypt. Our DVA and SOA banks test this variant.
Practice questions from our bank
Three real questions from our SAA-C03, CLF-C02 and DVA-C02 banks. Try each before opening the answer.
Question 1 · SAA-C03 · Design Resilient Architectures
A producer service publishes events that several independent downstream services must each process. One consumer is often slow, and its slowness currently backs up and stalls the producer. Which design change best decouples the producer from the slow consumer?
- APublish events to an Amazon SNS topic and subscribe a separate Amazon SQS queue for each consumer
- BKeep calling each consumer's API synchronously, but add retries with exponential backoff for the slow one
- CPublish events to one shared Amazon SQS standard queue that all of the consumer services poll
- DMove the producer to a larger instance type so it can hold more pending calls to slow consumers
Show answer and explanation
Answer: A) Publish events to an Amazon SNS topic and subscribe a separate Amazon SQS queue for each consumer
With SNS-to-SQS fan-out, every consumer gets its own buffered copy of each event. A slow consumer only grows its own backlog and does not hold up the producer or the other consumers.
- ACorrect. SNS delivers a copy of every event to each subscribed queue. Each consumer polls its own durable queue at its own pace. A slow consumer only builds up a backlog in its own queue, so neither the producer nor the other consumers are held up.
- BIncorrect. Retries with backoff handle transient errors, but the producer is still coupled to each consumer. Waiting on the slow consumer still blocks it, and backoff can make the stall last longer.
- CIncorrect. On a single queue the consumers compete for messages. Each message goes to only one consumer, so the other services never see that event. Every consumer needs its own copy of each event.
- DIncorrect. A bigger instance doesn't remove the synchronous dependency. The producer still waits on the slow consumer, so the coupling remains and stalls will come back as load grows.
Question 2 · CLF-C02 · Cloud Technology and Services
A company needs a serverless event bus that receives events from AWS services and from third-party SaaS partner applications. It must use rules that match event patterns to route each event to targets such as AWS Lambda functions and Amazon SQS queues. Which AWS service meets these requirements?
- AAmazon EventBridge
- BAmazon Data Firehose
- CAmazon Simple Notification Service (Amazon SNS)
- DAWS Step Functions
Show answer and explanation
Answer: A) Amazon EventBridge
Amazon EventBridge is the serverless event bus that receives events from AWS services, custom applications, and SaaS partners and uses rules to route them to targets. Data Firehose delivers streaming data, SNS is pub/sub messaging, and Step Functions orchestrates workflows.
- ACorrect. EventBridge event buses receive events from AWS services, custom applications, and SaaS partners through partner event sources. Rules match events and deliver them to targets such as Lambda functions and SQS queues.
- BIncorrect. Amazon Data Firehose is a fully managed service that delivers streaming data to destinations such as Amazon S3, Amazon Redshift, and Amazon OpenSearch Service. It is not a rules-based event router.
- CIncorrect. SNS is a pub/sub messaging service: publishers send messages to a topic, and SNS pushes them to all subscribers. It does not provide an event bus with SaaS partner event sources and event-pattern rules, which the scenario requires.
- DIncorrect. Step Functions coordinates the steps of a workflow as a state machine. It does not collect events from many AWS and SaaS sources and route them with rules.
Question 3 · DVA-C02 · Development with AWS Services
A developer is comparing messaging options for an application that processes events in sequence. Which statement correctly describes message ordering for an SQS standard queue, an SQS FIFO queue, and an SNS standard topic that fans out to several SQS standard queues?
- AStandard queue: best-effort ordering. FIFO queue: strict order within each message group. SNS standard topic fan-out: no ordering guarantee in each queue.
- BStandard queue: strict order per message group ID. FIFO queue: strict order across all groups. SNS standard topic fan-out: publish order kept in each queue.
- CStandard queue: best-effort ordering. FIFO queue: strict order across all groups. SNS FIFO topic fan-out: order is kept even in subscribed standard queues.
- DStandard queue: strict order when only one consumer polls. FIFO queue: strict order within each message group. SNS standard topic fan-out: order kept for SQS subscribers.
Show answer and explanation
Answer: A) Standard queue: best-effort ordering. FIFO queue: strict order within each message group. SNS standard topic fan-out: no ordering guarantee in each queue.
Only FIFO queues give strict ordering, and only within a message group. Standard queues are best-effort, and fan-out to standard queues gives no ordering guarantee, which requires SNS FIFO topics with SQS FIFO queues.
- AStandard queues make a best-effort attempt to preserve order, but messages can arrive out of order. FIFO queues strictly preserve order within each message group. Fanning out to standard queues does not guarantee order. Strict ordering through a fan-out requires an SNS FIFO topic with SQS FIFO queue subscribers.
- BStandard queues have no message groups and give only best-effort ordering. FIFO queues guarantee order within a message group and can deliver different groups in parallel. An SNS standard topic doesn't preserve publish order.
- CFIFO ordering is guaranteed only within each message group, and groups are processed in parallel. The message group ID isn't passed to SQS standard queues, so order isn't guaranteed there even when the topic is a FIFO topic.
- DStandard queues can deliver messages out of order however many consumers there are, because the order comes from the service's distributed architecture. SNS standard topics don't guarantee ordering to SQS subscribers.
Where this comes up on the exams
Decoupling is a named task in the SAA-C03 resilient-architectures domain, messaging services are core material in DVA-C02 and DVA-C03 development, and CLF-C02 asks you to match each service to its one-line description.
- SAA-C03: practice exams · Design Resilient Architectures questions · SAA-C03 cheat sheet
- DVA-C02: practice exams · Development with AWS Services questions · DVA-C02 cheat sheet
- DVA-C03: practice exams · Development with AWS Services questions · DVA-C03 cheat sheet
- CLF-C02: practice exams · Cloud Technology and Services questions · CLF-C02 cheat sheet
Related comparisons: RDS Multi-AZ vs read replicas (the other big resilience pair) and RTO vs RPO.
Sources
- Amazon SQS queue types: standard vs FIFO delivery, ordering and throughput.
- SQS SetQueueAttributes: retention period and visibility timeout limits.
- What is Amazon SNS?: topics, subscriber types and fan-out.
- Amazon SNS message filtering: filter policies.
- Amazon SNS FIFO topics: ordering and deduplication with SQS FIFO queues.
- SNS topic encryption with encrypted SQS subscriptions: the KMS key policy SNS needs.
- What is Amazon EventBridge?: event buses, Pipes and Scheduler.
- Rules in Amazon EventBridge and event bus targets: event patterns, five targets per rule, target types.
Facts checked against the AWS documentation on November 14, 2026.
Frequently asked questions
What is the difference between SQS and SNS?
SQS is a queue: messages wait until a consumer polls for them, and each message is processed by one consumer. SNS is a publish/subscribe topic: it pushes a copy of each message to every subscriber straight away and doesn't hold a backlog for later.
When should I use EventBridge instead of SNS?
Use EventBridge when you need to react to events from AWS services or SaaS partners, or route events to different targets based on their content with event patterns. Use SNS for straightforward fan-out of your own messages to many subscribers, including email and SMS.
What is the SNS to SQS fan-out pattern?
Publish once to an SNS topic and subscribe a separate SQS queue for each consumer. Every consumer gets its own copy, and a slow consumer only builds a backlog in its own queue without holding up the producer or the others.
Does SQS guarantee message order?
Only FIFO queues do, and only within a message group. Standard queues give best-effort ordering and at-least-once delivery, so messages can arrive out of order or more than once.
How long does SQS keep a message?
Four days by default. You can set the retention period from 60 seconds up to 14 days.