Commonly Confused Services on the Developer Exam

Topics Covered

Messaging: SQS, SNS, EventBridge and Kinesis

The four services in one sentence each

SQS versus SNS

SNS versus EventBridge

SQS versus Kinesis Data Streams

Where Step Functions fits

Three quick tests

Data Streams versus Data Firehose

Failure handling across the four

This lesson is a comparison lesson. By now you have studied each service on its own, and the exam rarely asks what a service is. It asks which of several similar services fits a scenario, and the wrong options are almost always real services that would work in a slightly different scenario. The fastest way to score these questions is to know, for each confusable pair or group, the one or two properties that decide between them. Each section below sets out a group, the deciding properties and the stem keywords that point to each answer. Details of each service live in the lessons that own them; here they are compressed into decision rules.

The four services in one sentence each

  • SQS is a queue: producers send messages, consumers poll and delete them, and each message is processed by one consumer. It buffers work and decouples a fast producer from a slower consumer.
  • SNS is a topic: a publisher sends one message and SNS pushes a copy to every subscriber, such as SQS queues, Lambda functions, HTTPS endpoints, email or SMS.
  • EventBridge is an event bus with rules: events from AWS services, your own applications and SaaS partners are matched against event patterns and routed to targets, with optional transformation, archive and replay.
  • Kinesis Data Streams is an ordered, replayable stream: records are written to shards by partition key, kept for a retention period, and read by any number of consumers, each tracking its own position.

SQS versus SNS

The deciding question is whether one consumer should take each message or every subscriber should get a copy.

SNS pushes a copy to every subscriber; SQS holds each message until one consumer takes it.

Choose SQS when work must be buffered, retried and processed once by a pool of workers that scale independently, when the consumer may be offline for a while, or when you need to control the consumption rate to protect a database. Choose SNS when the same event must reach several independent systems at once. The most common correct design uses both: SNS fans out to one SQS queue per consuming service, so each service gets its own buffer, retries and dead letter queue. SNS filter policies let each subscription receive only the messages it cares about, by message attributes or by the message body, so a shipping queue does not need to discard billing events.

Ordering narrows the choice further. Standard queues and topics give best effort ordering and at least once delivery. SQS FIFO queues give ordering within a message group and deduplication within a five minute window, and SNS FIFO topics can fan out to FIFO queues while keeping that order. Stem keywords: process each order exactly once in order per customer points to SQS FIFO with the customer ID as the message group ID. Notify several services when an order is placed points to SNS with SQS subscribers.

SNS versus EventBridge

Both route events to multiple targets, so the deciding properties are where events come from and how routing is expressed.

  • EventBridge receives events from AWS services directly (an EC2 state change, a CodePipeline stage failure, an S3 object created event when enabled), from many SaaS partners and from your own PutEvents calls. SNS receives only what someone publishes to it, plus some service notifications configured to target it.
  • EventBridge rules match on any field in the event body with rich patterns, including prefixes, numeric ranges and exists tests. SNS filter policies are capable but simpler, and each subscription has one policy.
  • EventBridge offers input transformation, archive and replay, a schema registry, cross account and cross Region buses, and EventBridge Scheduler for one time or recurring invocations. SNS offers very high fan out, mobile push, SMS and email, and generally lower latency.

Stem keywords: react to an AWS service event, route on event content, integrate a SaaS application or replay past events points to EventBridge. Push notifications to phones, send SMS or email, or fan out to thousands of subscribers points to SNS. Run a function every night at 2 a.m. points to EventBridge Scheduler or a scheduled rule.

SQS versus Kinesis Data Streams

Both hold data for consumers to pull, which makes this the pair candidates confuse most. The deciding properties are ordering, replay and the number of readers.

A stream keeps ordered records for its retention period, and every consumer reads them independently.
  • In SQS, a message is gone once a consumer deletes it. In Kinesis, records stay for the retention period (24 hours by default, extendable up to a year) whether or not anyone has read them, and a consumer can rewind to reprocess.
  • In SQS, many workers share one queue and each takes different messages. In Kinesis, every consumer application reads every record, so a fraud detector, an analytics loader and an archiver can all read the same stream.
  • Kinesis guarantees order per partition key within a shard. SQS standard does not order, and FIFO orders per message group.
  • Kinesis capacity is per shard in provisioned mode (about 1 MB per second or 1,000 records per second of writes per shard), or managed for you in on demand mode. SQS standard queues scale with almost no capacity planning.

Stem keywords: real time analytics on clickstream, multiple applications consuming the same data, replay the last day of events or ordered per device telemetry at high volume points to Kinesis. Decouple a web tier from background jobs, absorb bursts, process each job once or delay delivery points to SQS.

Where Step Functions fits

Step Functions often appears as a fifth option. It is not a message transport; it is an orchestrator that runs a defined sequence of steps with branching, waits, retries and error handling, and keeps state for each execution. Choose it when the stem describes a multi step business process, needs human approval, must retry individual steps with backoff, or needs a visual audit of each run. Standard workflows suit long running, exactly once processes up to a year; Express workflows suit high volume, short processes up to five minutes. If the stem only needs to move a message from one place to another, a queue, topic or bus is simpler.

Three quick tests

When a messaging stem leaves you unsure, ask three questions in order. Does each item need to reach many independent consumers? If not, a queue is likely. Must items be kept and replayed, or read by several applications in order? If yes, a stream. Is the source an AWS service or SaaS event, or does routing depend on event content? If yes, EventBridge. The answers eliminate most wrong options before you compare the remaining ones on cost or operational overhead.

Data Streams versus Data Firehose

Kinesis has a second service with a confusingly similar name. Kinesis Data Streams stores records in shards for consumers you write, such as Lambda functions, applications using the Kinesis Client Library or Managed Service for Apache Flink, and those consumers can read in real time and replay. Amazon Data Firehose (formerly Kinesis Data Firehose) is a delivery service: it receives records, optionally batches, compresses, converts or transforms them with a Lambda function, and loads them into destinations such as S3, Redshift, OpenSearch or HTTP endpoints, with buffering measured in seconds to minutes. It has no replay and no custom consumers.

Stem keywords: load streaming data into S3 or a warehouse with no consumer code, near real time is acceptable points to Firehose. Custom real time processing, sub second latency, several consumer applications or replay points to Data Streams, often with Firehose attached as one more consumer for archiving.

Failure handling across the four

How each service handles a consumer that fails is another deciding property. SQS keeps a failed message and makes it visible again after the visibility timeout, then moves it to a dead letter queue after the maximum receive count. SNS retries delivery to each subscriber according to a delivery policy, and can send undeliverable messages to a dead letter queue attached to the subscription. EventBridge retries failed target invocations for up to 24 hours by default and can send events that still fail to a dead letter queue on the target. Kinesis does not remove a record that a consumer fails on; a Lambda consumer retries the batch until it succeeds or the record expires, which blocks that shard, unless you configure bisecting batches, a maximum retry count and an on failure destination. Stems about a poison message that stops all progress on one shard are testing that last point.

Both is often the answer

When a stem needs several independent consumers that each need their own retries and buffering, the best design is usually SNS or EventBridge fanning out to one SQS queue per consumer.