0
0
Kafkadevops~5 mins

Stream topology in Kafka - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a stream topology in Kafka Streams?
A stream topology is a directed graph that defines the flow of data through various processing steps in a Kafka Streams application. It shows how streams and tables are connected and processed.
Click to reveal answer
beginner
Name the main components of a Kafka Streams topology.
The main components are:
  • Source nodes (where data enters)
  • Processor nodes (where data is processed)
  • Sink nodes (where data is sent out)
Click to reveal answer
intermediate
How do you build a stream topology in Kafka Streams?
You use the <code>StreamsBuilder</code> class to define sources, processors, and sinks, then call <code>build()</code> to create the topology.
Click to reveal answer
intermediate
What is the role of a Processor API in stream topology?
The Processor API lets you define custom processing logic by creating processor nodes that can transform, filter, or join streams within the topology.
Click to reveal answer
beginner
Explain the difference between source and sink nodes in a stream topology.
Source nodes read data from Kafka topics into the topology. Sink nodes write processed data back to Kafka topics or external systems.
Click to reveal answer
Which Kafka Streams class is used to build a stream topology?
AKafkaProducer
BStreamsBuilder
CKafkaConsumer
DTopologyBuilder
In a stream topology, what does a sink node do?
AWrites data to Kafka topics or external systems
BProcesses data inside the topology
CStores data in memory
DReads data from Kafka topics
What is the purpose of processor nodes in a Kafka Streams topology?
ATo write data to external databases
BTo read data from Kafka topics
CTo apply custom processing logic on streams
DTo monitor Kafka cluster health
Which of the following best describes a stream topology?
AA list of Kafka topics
BA configuration file for Kafka brokers
CA database schema
DA graph showing data flow and processing steps
How do you finalize the definition of a stream topology in Kafka Streams?
ACall <code>build()</code> on StreamsBuilder
BCall <code>start()</code> on StreamsBuilder
CCall <code>connect()</code> on KafkaConsumer
DCall <code>send()</code> on KafkaProducer
Describe the components of a Kafka Streams topology and their roles.
Think about where data enters, how it is processed, and where it goes out.
You got /4 concepts.
    Explain how you would create and build a stream topology using Kafka Streams API.
    Focus on the steps from starting with StreamsBuilder to getting the topology object.
    You got /5 concepts.