Clickstream events must update a "clicks in the last 10 minutes" feature continuously. What design fits?
- Exam domain
- Model Development44% of the exam
- Difficulty
- Hard
- In this mock
- 22 questions on this domainPractise this domain
Why the exam asks this
Model Development (44% of the exam)
Objective in the exam guide: Design scalable solutions for ingesting and processing streaming data to generate features in real time.
Streaming feature generation is named.
Why B is the answer
A streaming windowed aggregate written to a feature table
Streaming aggregation keeps windowed features current, and writing to a feature table, then online, makes them usable for training and serving.
Remember: Stream features for real-time freshness.
How it works
Streaming pipelines generate real-time features.
In detail
- Streaming windowed aggregates.
- Write to feature tables.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. A daily batch job that recomputes all click counts from the full historyWrongMost tempting
Daily batch misses a 10-minute window.
Why it tempts: Batch is simpler to build.
B. A streaming windowed aggregate written to a feature tableRight
Stream features for real-time freshness.
C. A manual export every hourWrong
Hourly exports miss it too.
D. Computing the count inside the client appWrong
Client counts are inconsistent.
Use case
An illustrative scenario, not a real incident.
Illustrative: a 10-minute rolling click count feeds a recommendations endpoint.
See it in different ways
flowchart LR S0["Ingest stream"] --> S1["Window aggregate"] --> S2["write_table streaming"] --> S3["Publish online"]
How to read this chart
- Read it in order: Ingest stream, then Window aggregate, then write_table streaming, then Publish online.
sequenceDiagram participant P0 as Events participant P1 as Streaming job participant P2 as Feature table P0->>P1: clicks P1->>P2: windowed counts
How to read this chart
- 1. Events sends "clicks" to Streaming job.
- 2. Streaming job sends "windowed counts" to Feature table.