Recall & Review
beginner
What is a windowed operation in Kafka Streams?
A windowed operation groups records by key into time-based windows, allowing aggregation or processing of data within those time frames.
Click to reveal answer
intermediate
Name the three main types of windows in Kafka Streams.
The three main window types are: Tumbling windows (fixed size, non-overlapping), Hopping windows (fixed size, overlapping), and Sliding windows (based on event time, overlapping).
Click to reveal answer
intermediate
How does a tumbling window differ from a hopping window?
A tumbling window has fixed, non-overlapping intervals, so each event belongs to exactly one window. A hopping window has fixed size but advances by a smaller step, causing windows to overlap and events to belong to multiple windows.
Click to reveal answer
advanced
What is the purpose of grace period in Kafka Streams windowed operations?
Grace period defines how long Kafka Streams waits for late-arriving events after the window end time before closing the window and emitting results.
Click to reveal answer
beginner
Explain how windowed aggregation works in Kafka Streams.
Windowed aggregation groups records by key within defined time windows and applies aggregation functions (like count, sum) to produce summarized results per window.
Click to reveal answer
Which window type in Kafka Streams has fixed size and non-overlapping intervals?
✗ Incorrect
Tumbling windows have fixed size and do not overlap, so each event belongs to exactly one window.
What does the grace period in windowed operations control?
✗ Incorrect
Grace period defines how long Kafka Streams waits for late-arriving events before closing the window.
In a hopping window, what causes windows to overlap?
✗ Incorrect
Hopping windows overlap because the advance interval (step) is smaller than the window size.
Which Kafka Streams window type is based on periods of activity separated by inactivity?
✗ Incorrect
Session windows group events separated by inactivity gaps, unlike fixed-size windows.
What is the main benefit of using windowed operations in stream processing?
✗ Incorrect
Windowed operations allow grouping and aggregation of data within time intervals, enabling time-based analysis.
Describe the differences between tumbling, hopping, and sliding windows in Kafka Streams.
Think about window size, overlap, and how events are grouped.
You got /4 concepts.
Explain how Kafka Streams handles late-arriving events in windowed operations and the role of grace period.
Consider why late events might arrive and how to handle them.
You got /4 concepts.