Domain 2 of 4 · Chapter 1 of 2

Scalable and Loosely Coupled Architectures

Unlock the complete study guide + 1,040 practice questions across 16 full exams.

Bundled into the existing AWS Certified Solutions Architect – Associate premium course — no separate purchase.

Included in this chapter:

  • SQS Standard vs FIFO: throughput, ordering, deduplication windows
  • EventBridge rule syntax + content-based filtering patterns
  • Step Functions Standard vs Express: choosing by execution duration + cost
  • Lambda-SQS pairing: visibility timeout, batch size, partial-batch failure
  • Kinesis Data Streams: shard math, enhanced fan-out vs polling
  • Dead-letter queues: alarms, redrive policies, message inspection

Messaging primitives compared

ServicePatternOrderingRetentionConsumersBest for
SQS StandardQueueBest-effort14 days max1+ workersDecoupled async work items, max throughput
SQS FIFOQueueStrict per MessageGroupId14 days max1+ workers (per group)Order-critical work; 300 msg/s default (3 000 w/batching)
SNSPub/sub topicN/ANot retained (in-memory delivery)Many subscribersFan-out to email, SMS, HTTP, Lambda, SQS
EventBridgeEvent busN/AUp to 24h archive (replayable)Many rules + targetsSchema-routed events; SaaS integrations; cross-account
Kinesis Data StreamsStreamPer shardUp to 365 daysMany parallel consumers (KCL)Ordered events with replay; real-time analytics
Step FunctionsWorkflowLinear (or parallel branches)Up to 1 year history (Standard)Service integrations + LambdasMulti-step orchestration with retries

Decision tree

Consumer pattern?Work queueFanoutEventsWorkflowStrict order required?SNS(pub/sub fanout)Need replay?Step Functions(orchestrate Lambdas)YesNoYesNoSQS FIFO(300 msg/s default)SQS Standard(unlimited TPS)Kinesis(replay 24h-365d)EventBridge(schema routing)Always: DLQ + alarm on depth; SQS visibility timeout ≥ 6× Lambda timeout

Cheat sheet

  • Pick the integration primitive by how consumers consume
  • Every queue needs a DLQ and retry policy or it loses messages
  • Set SQS visibility timeout to at least 6× the Lambda timeout
  • FIFO caps at 300/3 000 TPS unless high-throughput mode is on
  • SNS doesn't retain messages, so front it with SQS for durability
  • Use EventBridge archive and replay to rebuild or test consumers from history
  • Step Functions: Standard for durable orchestration, Express for high throughput
  • Use EventBridge Pipes to wire a source to a target without Lambda glue
  • Turn on SQS long polling to cut empty receives and cost
  • API Gateway throttles at the account, stage, and method levels
  • Scale an ASG by traffic with ALBRequestCountPerTarget target tracking
  • Use Step Functions Distributed Map for million-scale S3 parallel processing
  • Pause a workflow for an external callback with .waitForTaskToken
  • Combine Retry exponential backoff with Catch for fallback handling
  • Catch States.ALL on a Parallel state to intercept any branch failure
  • Use ReportBatchItemFailures so only failed SQS messages reprocess
  • DLQ retention must exceed the source queue's, or messages expire on arrival
  • Use EventBridge global endpoints for automatic multi-region failover
  • Attach a DLQ per EventBridge rule target to capture undeliverable events

Unlock with Premium — includes all practice exams and the complete study guide.

Also tested in

References

  1. Amazon SQS Developer Guide
  2. Amazon SNS Developer Guide
  3. What is Amazon EventBridge
  4. Amazon Kinesis Data Streams
  5. AWS Step Functions Developer Guide
  6. Amazon SQS FIFO queues
  7. EventBridge rules
  8. Amazon SQS dead-letter queues
  9. Lambda asynchronous invocation (DLQ)
  10. Amazon SQS visibility timeout
  11. Using Lambda with Amazon SQS
  12. Lambda quotas
  13. High throughput for FIFO queues
  14. Amazon SQS quotas
  15. EventBridge archive and replay
  16. Step Functions Standard vs Express
  17. Amazon EventBridge Pipes
  18. Amazon SQS short and long polling
  19. Amazon API Gateway throttling and quotas
  20. https://docs.aws.amazon.com/lambda/latest/dg/services-sqs-parameters.html
  21. https://docs.aws.amazon.com/kinesis/latest/APIReference/API_RegisterStreamConsumer.html
  22. https://aws.amazon.com/kinesis/data-streams/pricing/