CCDAK · Question #154
You are developing a Kafka Streams application with a complex topology that has multiple sources, processors, sinks, and sub-topologies. You are working in a development environment and do not have…
The correct answer is A. TopologyTestDriver. TopologyTestDriver is specifically designed for unit testing Kafka Streams applications. It allows you to simulate input and output to your stream topology without needing a running Kafka cluster
Question
You are developing a Kafka Streams application with a complex topology that has multiple sources, processors, sinks, and sub-topologies. You are working in a development environment and do not have access to a real Kafka Cluster or Topic. You need to perform Unit Test on your Kafka Streams application. Which should you use?
Options
- ATopologyTestDriver
- BMockProducer, MockConsumer
- CTestProducer, TestСonsumer
- DKafkaUnitTestDriver
How the community answered
(51 responses)- A86% (44)
- B4% (2)
- C8% (4)
- D2% (1)
Explanation
TopologyTestDriver is specifically designed for unit testing Kafka Streams applications. It allows you to simulate input and output to your stream topology without needing a running Kafka cluster
Topics
Community Discussion
No community discussion yet for this question.