CCDAK · Question #168
A stream processing application is tracking user activity of online shopping carts. The application tracks items added to the cart, items removed from the cart, and items ordered from the cart…
The correct answer is D. Session. Session windows are ideal for capturing periods of user activity separated by gaps of inactivity. They dynamically adjust based on periods of activity and inactivity, making them suitable for tracking user sessions and identifying inactivity.
Question
A stream processing application is tracking user activity of online shopping carts. The application tracks items added to the cart, items removed from the cart, and items ordered from the cart throughout the day for each user. You need to capture data to identify possible periods of user inactivity. Which type of Kafka Streams window should you use?
Options
- ASliding
- BTumbling
- CHopping
- DSession
How the community answered
(25 responses)- A4% (1)
- B12% (3)
- C4% (1)
- D80% (20)
Explanation
Session windows are ideal for capturing periods of user activity separated by gaps of inactivity. They dynamically adjust based on periods of activity and inactivity, making them suitable for tracking user sessions and identifying inactivity.
Topics
Community Discussion
No community discussion yet for this question.