SpinTheMic
Pro

Interview practice question

Duplicate records in the database sink

Data Engineering · Kafka Streaming · Beginner

A consumer writing Kafka events to a database creates duplicates after restarts. Why, and how do you fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • At-least-once: offsets committed after processing; crash before commit causes reprocessing.
  • Make writes idempotent: upsert by unique event ID.
  • Commit offsets after successful writes.
  • Consider transactional patterns for strict needs.
  • Monitor duplicate rates.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics