Skip to content
RED SAGSkills
easyMLOps Engineer interview question

How do you decide between batch predictions and a real-time model API?

What the interviewer wants to hear

  • Depends on when the prediction is needed and how fresh the inputs must be
  • Batch is cheaper and simpler for scheduled use such as daily scores
  • Real-time is needed for decisions during a user request
  • Consider latency targets, cost and operational effort

Model answer

I start with when the prediction is needed and how fresh the inputs must be. If the business uses predictions on a schedule, like a daily churn list for the retention team or weekly demand forecasts, batch scoring is simpler and cheaper. It runs on a schedule, writes results to a table and is easy to rerun if something fails. If the decision happens inside a user request, like fraud checks at checkout or search ranking, I need a real-time API with a latency target, autoscaling and on-call support. There is also a middle option: precompute scores in batch and look them up in real time, or use streaming features when only part of the input must be fresh. I pick the simplest option that meets the freshness and latency need, because real-time systems cost more to build and run.

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