Passage: In a marketing dataset, each customer has many events such as impressions and purchases. The team needs a model that predicts whether a customer will purchase within the next 14 days. They build training examples by selecting an “observation date” for each customer, then joining all events up to that date to compute aggregate features. Some events arrive hours late due to tracking pipelines, but their timestamps reflect the true occurrence time. The team argues that using the raw ingestion time for joins could contaminate labels. They instead join by event timestamps and also enforce that no feature depends on events after the observation date. For evaluation, they use a different set of observation dates so the future window never overlaps with feature computation. Inference uses the latest observation date per customer with the same pipeline logic. Based on this text, which leakage risk is most directly avoided?
Answer
Using ingestion time in joins that lets late-arriving post-observation events enter features
Explanation
The passage highlights contamination from joining on ingestion time, which can mistakenly include events that occurred after the observation date but arrived late.
Last reviewed: October 2026
Reviewed by FirstInTest Editorial Team
Related questions
In BigQuery ML, which scenario most directly requires using a time-series-specific approach rather than a standard regression model?
View question →
You run a BigQuery ML model with cross-validation settings and see large variance across folds. Which interpretation is most appropriate?
View question →
A dataset has 40% missing values in a numeric feature that correlates strongly with the target. Which imputation strategy is most defensible for building a predictive model with minimal bias?
View question →
When interpreting feature attribution results (e.g., SHAP) from a BigQuery ML model, which statement is most accurate?
View question →
For entity-level analytics, you need robust aggregation across events where the event timestamp can arrive late. Which design best prevents double-counting and late-arrival issues?
View question →
A model is trained on a dataset with class imbalance and you observe that maximizing accuracy selects a threshold that yields very low recall for the minority class. What is the most direct remedy?
View question →