nerdexam
Confluent

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.

Developing with Kafka Streams

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)
  • A
    4% (1)
  • B
    12% (3)
  • C
    4% (1)
  • D
    80% (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

#session windows#windowing#user inactivity#stream processing

Community Discussion

No community discussion yet for this question.

Full CCDAK Practice