AWS Solutions Architect · Design Resilient Architectures · medium

A SaaS platform ingests webhook events from twenty third-party partners and routes them to different internal microservices based on JSON payload attributes, while archiving all raw events and retrying failed deliveries for up to 24 hours. Which service provides this capability with the least operational overhead?

Published · Last updated · checked before publication — how we verify questions

Options

  • ADeploy an Amazon ECS cluster running a custom router service that parses JSON bodies and calls downstream APIs
  • BSend webhook payloads to a single Amazon SQS standard queue and have every microservice poll and discard non-matching items
  • CWrite webhook events to an Amazon ElastiCache Redis stream and run cron workers every minute to fan out messages
  • DIngest events into an Amazon EventBridge custom event bus with content-based rules, archive enabled, and retry policiesCorrect answer

Answer: D. Ingest events into an Amazon EventBridge custom event bus with content-based rules, archive enabled, and retry policies

Amazon EventBridge event buses support content-based filtering rules on JSON payloads, built-in event archiving and replay, dead-letter queues, and automatic 24-hour retry policies across dozens of AWS targets without custom routing code. SQS does not route to multiple targets by JSON body attributes, and SNS filters on message attributes (or requires SNS-to-SQS plumbing without built-in event archive/replay).

Why the other options are wrong

  • A. Deploy an Amazon ECS cluster running a custom router service that parses JSON bodies and calls downstream APIs — Maintaining a custom routing fleet on ECS adds operational overhead that managed event buses handle natively.
  • B. Send webhook payloads to a single Amazon SQS standard queue and have every microservice poll and discard non-matching items — Once one microservice deletes a message from a single SQS queue, other microservices cannot receive it, and polling wastes compute.
  • C. Write webhook events to an Amazon ElastiCache Redis stream and run cron workers every minute to fan out messages — ElastiCache Redis streams require custom consumer/retry management and lack native managed archive and replay.

All Design Resilient Architectures questions and the topic overview →

AWS and Amazon Web Services are trademarks of Amazon.com, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by Amazon Web Services.