Bird
0
0

Which component is required to create a TopologyTestDriver instance for testing?

easy📝 Conceptual Q2 of 15
Kafka - Advanced Stream Processing
Which component is required to create a TopologyTestDriver instance for testing?
AKafkaProducer instance
BTopology object and Properties configuration
CKafkaConsumer instance
DKafka Streams application ID only
Step-by-Step Solution
Solution:
  1. Step 1: Identify inputs for TopologyTestDriver

    It requires a Topology object defining the stream logic and Properties for configuration.
  2. Step 2: Evaluate options

    Only Topology object and Properties configuration correctly lists both required inputs; others mention unrelated Kafka clients or incomplete info.
  3. Final Answer:

    Topology object and Properties configuration -> Option B
  4. Quick Check:

    Topology + Properties = D [OK]
Quick Trick: TopologyTestDriver needs topology and config properties [OK]
Common Mistakes:
MISTAKES
  • Using KafkaProducer or KafkaConsumer directly
  • Providing only application ID without topology
  • Confusing runtime clients with test driver inputs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kafka Quizzes