Topic Configuration Properties — Concept Check
Questions on Topic Configuration Properties. Kafka topics have configuration properties controlling durability, retention, compaction, segment size, and message size. Knowing the key properties is essential for production tuning.
Questions in this quiz
8 questions on Topic Configuration Properties — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A Kafka topic is configured with `retention.ms=604800000` and `retention.bytes=10737418240`. What happens when the topic size exceeds 10 GB?
- AOld messages are deleted to maintain the 10 GB limit.
- BThe broker automatically increases disk space.
- CMessages are compressed to reduce size.
- DNew messages are rejected until space is freed.
2.A Kafka topic is set with `min.insync.replicas=2` and `replication-factor=3`. What happens if one broker goes down?
- AThe topic becomes read-only until the broker is back.
- BThe topic continues to function normally.
- CWrites fail unless `acks=all` is set.
- DMessages are lost until the broker is back.
3.You notice that messages larger than 1 MB are not being published to a Kafka topic. What configuration is likely causing this?
- A`compression.type=lz4`
- B`replication-factor=3`
- C`max.message.bytes=1048576`
- D`retention.ms=604800000`
4.A Kafka topic with `cleanup.policy=delete` is experiencing high disk usage. What could be a potential solution?
- ADecrease `retention.ms` to delete data sooner.
- BIncrease `max.message.bytes` to store larger messages.
- CIncrease `retention.bytes` to allow more data.
- DSwitch to `cleanup.policy=compact`.
5.A topic is configured with `compression.type=lz4`. What is the primary benefit of this setting?
- AIncreases message retention time.
- BReduces network bandwidth usage.
- CAllows larger message sizes.
- DImproves message replication speed.
6.What happens if `min.insync.replicas` is set higher than the `replication-factor`?
- AThe setting is ignored and defaults are used.
- BWrites will fail as the condition can't be met.
- CMessages are stored only on available replicas.
- DData is replicated more than the factor allows.
7.You need to ensure that messages are retained for exactly 7 days. Which configuration should you verify?
- A`retention.bytes=10737418240`
- B`retention.ms=604800000`
- C`max.message.bytes=1048576`
- D`compression.type=lz4`
8.A Kafka topic is configured with `replication-factor=3` and `min.insync.replicas=2`. What is the minimum number of brokers required to ensure availability during a broker failure?
- A4 brokers
- B3 brokers
- C2 brokers
- D1 broker