SpinTheMic
Pro

Interview practice question

Building daily features for ML from events

Data Engineering · Spark · Experienced

The ML team needs daily customer features, like 7, 30 and 90-day spend, from billions of events. How would you build it efficiently in Spark?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Pre-aggregate events to daily customer totals first.
  • Compute rolling windows from the daily table, not raw events.
  • Update incrementally each day.
  • Point-in-time correctness to avoid leakage.
  • Write to a feature table keyed by customer and date.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics