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?
✗ Incorrect
StreamsBuilder is the class used to define sources, processors, and sinks to build a stream topology.
In a stream topology, what does a sink node do?
✗ Incorrect
Sink nodes write processed data out to Kafka topics or external systems.
What is the purpose of processor nodes in a Kafka Streams topology?
✗ Incorrect
Processor nodes apply custom logic like filtering, transforming, or joining streams.
Which of the following best describes a stream topology?
✗ Incorrect
A stream topology is a directed graph showing how data flows and is processed.
How do you finalize the definition of a stream topology in Kafka Streams?
✗ Incorrect
Calling
build() on StreamsBuilder creates the topology object.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.