Which option is a valid Kafka Topic cleanup policy? (Choose two.)
delete
default
compact
cleanup
Kafka topics support two main cleanup policies:
delete: The default policy where Kafka deletes old log segments based on retention time or size.
compact: Enables log compaction, retaining only the latest value for each key.
From Kafka documentation:
“Valid cleanup.policy values are 'delete' and 'compact'.”
B → Invalid: 'default' is not a recognized cleanup policy.
D → Invalid: 'cleanup' is not a valid keyword in this context.
Page Reference:
Kafka: The Definitive Guide, 1st Edition, Chapter 6, p. 196–197
Apache Kafka Documentation: Topic Configs – cleanup.policy
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
Submit