
Ultimate access to all questions.
You are tasked with creating a basket abandonment notification system for an ecommerce platform. The goal of the system is to send a reminder message to users who meet the following criteria: they have been inactive on the website for at least 1 hour, they have added items totaling more than $30 to their shopping basket, and they have not finalized a purchase. You plan to utilize Google Cloud Dataflow for processing the relevant data and determining if a notification should be sent. How would you go about designing this data pipeline?
A
Use a fixed-time window with a duration of 60 minutes.
B
Use a sliding time window with a duration of 60 minutes.
C
Use a session window with a gap time duration of 60 minutes.
D
Use a global window with a time based trigger with a delay of 60 minutes.
Explanation:
The correct answer is C: Use a session window with a gap time duration of 60 minutes. A session window is appropriate for user session data, which involves periods of activity separated by gaps of inactivity. In this case, the system needs to determine if there has been no interaction by the user on the site for 1 hour (60 minutes gap time). Session windows are designed to handle such scenarios effectively, making them the best choice among the provided options.