Question 210
A cloud platform team must address a specific requirement, the decisive constraint is: An ordered payment event stream must preserve messages within the same order key and avoid duplicates in supported conditions. What is the most defensible implementation decision?
Explanation
Correct Answer
Use SQS FIFO with explicit message group IDs and deduplication handling. FIFO queues support ordered processing per group and deduplication semantics.
Incorrect Answers
This alternative, Buffer accepted work in Amazon SQS and retry with idempotent consumers, is appropriate when A checkout API must accept orders during temporary downstream payment-processor outages. Durable queues absorb downstream downtime without keeping synchronous HTTP requests open.
For the separate situation An inventory event must fan out independently to analytics, billing and notification consumers, Publish to an SNS topic with separate SQS subscriptions for each consumer could be useful. SNS-to-SQS fanout preserves independent subscriber processing and retries.
Make processing idempotent and size the SQS visibility timeout for realistic execution solves the related scenario Workers receive the same message again after a visibility timeout expires; standard SQS provides at-least-once delivery and can redeliver unfinished messages.