Bird
0
0

Why does TopologyTestDriver not require bootstrap servers in its Properties configuration?

hard📝 Conceptual Q10 of 15
Kafka - Advanced Stream Processing
Why does TopologyTestDriver not require bootstrap servers in its Properties configuration?
ABecause it automatically connects to a default local Kafka cluster
BBecause it runs the topology logic in-memory without connecting to Kafka brokers
CBecause bootstrap servers are only needed for producers, not streams
DBecause it uses a mock network to simulate Kafka brokers
Step-by-Step Solution
Solution:
  1. Step 1: Understand TopologyTestDriver architecture

    It executes Kafka Streams logic entirely in-memory, no network or brokers involved.
  2. Step 2: Analyze options

    Only Because it runs the topology logic in-memory without connecting to Kafka brokers correctly explains why bootstrap servers are unnecessary; others describe incorrect or fictional behaviors.
  3. Final Answer:

    Because it runs the topology logic in-memory without connecting to Kafka brokers -> Option B
  4. Quick Check:

    In-memory execution means no bootstrap servers needed [OK]
Quick Trick: In-memory tests don't need Kafka broker addresses [OK]
Common Mistakes:
MISTAKES
  • Assuming connection to local Kafka cluster
  • Confusing producer config with streams config
  • Thinking it simulates network brokers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes