Skip to content
RED SAGSkills
easyMLOps Engineer interview question

What is training-serving skew, and how do you prevent it?

What the interviewer wants to hear

  • Model sees different feature values in production than in training
  • Caused by duplicated logic, different data sources or timing
  • Share one feature definition or package transforms with the model
  • Log served features and compare with offline values

Model answer

Training-serving skew happens when the features a model receives in production are not computed the same way as the features it was trained on. A common cause is writing the logic twice, for example in SQL for training and in application code for serving, and the two drift apart in rounding, time zones or how missing values are filled. It can also come from using different data sources or from timing, such as using data in training that is not yet available at request time. To prevent it, I keep a single feature definition, either in a feature store or by packaging the preprocessing inside the model artifact, so both paths run the same code. I also log the features actually used at serving time and run a regular parity check that compares them with what the offline pipeline would produce for the same entities.

Can you answer it under time pressure?

Take a timed easy round and get scored on every answer.

Start mock interview

More easy MLOps Engineer questions