What is true about log compaction?

Compaction is enabled for a topic in Kafka by setting log.cleanup.policy=compact .

What is true about log compaction?
A . After cleanup, only one message per key is retained with the first value
B . Each message stored in the topic is compressed
C . Kafka automatically de-duplicates incoming messages based on key hashes
D . After cleanup, only one message per key is retained with the latest value
Compaction changes the offset of messages

Answer: D

Explanation:

Log compaction retains at least the last known value for each record key for a single topic partition. All compacted log offsets remain valid, even if record at offset has been compacted away as a consumer will get the next highest offset.

Latest CCDAK Dumps Valid Version with 150 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments