Code RoomPoint-in-time feature correctness
HardPrep Room Coding #3472

Point-in-time feature correctness

System designML systemsCode quality & reviewSenior–Staff~50 min

Design the offline training-data generation layer of a feature store that must guarantee point-in-time correctness for a payment-fraud model. The training set is built from millions of labeled transactions, each with a decision timestamp; for every row you must join in feature values (e.g. 'merchant chargeback rate in trailing 30d', 'cardholder distinct-device count in trailing 7d') exactly as they would have been at that decision instant — never leaking a value computed after the label event. The same feature definitions also serve online at <10ms. Walk through how you store feature history, how the point-in-time join works at scale, and how you keep the offline and online code paths from drifting apart.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:30 left
Estimate5:30 planned
Design16:30 planned
Deep dive13:30 planned
Failure9:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.