Added
An analytics team has a compacted topic keyed by customer ID. A producer writes an update for a customer and then a tombstone with the same key. A downstream service is offline for several days and must rebuild the current customer state when it returns; the topic is not intended to retain every historical update. Which statement correctly describes what the service should expect after compaction has run?
A compacted topic preserves the latest known record per key rather than every historical value. A tombstone marks a key for deletion and is retained for a configured period so consumers can observe the deletion; it can later be removed by compaction. Compaction is not time-based retention of all history, so the earlier update is not guaranteed to remain. Tombstones are not permanent, and brokers do not synchronously delete the key's log history at the moment a tombstone is produced.