SAP-C02 Design for New Solutions Practice Question
A company is building a new order-processing system on AWS. The system uses an Amazon SQS FIFO queue to receive order events from multiple producers. The company requires strict ordering of messages within each order ID and exactly-once processing. To achieve exactly-once processing, the producers must include a deduplication ID with each message. However, the producers currently do not generate deduplication IDs. What should a solutions architect recommend to meet the ordering and exactly-once processing requirements with minimal changes to the producers?
⚠ Common exam trap
The trap here is assuming that FIFO queues automatically deduplicate without any configuration, when in fact deduplication must be enabled either by providing a deduplication ID or by turning on content-based deduplication.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Enable content-based deduplication on the FIFO queue and set the message group ID to the order ID.
For FIFO queues, content-based deduplication automatically creates a deduplication ID from the message body, eliminating the need for producers to supply one. The message group ID ensures that messages within the same group (order ID) are processed in strict order. This solution requires no producer changes and satisfies both ordering and exactly-once processing.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a standard SQS queue and rely on the order ID as the message deduplication ID.
Why it's wrong here
Standard queues do not support message deduplication IDs or strict ordering. They offer at-least-once delivery and best-effort ordering, which violates the exactly-once and ordering requirements. This option fails because it uses the wrong queue type and ignores the need for FIFO semantics.
- ✓
Enable content-based deduplication on the FIFO queue and set the message group ID to the order ID.
Why this is correct
Content-based deduplication automatically generates a deduplication ID from the message body, so producers do not need to change. Setting the message group ID to the order ID ensures strict ordering within each order. This meets both requirements with minimal producer changes.
- ✗
Configure the FIFO queue with a visibility timeout and use the order ID as the message group ID, but do not set deduplication.
Why it's wrong here
Without deduplication, the FIFO queue cannot guarantee exactly-once processing; duplicates may occur if a producer retries. Visibility timeout controls message visibility after receipt, not deduplication. This option addresses ordering via message group ID but fails the exactly-once requirement.
- ✗
Switch to Amazon Kinesis Data Streams with partition key set to the order ID and enable enhanced fan-out.
Why it's wrong here
Kinesis Data Streams can provide ordering per partition key, but it does not natively offer exactly-once processing or deduplication. Consumers must handle idempotency. This changes the architecture significantly and does not meet the exactly-once requirement without additional logic, making it a poor fit.
Go deeper
Related to this question
About these practice questions
One of 984 original SAP-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
This SAP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SAP-C02 exam.