Bird
0
0

You want to ensure messages sent to Kafka are not lost even if a server crashes. Which Kafka feature helps achieve this?

hard📝 Application Q15 of 15
Kafka - Basics and Event Streaming
You want to ensure messages sent to Kafka are not lost even if a server crashes. Which Kafka feature helps achieve this?
ASending messages without keys
BUsing a single broker to simplify management
CDeleting messages immediately after consumption
DReplication of topic partitions across multiple brokers
Step-by-Step Solution
Solution:
  1. Step 1: Understand message durability in Kafka

    Kafka replicates partitions of topics across multiple brokers to avoid data loss if one fails.
  2. Step 2: Evaluate options for reliability

    Single broker risks data loss, deleting messages early loses data, and keys don't affect durability.
  3. Final Answer:

    Replication of topic partitions across multiple brokers -> Option D
  4. Quick Check:

    Replication = message safety on server crash [OK]
Quick Trick: Use replication to keep messages safe [OK]
Common Mistakes:
  • Thinking single broker is safer
  • Deleting messages early to save space
  • Ignoring replication importance

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes