View all questions & answers for the CCDAK exam
A stream processing application is tracking user activity in online shopping carts.
You want to identify periods of user inactivity.
Which type of Kafka Streams window should you use?
Sliding
Tumbling
Hopping
Session
Session windowsare ideal for trackingperiods of activity separated by inactivity, such as user sessions.
FromKafka Streams Documentation > Windowing:
“A session window captures streams of events that areintermittentand separated by agap of inactivity.”
Tumbling/Hopping/Sliding windows are fixed in size
Session windows are dynamic and close after inactivity timeout
This makes them perfect for identifyinggaps in user interaction.
Submit