A cloud engineer is designing a microservices architecture on AWS. The services must communicate asynchronously and decouple producers from consumers. The engineer needs a fully managed message queuing service that supports dead-letter queues and message retention up to 14 days. Which AWS service should be used?
Amazon SQS is a fully managed message queuing service that enables asynchronous communication and decoupling of microservices. It supports standard and FIFO queues, dead-letter queues for handling failed messages, and message retention configurable from 1 minute to 14 days. This directly matches the requirements for a managed queuing service with dead-letter queue support.
Why this answer
Amazon SQS is the only fully managed message queuing service among the options. It provides asynchronous decoupling, supports dead-letter queues for isolating problematic messages, and allows message retention up to 14 days. SNS is pub/sub, EventBridge is an event bus, and Step Functions is an orchestrator, so they do not meet the specific queuing and retention requirements.
Exam trap
The trap here is confusing pub/sub messaging with queuing, or assuming that EventBridge or Step Functions can replace a dedicated message queue for asynchronous decoupling.