Bird
0
0

What does the cleanup.policy configuration in a Kafka topic specify?

easy📝 Conceptual Q1 of 15
Kafka - Topics and Partitions
What does the cleanup.policy configuration in a Kafka topic specify?
AThe number of partitions in the topic
BThe replication factor of the topic
CHow messages are deleted or compacted in the topic
DThe maximum message size allowed in the topic
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of cleanup.policy

    This configuration controls how Kafka manages old messages in the topic, either deleting them or compacting them.
  2. Step 2: Differentiate from other configurations

    Other options like partitions, replication factor, and message size are controlled by different settings, not cleanup.policy.
  3. Final Answer:

    How messages are deleted or compacted in the topic -> Option C
  4. Quick Check:

    cleanup.policy = How messages are deleted or compacted [OK]
Quick Trick: cleanup.policy controls message deletion or compaction [OK]
Common Mistakes:
  • Confusing cleanup.policy with partition count
  • Thinking cleanup.policy sets replication factor
  • Assuming cleanup.policy limits message size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes