Everyone you interview will say they know dbt. More than 100,000 data teams use it, so “I’ve used dbt” tells you almost nothing — it’s a line on a CV, not evidence. The dbt interview questions that actually sort candidates are the ones that force them to describe production behaviour: what happened when an incremental model drifted, who owned the source that went stale, what the CI run costs on a Monday morning when forty models changed. Tutorial knowledge answers in definitions. Production knowledge answers in incidents.
That gap is widening, not closing. In dbt Labs’ 2026 survey, 72% of teams prioritise AI-assisted coding while only 24% prioritise AI-assisted pipeline management — testing, observability, quality controls. Translation for you: models are being written faster than they are being trusted, and the person you hire either closes that gap or widens it.
What dbt interview questions should you ask an analytics engineer?
Start with materializations, because every candidate has an opinion and only some of them have a reason. The question is not “what are the four materializations” — it’s “walk me through the last time you changed a model from table to incremental, and what broke.”
| Question | What it actually exposes |
|---|---|
When do you pick ephemeral over a CTE in the model itself? |
Whether they understand ephemeral models get inlined — and that stacking them makes unreadable compiled SQL |
What does ref() do that hardcoding a table name doesn’t? |
DAG literacy: lineage, build order, environment-aware schemas |
| How do you decide a model belongs in staging vs marts? | Project structure, naming discipline, whether they’ve ever inherited someone else’s mess |
Describe a model you deliberately left as a view |
Cost awareness — views are free to build and expensive to query |
What’s in your dbt_project.yml that a default project doesn’t have? |
Config at the directory level, tags, +materialized, custom schemas |
Weak answers recite the docs. Strong answers come with trade-offs attached: “we kept staging as views until the warehouse bill told us otherwise, then materialised the three that fourteen downstream models depended on.” Warehouse modelling depth for the same role is covered in data warehouse engineer skills.
How do you test incremental model knowledge in a dbt interview?
Incremental models are where tutorials end and production starts. Ask: “You have a fact table with 2 billion rows, late-arriving events up to 72 hours old, and an upstream system that occasionally replays a day. How is your incremental model configured?”
You are listening for four things, in roughly this order.
The is_incremental() block itself. They should describe the macro as a conditional that only applies on an existing relation — and mention that on a full refresh, the filter disappears entirely. Candidates who’ve never run a --full-refresh on a large table don’t know how long it takes or what it costs.
Lookback windows. A filter of where event_at > (select max(event_at) from {{ this }}) is the tutorial answer and it silently drops late data. The production answer subtracts a window — three days, seven days — and accepts the reprocessing cost.
Incremental strategy. append versus merge versus delete+insert, and why. On Databricks this means knowing merge behaviour against Delta and what incremental_predicates buy you in pruning. On Snowflake it means merge with a unique_key, and understanding what happens when that key isn’t actually unique.
Backfills. “How do you backfill six months without rebuilding the whole table?” A strong candidate reaches for a variable-driven date range and a partitioned run. A weak one says “full refresh” and moves on.
If a candidate has never been paged because an incremental model quietly stopped inserting rows, they haven’t run dbt in production — they’ve run dbt.
What dbt interview questions cover tests, sources and ownership?
Testing is where the 72/24 split shows up in the room. Ask for the last singular test they wrote — not a generic one. unique, not_null, accepted_values and relationships are configuration; a singular test is a SQL file that encodes a business rule the schema can’t express. Candidates who’ve only ever used the four generic tests have never had a stakeholder tell them the numbers were wrong.
Follow-ups that earn their place in the loop:
- “Where do you set test severity to
warn, and why?” The honest answer involves a test that fired nightly and nobody fixed. The interesting part is what they did about the alert fatigue. - “How do you use
dbt source freshness?” Look forwarn_afteranderror_afterthresholds that match the actual upstream SLA, plus whether freshness failures block the build or just notify. - “Have you shipped a model contract?” Enforced contracts pin column names and types at the model boundary so a breaking change fails at build time rather than in a dashboard. Candidates who’ve used them can tell you what it cost them in flexibility.
This matters more than syntax recall because the organisational problem hasn’t moved: ambiguous data ownership remains a challenge for 41% of respondents, effectively unchanged year over year. Someone who defines sources properly, sets freshness thresholds and names an owner in the YAML is doing governance work whether or not anyone calls it that.
Snapshots belong here too. Ask how they’d track a slowly changing dimension where the source system overwrites in place — timestamp versus check strategy, what dbt_valid_from and dbt_valid_to give you, and the trap: snapshots are built against source data, so if you snapshot a model you’ve already filtered, you’ve lost the history you were trying to keep. The design judgment behind that choice is what the data modeling interview questions test.
What are scenario-based dbt interview questions?
Give them a broken project and 25 minutes. This one works on either warehouse:
The scenario. fct_orders is an incremental model with unique_key='order_id' and a filter on order_updated_at. Finance reports that yesterday’s revenue total changed overnight — it went down. The nightly run succeeded, all tests passed. The model has a not_null test on order_id and a unique test on order_id. There are 40 downstream models and three BI dashboards. What do you do first?
| Weak answer | Strong answer | |
|---|---|---|
| First move | “Re-run the model” | Freeze the model, check dbt_valid history or the audit log, compare row counts between runs before changing anything |
| Hypothesis | “Probably a data quality issue upstream” | Names candidates: upstream restated records, a merge overwriting rows with a nulled amount, timezone drift in the filter boundary |
| Tests | “Add more tests” | Points out unique + not_null on a key proves nothing about measure accuracy; proposes a reconciliation test against a daily control total |
| Blast radius | Doesn’t mention it | Pulls the DAG, identifies which of the 40 models are materialised vs views, tells you which dashboards are stale and which are merely slow |
| Prevention | “Better monitoring” | A lookback window, a contract on the measure column, and a singular test comparing restated totals to the prior snapshot |
The tell is whether they ask you questions. Production engineers want to know the orchestration schedule, whether anyone deployed, and whether the upstream team has a changelog. Tutorial engineers start typing.
How is dbt on Databricks different from dbt on Snowflake in an interview?
Ask candidates which adapter they’ve run and then get specific. Platform-specific questions are fair game — Databricks alone reports 2,900+ customers running dbt, and Snowflake now runs dbt projects natively, with preview customers self-reporting a 34% increase in confidence building transformation pipelines — a small self-reported cohort, so treat it as directional rather than proof.
| Area | dbt on Databricks | dbt on Snowflake |
|---|---|---|
| Storage layer | Delta tables; merge semantics, liquid clustering or partitioning decisions |
Micro-partitions; clustering keys only where scan pruning justifies the cost |
| Governance | Unity Catalog three-level namespace, grants, lineage | Databases/schemas, roles, row access policies |
| Compute tuning | SQL warehouse sizing, Photon, serverless vs classic | Virtual warehouse size and auto-suspend, multi-cluster for concurrency |
| Incremental | incremental_predicates, merge against Delta |
merge on unique_key, delete+insert as fallback |
| Catalog config | catalog and schema in profiles, external locations |
Database, schema, role and warehouse per target |
If you’re hiring for a Databricks stack, pair this with the deeper platform screen in our Unity Catalog interview questions; for Snowflake, the Snowflake interview questions set covers warehouse and role design in more depth. Posted pay for the Snowflake seat is in Snowflake data engineer salary. For the Spark jobs underneath those models, use the PySpark interview questions. For the scheduler around those models, use the Airflow interview questions.
Performance is not a theoretical topic on either platform. Home Trust reported that Databricks and dbt process their batches 90% faster than their legacy DataStage solution — that kind of result comes from materialization and compute decisions a person makes, so make them describe the ones they’ve made.
What dbt interview questions work for experienced engineers?
For anyone past three years, move to the project level. These are the questions that separate a senior analytics engineer from a productive mid-level one.
CI. “Walk me through your pull request pipeline.” You want dbt build --select state:modified+ against a deferred production manifest, an understanding of why --defer saves you from rebuilding upstream models, and an honest account of where slim CI breaks — macro changes that modify everything, or a stale manifest that silently under-selects.
Macros and Jinja. Ask for a macro they wrote and then regretted. Good engineers have one. The regret is usually that it abstracted something that should have stayed explicit, and the next person couldn’t read the compiled SQL. Also probe packages: dbt_utils, dbt_expectations, and whether they know what they’re pulling in.
Cost. 57% of respondents report increased warehouse and compute spend, while only 13% report decreases — which makes cost-aware materialization a hiring criterion rather than a bonus. Ask: “Which model in your last project was the most expensive, and how did you find out?” Candidates who’ve been through a cost review name the model, the query history view or system table they used, and what they changed. Candidates who haven’t say “we didn’t really track that.”
Structure at scale. Exposures, groups and access modifiers, model versioning, and what they do when the DAG has 900 nodes and the full run no longer fits the overnight window.
How do you run the loop without losing the candidate?
The people who pass this interview are employed and not applying anywhere. Employment of data scientists is projected to grow 34 percent from 2024 to 2034, much faster than the average for all occupations — so a five-stage process with a weekend take-home loses you the shortlist, not the long tail.
A loop that works: a 30-minute technical screen built from the materialization and incremental questions above, one 60-minute live session using the broken-fct_orders scenario with their editor and their warehouse of choice, and a 30-minute conversation about ownership and stakeholders. Three sessions, inside two weeks, with a decision at the end of each one. If you want a tighter template, the 90-minute vetting structure adapts cleanly to a dbt-centric role.
One scoring note: rate answers on specificity, not fluency. “We used incremental models for the big facts” and “we moved fct_events to incremental with a 72-hour lookback after a replay dropped a day of data in March” are the same claim at different resolutions, and only one of them is checkable. You can search anonymized, currently-employed analytics and data engineering specialists on Lakehouse for free before you build the loop — seeing what real production dbt experience reads like on a profile is a decent calibration exercise in itself.
