Topics & Partitions — Concept Check
Questions on Topics & Partitions. A topic is a named log of events; partitions are ordered, immutable sequences that allow parallelism — more partitions mean more consumer throughput but higher metadata overhead.
Questions in this quiz
8 questions on Topics & Partitions — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A Kafka topic with 10 partitions is being consumed by a consumer group with 5 consumers. What is the maximum number of partitions a single consumer can handle?
- A10
- B1
- C2
- D5
2.A developer creates a Kafka topic with 15 partitions but notices increased latency. What could be a reason?
- AIncorrect replication factor
- BInsufficient consumer group size
- CToo many partitions increasing overhead
- DToo few partitions for throughput
3.A Kafka producer sends records with a key but observes unordered processing. What might be the issue?
- AInsufficient partitions
- BKey-based partitioning not used
- CConsumer group misconfiguration
- DIncorrect serialization
4.A service is designed to process user events with global ordering. Which Kafka feature ensures this?
- AUsing a single partition
- BIncreasing the replication factor
- CMultiple partitions with round-robin strategy
- DKey-based partitioning
5.A Kafka topic has 8 partitions and 4 consumers. The team wants to increase throughput. What should they consider?
- AChange the replication factor
- BUse a single consumer
- CIncrease the number of consumers
- DDecrease the number of partitions
6.What happens if you increase the number of partitions in a Kafka topic after creation?
- AMaintains key-based ordering
- BDecreases throughput
- CBreaks key-based ordering
- DIncreases consumer group size
7.A Kafka topic is set with 5 partitions. What is a potential downside of having too few partitions?
- ALimited consumer parallelism
- BHigher metadata overhead
- CImproved global ordering
- DIncreased latency
8.A developer uses round-robin partitioning without a key. What ordering can they expect?
- AOrdering based on consumer group
- BGlobal ordering across partitions
- COrdering only within each partition
- DNo ordering guarantee