Bird
0
0

For a Kafka topic designed to support a large number of consumers with minimal message lag, which partition count approach is most effective?

hard📝 Application Q8 of 15
Kafka - Performance Tuning
For a Kafka topic designed to support a large number of consumers with minimal message lag, which partition count approach is most effective?
AIncrease partitions to match or exceed the number of consumers
BKeep partitions low to reduce overhead and improve latency
CSet partitions equal to the replication factor
DUse a single partition with multiple consumer threads
Step-by-Step Solution
Solution:
  1. Step 1: Understand consumer parallelism

    Each partition can be consumed by only one consumer in a group at a time.
  2. Step 2: Match partitions to consumers

    Having partitions equal or greater than consumers allows all consumers to work in parallel without idle time.
  3. Final Answer:

    Increase partitions to match or exceed the number of consumers -> Option A
  4. Quick Check:

    Partitions enable parallel consumer scaling [OK]
Quick Trick: Partitions >= consumers for max parallelism [OK]
Common Mistakes:
MISTAKES
  • Thinking fewer partitions reduce lag
  • Confusing replication factor with partition count
  • Using single partition limits consumer parallelism

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes