All Questions
Kafka medium

If you set `cleanup.policy=compact` on a Topic, what is the impact on long-term data retention?

  1. A The cluster will utilize 'Zero-Copy' logic to move all data directly to a cold S3 bucket after 7 days.
  2. B Every message is automatically encrypted with a rotation-friendly key.
  3. C Kafka ensures that for every unique record key, the *latest* value is preserved; older versions of that key are eventually purged during background log cleaning.
  4. D Data is deleted strictly after 100MB of log data has been written, regardless of keys.

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

Get the app

Related questions