Back to interview questions

100+ dbt Interview Questions and Answers

100+ dbt Interview Questions and Answers

Explore 120 dbt interview questions and answers on models, Jinja, tests, incremental loads, snapshots, lineage, Slim CI and data reliability.

Explore 120 dbt interview questions and answers on models, Jinja, tests, incremental loads, snapshots, lineage, Slim CI and data reliability.

By

Team Sherlock.sh

Add Sherlock as a preferred source on Google

dbt interviews should test whether candidates can explain the grain and ownership of a model, predict what SQL the project will execute and prove an analytical result is correct after late or duplicated inputs. A green transformation run is not enough if the data consumers see is incomplete or wrong.

These 120 dbt interview questions cover SQL models, ref and source, data tests, snapshots, incremental strategies, project contracts, Slim CI and production recovery. Examples use SQL with dbt Jinja where shown, YAML configuration and command-line fragments; check adapter support before adopting a materialization.

How can you tell whether a candidate understands the dbt model they just wrote?

Ask what the model’s grain is, whether a late refund is captured and which check would detect doubled revenue. A strong answer proves the output, not just the SQL execution. In remote interviews, Sherlock AI can help reviewers examine evidence of possible AI-assisted cheating, deepfakes, impersonation or other unauthorized assistance alongside that technical reasoning.

dbt Interview Questions

Choose questions based on whether the role builds models, owns data quality or manages large analytics contracts across teams.

dbt Interview Questions for Beginners

Start with the project, SQL modeling, materializations and testing vocabulary.

  1. What is dbt?

  2. What does dbt do in an ELT architecture?

  3. What is dbt Core compared with the managed dbt platform?

  4. What is a dbt adapter?

  5. What is a dbt project?

  6. What is a dbt model?

  7. What does ref do in dbt?

  8. What does source do in dbt?

  9. What is the dbt DAG?

  10. What is Jinja used for in dbt?

  11. What is the difference between dbt compile and dbt run?

  12. What is the difference between dbt run and dbt build?

  13. What does dbt test do?

  14. What is a materialization in dbt?

  15. When should you use a dbt view?

  16. When should you use a dbt table?

  17. What does ephemeral materialization do?

  18. What is an incremental dbt model?

  19. What does is_incremental check?

  20. What is unique_key in an incremental model?

  21. What does a dbt full refresh do?

  22. What is a dbt seed?

  23. What is a dbt snapshot?

  24. What is a generic dbt data test?

  25. What is a singular dbt data test?

  26. How do dbt unit tests differ from data tests?

  27. What does a not_null test tell you?

  28. What does the relationships test check?

  29. What is source freshness?

  30. How do you document dbt models and columns?

  31. What is dbt lineage useful for?

  32. What is a dbt exposure?

  33. What is a dbt macro?

  34. What is a dbt package?

  35. What is profiles.yml used for in dbt Core?

  36. What is the dbt target?

  37. How do selectors work in dbt?

  38. What does dbt ls help you verify?

  39. What should a beginner check when a dbt model fails?

  40. How do you check whether a dbt model is actually correct?

dbt Interview Questions for Intermediate

Move into grain, incremental logic, snapshots, state and warehouse operations.

  1. How do staging, intermediate and mart models differ?

  2. How do you choose a dbt model’s grain?

  3. How do you stop a join from inflating amounts?

  4. How do you model late-arriving changes in an incremental dbt model?

  5. What are common incremental strategies in dbt?

  6. When is an incremental model unsuitable?

  7. How do you test full and incremental execution paths?

  8. How can schema changes affect a dbt incremental model?

  9. How do you choose a unique_key for a merge?

  10. How do you handle upstream deletes in incremental models?

  11. What is the difference between a loaded_at field and an event timestamp?

  12. How do you handle freshness checks that are too noisy?

  13. How does a timestamp snapshot strategy differ from a check strategy?

  14. How do you decide which rows a dbt snapshot can recover?

  15. How should dbt handle slowly changing dimension history?

  16. What is a dbt model contract?

  17. When should you version a dbt model?

  18. How do you write a useful dbt unit test fixture?

  19. How do warning and error severity affect dbt tests?

  20. How do you debug a failing relationships test?

  21. How do you store failing dbt test rows responsibly?

  22. When are reconciliation tests better than simple counts?

  23. How do you build a custom generic dbt test?

  24. How do you debug a dbt macro across adapters?

  25. What is dbt adapter dispatch used for?

  26. What is the role of variables in dbt commands?

  27. Why should warehouse credentials differ across dbt environments?

  28. How do you use dbt state selection?

  29. What does defer do in dbt?

  30. What is Slim CI in a dbt workflow?

  31. What is manifest.json in a dbt project?

  32. What is run_results.json used for?

  33. How can dbt model hooks create hidden side effects?

  34. When should you materialize an intermediate dbt model?

  35. How do you inspect dbt’s warehouse cost?

  36. How do you choose dbt thread settings?

  37. How do you backfill a selected set of dbt models?

  38. How do you validate partitioned dbt outputs?

  39. How should dbt projects test access to important marts?

  40. What exercise tests intermediate dbt skill?

dbt Interview Questions for Experienced

Use real data design and incident scenarios to evaluate senior dbt judgment.

  1. How would you structure a dbt project used by several teams?

  2. How do you separate analytics models from authoritative operational data?

  3. How would you design dbt modeling for events with several timestamp meanings?

  4. How do you manage finance metric definitions across dbt projects?

  5. How would you diagnose a model with correct counts and incorrect totals?

  6. How would you find an unexpected fan-out in a dbt DAG?

  7. How do you design a robust incremental reconciliation process?

  8. How do you decide between incremental merge and partition replacement at scale?

  9. How do you design a safe maximum timestamp filter?

  10. How would you test an incremental model for duplicate source records?

  11. How do you handle null keys in dbt merge logic?

  12. How would you manage schema evolution for an important published mart?

  13. How do you keep dbt model contracts and warehouse constraints aligned?

  14. How would you design model access boundaries in dbt?

  15. How do you decide what to publish from dbt as reusable public data?

  16. How would you use lineage during an incorrect data incident?

  17. How do you design dbt observability for business users?

  18. How would you diagnose slow dbt build performance?

  19. How would you avoid dbt competing with peak BI traffic?

  20. How do you decide whether to use separate dbt jobs for several domains?

  21. How should a dbt build respond when one source is late?

  22. How do you maintain temporal consistency between independently refreshed models?

  23. How do you avoid unreliable dbt tests in a mixed CI and production state?

  24. How would you manage dbt state artifacts across releases?

  25. How do you interpret dbt state changes caused by macro edits?

  26. How would you organize testing for a frequently changing warehouse source?

  27. How do you manage package or adapter upgrades in dbt?

  28. What should a dbt project do when a model cannot be built atomically?

  29. How do you handle data model rollback after a semantic change?

  30. How would you run a large historical dbt backfill without impacting consumers?

  31. How do you make model logic explainable to non-engineers?

  32. How do you distinguish metric correctness from warehouse availability?

  33. How would you design a reconciliation alert with useful thresholds?

  34. How do you keep dbt-generated SQL maintainable?

  35. How do you compare several dbt materialization strategies objectively?

  36. How would you design recovery for corrupted dbt outputs?

  37. How do you review dbt changes for privacy and data minimization?

  38. How do you evaluate a migration from ad hoc SQL to dbt?

  39. What should a dbt production-readiness review include?

  40. What senior dbt interview exercise tests real judgment?

dbt Interview Questions and Answers

The answers connect dbt mechanisms to data expectations and include practical examples, adapter caveats and failure modes.

dbt Interview Questions and Answers for Beginners

Review the core project concepts against small example transformations.

1. What is dbt?

dbt is a tool for developing and running analytical transformations with code, dependencies, tests and documentation. It commonly compiles models into SQL and runs them using a connected data platform rather than storing the business data itself.

A team can turn loaded order records into validated daily metrics. Ingestion needs its own tooling, and dbt model success does not automatically verify the upstream source arrived on time.

2. What does dbt do in an ELT architecture?

It usually handles transformation after source data is loaded into an analytical platform. Use explicit source contracts and orchestrate loading and transformation so developers know which upstream data a model assumes.

For a daily orders model, the loader owns delivery from the source, while dbt owns the staged and analytical shapes. Add freshness evidence before presenting the results as current.

3. What is dbt Core compared with the managed dbt platform?

dbt Core is the open-source command-line project and runtime ecosystem for developing and executing supported dbt work. Managed dbt offerings provide additional hosted development or scheduling and governance workflows whose capabilities depend on product configuration.

A team can run dbt Core in its own CI or choose managed job scheduling. Either way, it owns project code, warehouse access and the correctness of its data models.

4. What is a dbt adapter?

An adapter connects dbt to a particular data platform and implements platform-specific behavior. Supported configurations, materializations and SQL syntax vary, so verify the adapter’s documented contract rather than treating all backends as identical.

A strategy available on one warehouse may not work on another. Read compiled SQL and test representative data before assuming a project can be moved just by changing a profile.

5. What is a dbt project?

It is the managed collection of models, tests, configuration, macros and related resources that dbt resolves together. Its project file and directory conventions identify resources and control settings.

A repository can separate modeling layers and configure default materializations per folder. Keep environment credentials separate and document how a developer selects a safe personal target.

6. What is a dbt model?

A model is a transformation resource, commonly defined as a SQL select, that dbt compiles and materializes according to configuration. Think of it as a data contract with upstream dependencies and an intended grain.

An order model can produce one row per order. If it joins to many line items without aggregation, its SQL may run but the result no longer satisfies that declared grain.

7. What does ref do in dbt?

ref resolves a referenced dbt model or other supported resource to the appropriate relation and records a project dependency. It helps dbt choose build ordering, lineage and environment-specific names.

A customer mart can refer to a staging model without hardcoding a production schema. In a developer target, the same code can resolve to the intended development relation.

select
    order_id,
    customer_id,
    order_total_cents
from {{ ref('stg_orders') }}
select
    order_id,
    customer_id,
    order_total_cents
from {{ ref('stg_orders') }}
select
    order_id,
    customer_id,
    order_total_cents
from {{ ref('stg_orders') }}

8. What does source do in dbt?

source resolves a declared input relation and records the source dependency. A source declaration can carry descriptions, tests and freshness configuration without dbt owning ingestion of the relation.

Say where raw orders arrive and reference that declaration in staging. If the raw table changes shape or stops updating, source checks help identify the failure before carrying it downstream.

version: 2
sources:
  - name: commerce
    schema: raw_commerce
    tables:
      - name: orders
version: 2
sources:
  - name: commerce
    schema: raw_commerce
    tables:
      - name: orders
version: 2
sources:
  - name: commerce
    schema: raw_commerce
    tables:
      - name: orders

9. What is the dbt DAG?

The DAG is the directed graph of resources and dependencies dbt understands. It powers selection, ordering and lineage but does not automatically include hidden dependencies introduced through arbitrary SQL or external systems.

Using ref links a model with its upstream model. Hardcoding the same table name can hide that dependency, leading to incorrectly ordered runs or incomplete change impact analysis.

10. What is Jinja used for in dbt?

Jinja templates generate or configure SQL and can refer to macros, variables and dbt context. Separate reusable generation from overly complex logic so developers can inspect what actually runs.

A macro can generate a consistent date expression for supported adapters. Review compiled SQL when debugging because errors may point to generated code rather than the original template line.

11. What is the difference between dbt compile and dbt run?

Compile resolves model templates into the SQL or relevant executable representation without normally materializing models. Run executes selected models; compilation may still invoke configured introspective macros, so do not label it universally offline.

Inspect compiled SQL for a changed join before using warehouse compute. If a macro requires database access during compilation, run it with deliberately scoped credentials and do not assume nothing external can happen.

12. What is the difference between dbt run and dbt build?

Run focuses on selected models. Build executes eligible resource types and their tests in DAG order according to the selected graph and command behavior.

Use build when a workflow needs validation linked to downstream eligibility. If a model’s table exists after run, that alone does not show tests passed or every dependent resource was rebuilt.

13. What does dbt test do?

It executes selected tests using the project and applicable target. Data tests typically check the relations visible in that environment; execution does not necessarily build or refresh the target data first.

Testing a staging relation created yesterday can miss a new source change. Ensure the tested relation and run state correspond to the candidate and data slice you intend to verify.

14. What is a materialization in dbt?

A materialization controls how a transformation is represented and persisted, such as a view, table, incremental relation or ephemeral logic. The choice affects runtime cost, freshness and downstream behavior.

A small staging transform can be a view, while a costly reused fact model may warrant a table. Choose based on measured queries and load rather than use one materialization for every layer.

15. When should you use a dbt view?

Use a view when deferred computation is appropriate and the underlying SQL is affordable for consumers. Its results often reflect current inputs, but repeated executions can raise query cost or latency.

A thin naming and typing layer can use a view. If a dashboard reads a complex view thousands of times, measure whether a persisted relation improves performance enough to justify refresh cost.

16. When should you use a dbt table?

Use a table when persisted results provide better reuse, latency or operational predictability and a rebuild fits the freshness and resource budget. Confirm how replacement is performed by the adapter.

An important daily summary may be read much more often than it changes. Persisting it can save repeated transformations, but a failed or delayed build should not be mistaken for current data.

17. What does ephemeral materialization do?

An ephemeral model is not ordinarily built as a standalone relation; dbt can inline it into downstream SQL. It can simplify reusable intermediate logic but can enlarge compiled queries when used broadly.

An ephemeral helper may work for a small mapping used in one model. If many consumers inline expensive joins, a separately materialized and tested intermediate relation may be easier to operate.

18. What is an incremental dbt model?

It processes an eligible subset of data after an initial build and updates a persisted target according to its strategy. The developer must define what changes qualify and how existing records are handled.

A daily facts model can process recent modified rows. Reading only records newer than the previous maximum timestamp can miss late arrivals or updates unless the selection accounts for them.

19. What does is_incremental check?

The macro indicates when the configured incremental execution context applies under dbt’s rules, including conditions such as an existing eligible target and not running a full refresh. Both code branches must be valid.

Use it to apply an incremental source filter only for incremental runs. On a new target or a full refresh, execute a complete valid query without requiring a relation that does not yet exist.

{{ config(materialized='incremental', unique_key='order_id') }}
select order_id, updated_at, amount_cents
from {{ ref('stg_orders') }}
{% if is_incremental() %}
where updated_at >= (
    select coalesce(max(updated_at), cast('1900-01-01' as timestamp))
    from {{ this }}
)
{% endif %}
-- Illustrative high-watermark pattern; add lateness handling for your source.
{{ config(materialized='incremental', unique_key='order_id') }}
select order_id, updated_at, amount_cents
from {{ ref('stg_orders') }}
{% if is_incremental() %}
where updated_at >= (
    select coalesce(max(updated_at), cast('1900-01-01' as timestamp))
    from {{ this }}
)
{% endif %}
-- Illustrative high-watermark pattern; add lateness handling for your source.
{{ config(materialized='incremental', unique_key='order_id') }}
select order_id, updated_at, amount_cents
from {{ ref('stg_orders') }}
{% if is_incremental() %}
where updated_at >= (
    select coalesce(max(updated_at), cast('1900-01-01' as timestamp))
    from {{ this }}
)
{% endif %}
-- Illustrative high-watermark pattern; add lateness handling for your source.

20. What is unique_key in an incremental model?

It specifies identity used by relevant incremental strategies to match existing and new records. It is not automatically a database guarantee or substitute for designing and testing the model’s grain.

If one order should appear once, validate that its key is non-null and unique before merging. Duplicate incoming keys can produce errors or unexpected updates depending on the warehouse and strategy.

21. What does a dbt full refresh do?

For selected applicable incremental resources, a full refresh rebuilds rather than using their ordinary incremental input path, subject to resource configuration and adapter behavior. It can be costly and can affect readers during replacement.

A historical logic correction may require rebuilding many partitions. Verify resource scope and expected data cost, then schedule or stage the operation deliberately instead of reflexively full-refreshing everything.

22. What is a dbt seed?

A seed is a small CSV-based reference resource loaded through dbt. It works best for versioned, relatively static data under appropriate repository ownership, not large changing extracts or sensitive datasets.

A short mapping of public status codes can be kept as a seed. Store separately owned or frequently changing reference data in an appropriate source and document its refresh process.

23. What is a dbt snapshot?

A snapshot records changes across runs for an identified record over time, often modeling a type-2 history pattern. It depends on a useful key, detection strategy and observation frequency.

If a customer record changes status, periodic snapshots can preserve observed prior and new values. They cannot prove every intermediate value that changed and changed back between observations.

24. What is a generic dbt data test?

A generic data test is a reusable assertion applied to configured resources or columns. Its implementation ordinarily returns rows that represent failing cases.

For example, apply uniqueness to order_id and accepted values to status. Choose the constraint based on documented grain and business logic instead of adding tests mechanically to every column.

25. What is a singular dbt data test?

It is a specific SQL assertion, usually defined for a particular project rule, that reports records violating the intended condition. It is useful when reusable configuration would make the rule less clear.

Write a test selecting orders whose paid total exceeds a documented allowable amount. Keep the rule readable and inspect failing rows rather than merely counting that the query executed.

select order_id
from {{ ref('fct_orders') }}
where status = 'cancelled' and paid_amount_cents <> 0
select order_id
from {{ ref('fct_orders') }}
where status = 'cancelled' and paid_amount_cents <> 0
select order_id
from {{ ref('fct_orders') }}
where status = 'cancelled' and paid_amount_cents <> 0

26. How do dbt unit tests differ from data tests?

Unit tests check model logic against controlled inputs and expected outputs when the resource and adapter support them. Data tests check actual data in the target relation.

A unit test can verify canceled orders are excluded using two fixture rows. A production data test can then detect if real data violates uniqueness after processing.

27. What does a not_null test tell you?

It checks for null values in the tested column or expression context, not empty strings, wrong values or uniqueness. Use meaningful eligibility and combine assertions when the domain needs more guarantees.

An order ID should be non-null and unique at one-row-per-order grain. A non-null placeholder such as an empty string may require an additional test because it is not the same as a missing SQL value.

version: 2
models:
  - name: fct_orders
    columns:
      - name: order_id
        data_tests:
          - not_null
          - unique
version: 2
models:
  - name: fct_orders
    columns:
      - name: order_id
        data_tests:
          - not_null
          - unique
version: 2
models:
  - name: fct_orders
    columns:
      - name: order_id
        data_tests:
          - not_null
          - unique

28. What does the relationships test check?

It checks that tested non-null reference values have a corresponding value in the declared relation under its standard behavior. It is not itself proof of uniqueness on the referenced side or a warehouse foreign key constraint.

An order may reference a known customer. Separately test the customer key and decide how to handle allowed guest orders or late-arriving records rather than treating every missing link identically.

29. What is source freshness?

Source freshness compares a configured loaded-at signal or supported metadata with freshness thresholds. It measures whether a source looks sufficiently recent, not the completeness of every expected business record.

One newly inserted row can make a table look fresh while most of the file is missing. Pair freshness with completeness or manifest reconciliation where the delivery contract needs it.

30. How do you document dbt models and columns?

Use supported descriptions and project documentation conventions to explain grain, source, meanings and assumptions. Useful documentation identifies where a metric should be used and where it should not.

For net revenue, document refund timing and currency rather than repeating the column name. Keep descriptions with code so reviewers can see when semantics change.

31. What is dbt lineage useful for?

Lineage shows known relationships between sources, models, tests and supported downstream resources. It helps identify build dependencies and impacts, but depends on accurate declared relationships.

Before changing a shared orders model, inspect which marts and dashboards depend on it. If an external report is not recorded, the displayed DAG cannot prove nobody uses the data.

32. What is a dbt exposure?

An exposure can describe a downstream use of dbt resources, such as a dashboard, with ownership or related metadata. It makes important consumers visible beyond SQL model lineage.

Document a finance report and its model dependencies. An exposure is maintained project metadata, not automatic proof the external dashboard currently works or uses only those models.

33. What is a dbt macro?

A macro is a reusable template function that can generate SQL or perform supported dbt operations. Keep its effects and adapter assumptions explicit so repeated use does not obscure correctness.

Move a repeated field normalization pattern into a macro if its inputs and output are stable. Test across representative null and boundary cases and inspect compiled SQL.

34. What is a dbt package?

A package provides reusable project resources such as macros and tests. Choose compatible supported versions and review its code and operational behavior like any other dependency.

A team can use a package for common test patterns. Pin the expected version and avoid automatically adopting a change that alters compiled SQL or warehouse privileges across deployments.

35. What is profiles.yml used for in dbt Core?

It commonly configures connection profiles and targets for local or self-managed dbt Core execution. Actual storage and authentication should reflect the runtime and deployment environment.

A project can use a development schema and separate CI credentials. Do not store production passwords in a committed profile or rely on the filename to enforce read-only access.

36. What is the dbt target?

The target selects a configured environment and adapter connection details. Model compilation and placement can differ by target, so verify the active one before running a data-changing command.

A developer typically points at an isolated schema while production uses its own authorized identity. A command running successfully against the wrong target can still be a serious operational mistake.

37. How do selectors work in dbt?

Selectors define a set of resources based on supported criteria and graph operators. Use them to scope builds or checks and understand which dependencies the selection does or does not include.

Select the changed model and downstream dependents when assessing impact. Excluding upstream rebuilds is useful only if the existing upstream relations are appropriate for the intended validation.

38. What does dbt ls help you verify?

It lists selected project resources under supported selection rules without running transformations. Use it to inspect scope before an expensive or consequential build, not to prove warehouse results.

A developer can preview which incremental models a selector picks before rebuilding. They should still check active target and actual data impact once the selected work runs.

39. What should a beginner check when a dbt model fails?

Identify whether the issue is parsing, compilation, connection, execution or data validation. Inspect the selected target, compiled model source and first relevant warehouse error before modifying unrelated models.

A missing relation can indicate an incorrect dependency or environment. An assertion failure means the query ran and its results violated a stated expectation, which needs different investigation.

40. How do you check whether a dbt model is actually correct?

Validate its intended grain, fields, business rules and expected trade-offs against representative data. Combine unit tests, real data assertions and reconciliation where stakes require more than row counts.

A revenue model can produce one row per day yet silently exclude refunds. Compare against a trusted ledger or seeded business cases, with explicit timing and currency assumptions.

dbt Interview Questions and Answers for Intermediate

Review implementation choices, diagnostic methods and patterns that protect data quality.

41. How do staging, intermediate and mart models differ?

Staging usually standardizes sources; intermediate models capture reusable transformations; marts expose domain-ready outputs. These are useful conventions, not forced dbt execution types.

Rename and type raw orders in staging, compute line-level amounts in intermediate models and publish a one-row-per-order mart. Keep each model’s grain and ownership clear.

42. How do you choose a dbt model’s grain?

State what one row represents, which identity should be unique and which changes or duplicates are allowed. This guides joins, testing, incremental keys and downstream interpretation.

If a payments mart contains one row per transaction, joining directly to multiple status events can duplicate rows. Aggregate or select the intended event before joining and test uniqueness.

43. How do you stop a join from inflating amounts?

Check relation grain and cardinality before joining, then aggregate or deduplicate at the correct boundary. Compare pre- and post-join counts and relevant sums against known expectations.

An order can have several payments and several shipments. Joining both line-level relations naively multiplies amounts; summarize each to the intended order grain first.

with payments_at_order_grain as (
    select order_id, sum(amount_cents) as paid_cents
    from payments
    group by order_id
), shipments_at_order_grain as (
    select order_id, count(*) as shipments
    from shipments
    group by order_id
)
select o.order_id, p.paid_cents, s.shipments
from orders as o
left join payments_at_order_grain as p on p.order_id = o.order_id
left join shipments_at_order_grain as s on s.order_id = o.order_id
with payments_at_order_grain as (
    select order_id, sum(amount_cents) as paid_cents
    from payments
    group by order_id
), shipments_at_order_grain as (
    select order_id, count(*) as shipments
    from shipments
    group by order_id
)
select o.order_id, p.paid_cents, s.shipments
from orders as o
left join payments_at_order_grain as p on p.order_id = o.order_id
left join shipments_at_order_grain as s on s.order_id = o.order_id
with payments_at_order_grain as (
    select order_id, sum(amount_cents) as paid_cents
    from payments
    group by order_id
), shipments_at_order_grain as (
    select order_id, count(*) as shipments
    from shipments
    group by order_id
)
select o.order_id, p.paid_cents, s.shipments
from orders as o
left join payments_at_order_grain as p on p.order_id = o.order_id
left join shipments_at_order_grain as s on s.order_id = o.order_id

44. How do you model late-arriving changes in an incremental dbt model?

Use a bounded lookback, stable change feed or other reliable source policy that captures updates after the original processing window. Design matching and deduplication so revisiting a window is safe.

Reprocess recent modified records and merge by a verified event or order key. Choose the lookback from actual lateness and add a broader reconciliation path for updates beyond that window.

45. What are common incremental strategies in dbt?

Strategies can include appending, merging or replacing selected rows or partitions, depending on the adapter and model. Each makes different assumptions about record identity, cost and corrections.

Append fits immutable unique events if duplicates are handled elsewhere. Partition replacement suits outputs rebuilt by time slices, but only when the selected partitions fully describe the intended corrections.

46. When is an incremental model unsuitable?

Avoid it if changed input cannot be identified correctly, if logic requires global recomputation, or if it adds complexity without measurable value. Consider table rebuilds, partition-level models or different architectures.

A rapidly changing unique-dimension rule may affect every historical fact. Updating only yesterday’s rows could leave inconsistent results when a complete rebuild is affordable and more trustworthy.

47. How do you test full and incremental execution paths?

Use fixtures and target states that exercise both the initial build and later updates, including late rows and duplicate inputs. Compare against a full recomputation where relevant.

Start from a known prior target, apply an update and rerun it to check idempotency. Then compare keyed rows and totals to a clean build instead of only verifying that each command exited successfully.

48. How can schema changes affect a dbt incremental model?

An adapter and model settings decide what schema changes are accepted, synchronized or rejected. Adding a column does not necessarily backfill values for historical rows already in the target.

A new tax attribute might appear for recent rows only unless the team explicitly backfills it. Verify downstream compatibility and document how older partitions should behave before exposing the field.

49. How do you choose a unique_key for a merge?

Choose the identity for one logical output row, including composite fields where needed and supported. Check null treatment, source duplicate behavior, and whether the identity changes when the row is corrected.

A daily product metric may use business date and product ID, not the latest ingestion timestamp. Test the natural key and ensure model logic collapses conflicting candidates deterministically.

50. How do you handle upstream deletes in incremental models?

Use explicit deletion events, observed reconciliation or supported partition replacement consistent with business requirements. A filter for changed rows will not discover disappeared inputs by itself.

If a catalog record is deleted, a regular merge may leave stale target rows. Add a soft-delete flag or approved deletion-aware replacement and verify downstream consumers handle that state.

51. What is the difference between a loaded_at field and an event timestamp?

Loaded-at measures when data reached the platform, while event time describes when the business event happened. They can diverge and support different freshness, filtering and ordering decisions.

A late sale can arrive today with yesterday’s event time. Use loading metadata for ingestion freshness and choose a deliberate logic for assigning it to an analytical reporting period.

52. How do you handle freshness checks that are too noisy?

Align thresholds with real delivery schedules and distinguish expected gaps from harmful delay. Use source classification, warning thresholds and critical consumer freshness rather than silencing all checks.

A batch source may not update overnight by design. Monitor its delivery deadline and reconcile the expected batch instead of paging each hour based on a generic table timestamp.

53. How does a timestamp snapshot strategy differ from a check strategy?

A timestamp strategy uses an appropriate update timestamp to detect changes. A check-style strategy compares configured fields under its contract. Both depend on a stable key and observed input state.

Use an update time when it reliably changes for meaningful records. Without one, compare selected attributes, considering database cost and which field changes should create a new history row.

54. How do you decide which rows a dbt snapshot can recover?

A snapshot reflects the source states it observed, not arbitrary prior transitions. Retention, sampling frequency, stable identifiers and upstream deletion behavior determine what historical questions it supports.

If an account changes two times between daily snapshots, one intermediate value can be absent. Use an appropriate change log when every state transition must be recoverable.

55. How should dbt handle slowly changing dimension history?

Choose the required temporal model, stable business identity and validity interval semantics. Align the fact join with event date or reporting definitions rather than linking each historical fact to the current dimension blindly.

A transaction can retain the region in effect at its purchase time. Test interval boundaries and overlapping validity for the same key so a fact does not match two historical records.

56. What is a dbt model contract?

A model contract states an expected output structure that dbt can enforce where the materialization and adapter support it. It does not replace semantic tests for grain, completeness or correctness.

A published mart can declare columns and types so unexpected shape changes are rejected. A valid decimal revenue column can still calculate the wrong total, so use reconciliation and domain assertions too.

57. When should you version a dbt model?

Version it when multiple consumers need a stable contract and an incompatible change cannot be coordinated instantly. Define migration, evidence of adoption and a retirement date or policy.

A finance model changing currency semantics can publish a new version. Keep old behavior only as long as supported consumers require it and test both releases against clear definitions.

58. How do you write a useful dbt unit test fixture?

Use small, readable inputs covering the branch or boundary the model should implement. Assert the relevant outputs and avoid reproducing the entire production dataset in unit form.

A refund test can include one paid order, one full refund and one canceled order. Check expected net amounts and event timing explicitly rather than asserting that output has some rows.

59. How do warning and error severity affect dbt tests?

Tests can apply configured thresholds and severity, producing different outcomes depending on project and invocation policies. Use severity to reflect risk and make expected follow-up explicit.

Missing rows in a critical dimension may need to block related publication. A minor documentation metric can warn without stopping the entire DAG, but it still needs an owner and review policy.

60. How do you debug a failing relationships test?

Inspect failing keys and the particular relation versions being compared. Check types, grain, source timing, expected exceptions and whether the missing link is a true data problem.

Guest transactions may intentionally lack a customer key. An incorrect date filter can also remove relevant customers, so do not simply exempt all records to make the test pass.

61. How do you store failing dbt test rows responsibly?

Persist only the diagnostic rows needed and ensure target access, data sensitivity and retention are appropriate. Check the supported test storage behavior and consider redacting or limiting payloads.

A uniqueness failure report may only need the duplicated key and count. Avoid saving whole customer profiles into widely accessible diagnostic schemas because the original relation had richer fields.

62. When are reconciliation tests better than simple counts?

Use reconciliations when correctness requires comparing totals, sets, balances or end-to-end business outcomes. Counts alone can remain unchanged while values or identities are wrong.

A sales table can show the expected number of orders but double one order’s amount. Compare partitioned totals with an authoritative source and preserve useful details about differences.

63. How do you build a custom generic dbt test?

Create a reusable test definition with a clear assertion, validated inputs and a query returning failing rows. Configure it only where the same business rule truly applies.

A generic nonnegative count test can apply to several aggregates. If one measure legitimately allows corrections below zero, use a different rule rather than ignoring false positives globally.

64. How do you debug a dbt macro across adapters?

Inspect rendered SQL and the selected adapter behavior under representative inputs, then isolate platform-specific branches. Ensure the common interface and supported semantics are documented.

A date conversion can differ in timezone handling or available functions. Add fixture comparisons on each supported platform rather than assuming matching SQL shapes produce identical results.

65. What is dbt adapter dispatch used for?

Dispatch supports selecting appropriate macro implementations by adapter or configured search rules. Use it to express platform-specific behavior while keeping a stable common interface.

A date helper can share one public call and use warehouse-specific implementations underneath. Verify override precedence and contract so a package update cannot silently change meaning.

66. What is the role of variables in dbt commands?

Variables pass supported configuration values into project expressions. Validate their scope and defaults and do not use them as an uncontrolled way to choose production data or inject arbitrary SQL.

A backfill variable can specify a bounded date range after validation. An omitted or malformed value should fail safely rather than silently causing a full rebuild.

67. Why should warehouse credentials differ across dbt environments?

Separate credentials and schemas reduce the risk of accidental production writes and make auditing clearer. Use the least privilege needed for the work and confirm which target the command actually uses.

A developer can read approved source samples but only write to their own schema. The production job uses a separate identity and explicit permissions, not credentials copied into local configuration.

68. How do you use dbt state selection?

State selection compares a project with a prior manifest using supported criteria so you can select changed or otherwise related resources. Choose the baseline carefully and validate its applicability.

Select modified models and dependents for a proposed change, but recognize external source data may change without a new project manifest. Diff-based CI complements live data checks rather than replacing them.

dbt ls --select 'state:modified+' --state path/to/baseline-artifacts
dbt ls --select 'state:modified+' --state path/to/baseline-artifacts
dbt ls --select 'state:modified+' --state path/to/baseline-artifacts

69. What does defer do in dbt?

Defer can resolve some references to existing relations from a state manifest under documented conditions. It reduces unnecessary rebuilding but can mix local and baseline data unless the environment is deliberately designed.

A CI build can focus on modified resources and reuse trusted unchanged upstream tables. Review tests that span both environments so differences do not create misleading failures or passes.

70. What is Slim CI in a dbt workflow?

Slim CI is a selective validation pattern that focuses on changed resources and relevant dependencies, often using a prior manifest and defer. Its safety depends on correct baseline, selection and resource boundaries.

Build modified models and downstream evidence in an isolated schema. Schedule broader validation for cases the selection cannot capture, such as new source patterns or wider adapter upgrades.

71. What is manifest.json in a dbt project?

It is a project artifact containing parsed resource and dependency metadata under a documented schema version. It supports lineage, state selection and integrations rather than representing warehouse data or guaranteed freshness.

A pipeline can retain the production manifest for comparison. Store it with release identity and verify compatibility with the dbt version using it, instead of reusing an arbitrary older file.

72. What is run_results.json used for?

It records execution results and relevant timing or status for resources in a dbt invocation. It supports diagnostics and reporting, but not every expected business partition can be inferred from it.

A pipeline can identify that a specific model or test failed and link the invocation. Independently confirm whether the consumer-visible table was refreshed and whether downstream work remains blocked.

73. How can dbt model hooks create hidden side effects?

Hooks can execute additional SQL or supported operations as part of resource lifecycle. Make their scope, ordering, transaction behavior and restart semantics explicit to avoid unexplained state changes.

An audit hook might log a run identifier, but a side-effecting hook can be replayed on retries. Keep it idempotent or choose a separate controlled job for consequential operations.

74. When should you materialize an intermediate dbt model?

Persist it when repeated computation, operational observability or predictable predicates justify storage and refresh cost. Keep tiny one-use transformations inline or ephemeral when that simplifies maintenance.

An expensive shared join powering several marts can benefit from persistence. Measure workload, freshness and downstream costs instead of assuming every reusable model should be a table.

75. How do you inspect dbt’s warehouse cost?

Measure warehouse query history, data scanned, concurrency and model timings, associating work with models and runs where possible. Compare representative builds rather than counting models as equivalent cost units.

One incremental model can still scan a very large target during a merge. Inspect compiled predicates and physical partition behavior before tuning the number of threads.

76. How do you choose dbt thread settings?

Choose concurrency based on dependency graph parallelism, platform quotas and competing workloads. More threads can shorten a build only if warehouse and connection capacity support them.

A broad graph may run independent models in parallel. During peak business queries, the higher fan-out can increase queue time enough to slow both users and the dbt job.

77. How do you backfill a selected set of dbt models?

Confirm the affected downstream scope, target and permitted historical range, then use safe incremental replay or full refresh as appropriate. Verify durable output and dependencies before widening.

A historical fix may touch only some fact partitions plus daily aggregates. Preview selection and test a canary range rather than running a project-wide rebuild reflexively.

78. How do you validate partitioned dbt outputs?

Check expected partitions, keys, counts or reconciliation metrics for each relevant time range, and ensure the partition boundary matches data and business timezones. Make missing partitions visible explicitly.

A dashboard’s latest partition can appear valid while the prior two are blank. Compare a generated expected range against the actual warehouse target and track delayed or incomplete sources separately.

79. How should dbt projects test access to important marts?

Verify intended roles, schemas and authorized queries independently of successful materialization. Test that an unauthorized role or environment cannot see restricted data, using approved synthetic contexts.

A production model can build successfully while a dashboard role lacks usage permission. A smoke check with the expected reader is stronger evidence than a developer querying as an administrator.

80. What exercise tests intermediate dbt skill?

Ask the candidate to build or reason through an incremental model with a declared grain, a late update and a failing data test. Require an expected result and evidence of replay behavior.

Use one refund arriving after the initial orders build. A strong answer chooses a stable key, tests replay against a clean computation and explains how to prevent double-counted revenue.

dbt Interview Questions and Answers for Experienced

Review trade-offs involving business data, model compatibility, cost and recovery.

81. How would you structure a dbt project used by several teams?

Define domains, modeling layers, public contracts, resource ownership and versioning. Centralize conventions where helpful, while letting teams own the meaning and reliability of their outputs.

Finance and marketing can share an approved order mart but maintain distinct downstream metrics. Specify who owns model changes, who reconciles differences and how consumers learn about migration.

82. How do you separate analytics models from authoritative operational data?

Treat dbt outputs as derived unless a deliberately owned contract says otherwise. Document update frequency, transformation logic, correctness and whether the result is suitable for a real-time decision.

A daily revenue mart can support reporting, but a payment authorization should use the relevant transactional source. Do not let a conveniently joined warehouse model become a silent source of operational truth.

83. How would you design dbt modeling for events with several timestamp meanings?

Name event, processing, loading and business timestamps explicitly and set the timezone and partition semantics. Choose the correct timeline for each metric and validate boundary cases.

Sales reporting may assign rows to purchase date, while freshness measures ingestion delay. A refund received tomorrow may need both current processing and correction of an earlier business period.

84. How do you manage finance metric definitions across dbt projects?

Use a reviewed source of truth for grain, currency, refund, recognition and reporting-window definitions. Publish consistent contracts and tie lineage and reconciliation to ownership.

One dashboard may count gross bookings while another reports recognized net revenue. Clear distinct names and a ledger comparison prevent teams from treating different metrics as disagreements about the same fact.

85. How would you diagnose a model with correct counts and incorrect totals?

Compare keys, distributions, joins, null policy, units and partition-specific sums against trusted inputs. Isolate the first stage where the measure diverges rather than relying on end-stage row counts.

Two negative adjustments can be dropped while two duplicate positive records replace them. Data still has the expected size, so compare keys, outcome classes and monetary sums separately.

86. How would you find an unexpected fan-out in a dbt DAG?

Identify altered upstream grains and inspect join cardinality at each transformation. Compare expected and observed relation sizes and measure deltas with representative cases rather than adding late distinct operations.

A customer dimension can contain two active history rows after a snapshot anomaly. Fix the validity rule and confirm which facts were affected instead of concealing duplicate matches at the final mart.

87. How do you design a robust incremental reconciliation process?

Run a periodic independent check of expected keys and aggregates against a trusted source or full recomputation definition. Define bounded repair and record the affected date range and model version.

A monthly audit can compare a full calculation for sampled partitions against the incremental relation. If divergence appears, determine whether lateness, deletion or changed business logic caused it before replay.

88. How do you decide between incremental merge and partition replacement at scale?

Compare update locality, available stable keys, concurrency, cost and adapter capabilities. Choose the operation that can restore correctness for the relevant unit with predictable resource usage.

If most corrections affect a few whole partitions, replacing those partitions may avoid expensive record-level matches. If updates touch sparse records across a wide range, a well-pruned merge may fit better.

89. How do you design a safe maximum timestamp filter?

Treat the maximum as an observed checkpoint, not proof every older row arrived. Include a bounded overlap, version criterion or source completeness evidence and ensure matching makes rereads safe.

Rows emitted out of order can arrive with an older update time than the maximum already present. A deterministic overlap and durable reconciliation are safer than strict greater-than maximum filtering alone.

90. How would you test an incremental model for duplicate source records?

Use fixture data containing repeated keys, differing event versions and late corrections. Verify a deterministic selection rule and compare the final target after repeating the same input.

If two updates share a timestamp, add a stable event sequence or tie-breaker matching the business source. An arbitrary first row can change across runs and make published data unstable.

91. How do you handle null keys in dbt merge logic?

Define whether null is invalid or has a meaningful identity and choose stable input validation and adapter-compatible matching semantics. Default merge behavior may not match nulls as callers expect.

Reject missing transaction IDs before building a one-row-per-transaction model unless another approved unique key exists. A silent fallback value might collapse unrelated records into one row.

92. How would you manage schema evolution for an important published mart?

Identify dependent models and external consumers, test structural and semantic contract changes, and choose an additive or versioned transition. Verify long-lived consumers before retiring older fields.

Change a price column only after clarifying currency and downstream meaning. An additive explicitly named replacement can let callers migrate without breaking existing reports abruptly.

93. How do you keep dbt model contracts and warehouse constraints aligned?

Document which constraints dbt validates and what the adapter or warehouse enforces. Use both appropriately and test actual data where declarations may be informational or not supported.

A uniqueness constraint declared in metadata may not prevent duplicates on every warehouse. Keep a data test for the business key and validate how writes and query access behave in the intended environment.

94. How would you design model access boundaries in dbt?

Define an intentional public surface and keep internal model details private according to supported project configuration, permissions and organization conventions. Separate lineage visibility from actual data-access enforcement.

Partner teams may consume a reviewed customer summary, not raw personal records. Apply warehouse permissions and validate model-facing usage separately instead of relying only on one project setting.

95. How do you decide what to publish from dbt as reusable public data?

Publish when the grain, ownership, reliability and semantics are stable enough to support others. Provide documented expectations and test contracts rather than exposing every intermediate relation.

A trusted order mart can serve several downstream domains. An experimental helper with implementation-specific temporary columns should remain internal until its contract is ready.

96. How would you use lineage during an incorrect data incident?

Trace the affected model and versions upstream to the first incorrect input and downstream to all known consumers. Validate additional dependencies from usage evidence because lineage may be incomplete.

A refund error can affect dashboards and exports beyond the recorded project graph. Scope and communicate which partitions and consumers need reconciliation with appropriate ownership.

97. How do you design dbt observability for business users?

Monitor consumer-visible freshness, completeness and core reconciliation, then link them to invocation, model and warehouse evidence. Keep technical success distinct from whether the output is ready for use.

A dataset can have a green build but omit one region due to a late file. Report partial readiness or block dependent publication according to the actual business contract.

98. How would you diagnose slow dbt build performance?

Analyze the graph critical path, warehouse queueing, query plans and input volume before tuning. Compare compiled SQL and distinguish a single expensive model from many independent queries competing for capacity.

An ephemeral expression may be repeated across downstream models. Measure the cost and consider materializing that intermediate result only after verifying it dominates the actual workload.

99. How would you avoid dbt competing with peak BI traffic?

Use workload scheduling, resource isolation or warehouse capacity controls appropriate to the platform. Set model and backfill concurrency with attention to user-facing query deadlines.

A daily batch can begin before dashboards open, and large backfills can use a bounded separate workload. Verify BI tail latency and model freshness rather than optimizing only dbt completion time.

100. How do you decide whether to use separate dbt jobs for several domains?

Separate jobs when ownership, data freshness, failure or capacity boundaries differ, but preserve explicit dependencies and timestamps between them. Avoid repeatedly rebuilding the same large common models without need.

A daily finance mart may need a complete source snapshot while marketing refreshes hourly. Schedule and document their shared base relation’s availability so the jobs do not rely on accidental order.

101. How should a dbt build respond when one source is late?

Use a declared readiness policy that stops affected consumers or marks outputs provisional, depending on the use case. Do not let unrelated domains fail if their inputs are independent.

A missing payments file should block reconciled revenue publication. Users can still receive a healthy catalog report if it does not depend on that source and the distinction is visible.

102. How do you maintain temporal consistency between independently refreshed models?

Define what data version or time boundary each consumer expects, and align materialization and event selection to it. Add validation rather than assuming sequential jobs see the same input snapshot.

Join finance tables using a common business date or snapshot marker. If one table updated mid-build, the resulting mart may otherwise combine incompatible versions despite successful SQL.

103. How do you avoid unreliable dbt tests in a mixed CI and production state?

Know which references defer and which resolve to CI, and make tests with cross-environment assumptions explicit. Use consistent synthetic or protected data for behavior checks when merged states would distort results.

A relationships test may compare a new local model with an unchanged baseline relation from another environment. If IDs or freshness differ, use a coherent fixture or rebuild both sides for that assertion.

104. How would you manage dbt state artifacts across releases?

Store an identified manifest and relevant results independently of working output, record runtime and target context, and select a trusted comparison baseline. Do not overwrite state input accidentally with current artifacts.

A production manifest can represent the actual last successful deployment. A partial test run’s manifest may be syntactically valid but not the basis for deciding which production models can be deferred.

105. How do you interpret dbt state changes caused by macro edits?

A macro change can affect models using it directly or indirectly, depending on state selection and support. Inspect the resulting selection and representative compiled SQL instead of assuming only one source file changed logically.

A rounding macro can change many finance outputs. Validate downstream impact and choose safe canary or reconciliation, even if the source diff appears very small.

106. How would you organize testing for a frequently changing warehouse source?

Use clear source schemas and signals, test expected boundaries and add representative unit fixtures that encode accepted variation. Coordinate compatibility when source ownership crosses teams.

If an order event adds a status, explicitly confirm how marts interpret it. A data test that only checks non-null cannot catch newly unsupported states affecting report definitions.

107. How do you manage package or adapter upgrades in dbt?

Pin versions, review relevant changes, compile representative models and test target-specific behavior. Roll out to an isolated environment and compare both outputs and resource use before moving production.

An adapter update can change merge behavior or SQL generation. Use a controlled checkpoint with late events and verify existing model materialization and test results match intended semantics.

108. What should a dbt project do when a model cannot be built atomically?

Understand the adapter’s replacement behavior and readers’ expectations. Consider staging and verifying a version before an approved switch, or publish an explicit readiness marker with rollback options.

A large report table might be inaccessible or partially updated during a destructive replacement. A separate candidate relation can let business users keep reading the older verified output until the new one is ready.

109. How do you handle data model rollback after a semantic change?

Separate reverting code from correcting materialized data already produced. Determine affected partitions and downstream reports, then recompute or restore from an approved verified state.

Reverting a revenue formula does not change existing incorrect historical outputs until rebuilt or repaired. Compare recovered results with the ledger and communicate remaining exposure through the owning team.

110. How would you run a large historical dbt backfill without impacting consumers?

Plan a bounded, resumable historical run with resource isolation and independent output verification. Keep consumers on an approved consistent relation until the corrected data is ready if the architecture allows.

Canary several partitions, compare business totals, then expand at a controlled rate. Preserve current workload capacity and document which ranges are complete rather than reporting a partially rebuilt table as final.

111. How do you make model logic explainable to non-engineers?

State the grain, business inputs, examples, edge conditions and intended use in plain language. Keep the explanation tied to tests and ownership rather than relying on complex SQL as its only documentation.

For active customers, describe the qualifying activity window and how refunds or cancelled accounts are treated. A simple example can reveal an ambiguity before it becomes a dashboard dispute.

112. How do you distinguish metric correctness from warehouse availability?

Warehouse availability concerns whether the platform can serve queries. Metric correctness concerns whether results follow expected semantic and data invariants; normal operation can still yield incorrect analytics.

After a change, dashboards may load quickly yet show duplicate revenue. Investigate source and model versions and reconcile totals instead of declaring the incident over because queries return.

113. How would you design a reconciliation alert with useful thresholds?

Define which difference is acceptable, how to compare time windows and currencies and whom to route meaningful exceptions to. Retain enough safe context to diagnose the violation.

A one-cent rounding difference may be expected while a missing order is not. Break down mismatches by partition and business category so responders can identify the first actionable issue.

114. How do you keep dbt-generated SQL maintainable?

Prefer focused intermediate models, clear names and transparent macros. Review generated SQL and query plans for complex abstractions, and keep adapter-specific behavior isolated rather than sprinkled across models.

A macro abstracting business dates can be useful. A nested template generating most business logic from hidden variables may be harder to review than a set of explicit tested models.

115. How do you compare several dbt materialization strategies objectively?

Run the same representative data and consumers through eligible strategies and compare build cost, query cost, latency and recovery. Include failure behavior and freshness, not just a single fast query.

An incremental model may win on daily compute but make historical corrections expensive. A table rebuild could be better for a small relation that changes broadly and must be reliably reconciled.

116. How would you design recovery for corrupted dbt outputs?

Identify the affected interval, sources, model version and consumers, isolate further publication if needed and restore or rebuild from trusted inputs. Verify corrected business results before sending status changes.

If a duplicate join inflated monthly balances, sample and reconcile corrected versions before switching consumers. Preserve evidence and ensure automated retries do not republish the known-bad transform.

117. How do you review dbt changes for privacy and data minimization?

Check which fields are collected, joined, exposed and retained across models and diagnostics. Apply appropriate warehouse policy and document the approved use instead of keeping everything for hypothetical downstream consumers.

A report may need aggregate counts without customer identifiers. Remove unnecessary raw fields before publishing and inspect failing-test outputs so hidden diagnostics do not reintroduce exposure.

118. How do you evaluate a migration from ad hoc SQL to dbt?

Compare reproducibility, ownership, monitoring and metric consistency before and after. Move one meaningful workflow while preserving semantics and validate its outputs against the existing source during transition.

Migrating a vital weekly report can show whether review and reconciliation improve. Avoid copying hundreds of queries without documenting owners, dependencies and the actual result each report expects.

119. What should a dbt production-readiness review include?

Review grain, contracts, tests, freshness, role access, resource cost, deployment and rollback. Confirm downstream usage and data verification so a successful run is not the only approval criterion.

A finance model should demonstrate correct known totals, supported historical logic and meaningful failure reporting. An isolated daily build does not prove consumers can query or recover its outputs safely.

120. What senior dbt interview exercise tests real judgment?

Give a candidate an incremental revenue mart with duplicate events, one late refund and an inconsistent downstream total. Ask them to diagnose grain and timing, plan repair and show evidence it worked.

Strong answers distinguish source freshness from completeness, explain an idempotent replay and verify the corrected partition against a trusted reference before changing what users see.

dbt Documentation and Further Reading

These primary dbt sources describe project behavior and supported concepts. Check runtime and warehouse adapter support for configuration, tests and SQL syntax.

Team Sherlock.sh

Building fraud intelligence for live high-stake video interactions (financial discussions, hiring interviews, board meeting etc).

Catch candidate fraud before it costs you.

Sherlock AI helps you detect AI-assisted, proxy, and deepfake candidates, so every hiring decision is backed by evidence.

Ask AI about Sherlock.sh

Similar Posts