Bird
0
0

In a Kafka-based system processing ordered user events with retry logic, which pattern combination ensures message order and reliable retries?

hard📝 Application Q8 of 15
Kafka - Advanced Stream Processing
In a Kafka-based system processing ordered user events with retry logic, which pattern combination ensures message order and reliable retries?
AUse stateless stream processing with at-least-once delivery
BUse multiple consumer groups with automatic offset commits
CUse partitioned topics with idempotent producers and manual offset commits
DUse compacted topics with auto offset reset to earliest
Step-by-Step Solution
Solution:
  1. Step 1: Maintain order

    Partitioned topics ensure ordering per key.
  2. Step 2: Enable retries without duplicates

    Idempotent producers prevent duplicate messages on retries.
  3. Step 3: Control commit timing

    Manual offset commits allow retrying failed messages before committing.
  4. Final Answer:

    Use partitioned topics with idempotent producers and manual offset commits -> Option C
  5. Quick Check:

    Ordering + idempotency + manual commit = reliable retries [OK]
Quick Trick: Partition + idempotent producer + manual commit for ordered retries [OK]
Common Mistakes:
  • Relying on automatic commits which may lose retries
  • Using multiple consumer groups that break ordering
  • Using stateless processing without idempotency

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes