All Questions
Kafka hard

The 'High Watermark' in a Kafka partition represents the largest offset successfully replicated to all In-Sync Replicas. What is the consequence of allowing a Consumer to read beyond this watermark?

  1. A Dirty Read / Durability Violation: If the consumer reads Offset 100 which hasn't been replicated, and the Leader then crashes, Offset 100 may never exist on the new Leader, leading to inconsistent data views.
  2. B It would cause the Consumer's Kafka-client library to throw an 'OutOfMemory' exception due to uncompressed headers.
  3. C It would triple the bandwidth cost as the consumer has to fetch from all replicas simultaneously.
  4. D The Topic would be automatically converted to 'Compact' mode to prevent further offset drift.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions