Q. Kafka compaction is used to:
β
Correct Answer: (B)
Remove duplicate keys and retain the latest record
Explanation: Log compaction ensures the latest value for each key is retained in the topic.