nerdexam
Confluent

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

Developing with Kafka Streams

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)
  • A
    86% (44)
  • B
    4% (2)
  • C
    8% (4)
  • D
    2% (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

#TopologyTestDriver#unit testing#Kafka Streams testing#development environment

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice