dbt interview questions
100 Data Engineering practice questions. Read what a strong answer covers, then practise it out loud against the clock.
Practise dbt questionsBeginner
- Accepted values test fails on new status
- Built-in generic tests
- Dashboard showed yesterday's data
- Dashboard slow on a chain of views
- dbt compile and the target folder
- dbt materializations
- dbt packages
- dbt run vs dbt build
- Debugging a SQL compilation error
- Dev and prod numbers don't match
- Documentation in dbt
- Full table rebuild every day
- Grants lost after rebuild
- Hard-coded table names in models
- Jinja in dbt
- Nobody knows what columns mean
- Onboarding a new source table
- Profiles and targets
- Running only what you changed
- Same logic copied in many models
- Seed dropping leading zeros
- Seeds and when to use them
- Setting up a new joiner
- Source freshness checks
- Sources in dbt
- Staging, intermediate and marts layers
- Tracking product price history
- Unique test failing on primary key
- What dbt is and why teams use it
- What is a dbt model
- What macros are
- What snapshots do
- Why use ref instead of table names
- Works in dev, fails in prod
Intermediate
- Analyses folder
- Backfilling one month in an incremental model
- CI taking 45 minutes per pull request
- Dev and CI schemas piling up
- Exposures
- Facts with missing dimension keys
- Folder-level configs and tags
- Handling PII in dbt models
- Hooks in dbt
- How incremental models work
- Incremental model creating duplicates
- Incremental model missing late records
- Incremental strategies
- Managing grants in dbt
- Migrating stored procedures to dbt
- Model contracts
- Model ran before its input was ready
- New column missing in incremental table
- Node selection syntax
- on_schema_change for incremental models
- Python models in dbt
- Setting up CI/CD for dbt
- Singular vs generic tests
- Snapshot capturing fake changes
- Snapshot timestamp vs check strategy
- Surrogate keys in dbt
- Test fails in the nightly job
- Test severity, thresholds and storing failures
- Tests making runs slow and expensive
- Two teams, two revenue numbers
- Upstream renamed a column
- Variables and environment variables
- When ephemeral models hurt
Experienced
- Breaking change on a widely used model
- Controlling changes to finance models
- Custom materializations
- dbt clone
- dbt Mesh and cross-project refs
- dbt retry and partial reruns
- dbt runs costing too much warehouse credit
- dbt Semantic Layer
- Deleted customers still showing as active
- Designing a data quality framework with dbt
- Handling hard deletes in snapshots
- Hourly and daily jobs colliding
- Impact analysis before dropping a column
- Incremental merge getting slower over time
- JSON source changing shape in dbt
- Late data and idempotency with microbatch
- Microbatch incremental strategy
- Model access, groups and versions
- Numbers changed overnight with no code change
- Orchestrating dbt in production
- Overriding generate_schema_name
- Risks of full refresh on incremental models
- Same logic for five regional sources
- Slim CI with state and defer
- Speeding up a slow dbt project
- Splitting a 1500-model monolith
- Testing incremental logic before prod
- The dbt Fusion engine
- Two-year microbatch backfill with a failing day
- Unit tests in dbt
- Upgrading dbt versions safely
- Users seeing half-built data
- Validating a refactor with audit_helper