Bird
0
0

You want to create a Kafka topic for a critical system that must not lose messages and should handle high load. Which topic creation settings are best?

hard📝 Application Q15 of 15
Kafka - Topics and Partitions
You want to create a Kafka topic for a critical system that must not lose messages and should handle high load. Which topic creation settings are best?
APartitions: 10, Replication factor: 3
BPartitions: 1, Replication factor: 1
CPartitions: 5, Replication factor: 1
DPartitions: 3, Replication factor: 2
Step-by-Step Solution
Solution:
  1. Step 1: Understand requirements for critical system

    High load needs many partitions for parallelism; no message loss needs high replication factor.
  2. Step 2: Evaluate options

    Partitions: 10, Replication factor: 3 has 10 partitions (high load) and replication factor 3 (high safety). Others have fewer partitions or lower replication.
  3. Final Answer:

    Partitions: 10, Replication factor: 3 -> Option A
  4. Quick Check:

    High load + safety = many partitions + high replication [OK]
Quick Trick: More partitions + higher replication = speed + safety [OK]
Common Mistakes:
  • Choosing low replication for safety
  • Choosing few partitions for high load
  • Ignoring replication factor importance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes