Data Engineer Interview Question

How do incremental models work in dbt, and when do you use one instead of a full rebuild?

What the interviewer is probing, how to structure your answer, and a spoken example you can adapt.

Quick answer

An incremental model builds the table once, then on later runs processes only new or changed rows and merges them in, using an is_incremental block to filter the source. Use one when a full rebuild is too slow or expensive, typically on large event tables. Keep a unique key so late updates merge rather than duplicate, and keep full refresh possible so you can rebuild after logic changes.

Why interviewers ask this

Interviewers are checking whether you optimize with judgment. Incremental models introduce state, so they can drift from what a full rebuild would produce, and candidates who reach for them by default cause silent correctness bugs. Good answers mention the lookback window for late arriving data and the discipline of periodically full refreshing to verify.

How to structure your answer

  • Explain the mechanics of the incremental filter and merge.
  • Give the threshold at which incremental is worth the complexity.
  • Cover the unique key and what happens without one.
  • Add a lookback window for late arriving updates.
  • Insist on periodic full refresh as a correctness check.

Example answer

Spoken example, first person

On the first run it builds the whole table. After that, the is_incremental block adds a filter so you only scan recent source rows, and dbt merges them into the existing table on a unique key. I only reach for it when a full rebuild has become genuinely painful, because incremental models carry state and state drifts. Two habits keep them honest. First, a lookback window rather than a strict greater than max timestamp, because sources update rows retroactively. We used three days on an orders model after finding that refunds landed up to 48 hours late and were being missed entirely. Second, a scheduled full refresh, weekly in our case, which both catches drift and proves the model can still be rebuilt at all. The failure I have seen is an incremental model with no unique key on an append only strategy, which quietly double counted every time a retry ran, and nobody noticed until a monthly number disagreed with finance.

Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.

See how it works

Follow-up questions to expect

  • What is the difference between the append and merge strategies?
  • How would you change an incremental model's logic safely in production?
  • How do you handle deletes in an incremental model?

Related data engineer questions

Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.

Predict my questions

Rehearse the hard questions before they are asked

Practise with a live copilot, then walk in ready. A $29 Session Pass gets you through the interview with no subscription and no lock-in.

Get GhostPilot