Skip to the page

Orchestration and dbt · Concept

dbt models, refs and materializations

The interviewer asks

What does dbt actually do, and what doesn't it do? Explain models, ref, sources and the main materializations.

Then

Follow-ups the interviewer asks next

  1. What does ref() give you besides a table name?
  2. View, table, incremental, ephemeral: when each?
  3. Who runs dbt in production?
  4. What are dbt v1 and dbt v2 in 2026, and does the licence matter to your team?
  5. How do you build only the models changed in a pull request?

The answer

What a strong answer covers

  • dbt is the transformation step inside the warehouse: it compiles SQL (with Jinja) into plain SQL and runs it in dependency order. It doesn't extract or load data and isn't a general scheduler.
  • A model is one SELECT in a file that becomes a table or view. ref('model') builds the dependency graph (order and lineage) and points to the right schema per environment. source() declares raw tables and enables freshness checks.
  • Materializations: view (cheap, always current, slower to read), table (rebuilt every run), incremental (only new or changed rows merged or appended), ephemeral (inlined as a CTE), plus snapshots for SCD type 2.
  • In production: dbt build (models and tests in order) from Airflow, the dbt platform or CI; "slim CI" builds state:modified+ and defers the rest to production.
  • 2026: dbt v2 reached general availability on 15 Sep 2026, built on the Rust engine that began as Fusion. It comes as "dbt OSS" (Apache 2.0) and "dbt" (free to use, with proprietary parts under the dbt Product Licensing Agreement). The Python dbt Core 1.x line stays Apache 2.0, and 1.13 is its last minor release. The new engine understands the SQL itself, so it catches many errors before the warehouse runs anything. Fivetran and dbt Labs are now one company.

The red pen

Common traps

Avoid:"dbt moves data from the sources"; hard-coding schema names instead of ref; calling dbt a scheduler.

Practise this out loud

Say your answer out loud to an AI interviewer that follows up, and get a score for it.

Practise by voice

Practise questions like this out loud

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview