Describe the role of dbt in a modern analytics stack

Tests your grasp of modern ELT patterns. A good answer explains how dbt uses SQL for in-warehouse transformations, enabling software engineering practices like version control and testing. A red flag is confusing dbt with a full ETL tool or an orchestrator.
What's really being asked
This question probes your understanding of the modern data stack's architecture, specifically the shift from ETL to ELT. The interviewer wants to see if you can articulate the value of separating the transformation step and applying software engineering discipline (version control, testing, CI/CD, documentation) to analytics code. It's a test of your knowledge of current best practices in data engineering and analytics.
The full answer
A strong answer will cover four key points. First, define dbt's role as the 'T' (transformation) in an ELT (Extract, Load, Transform) paradigm, clarifying that it operates after raw data is already loaded into a data warehouse. Second, explain its core philosophy: empowering analysts and engineers to write modular, reusable data models using SQL, enhanced with Jinja for templating. Third, contrast this with traditional ETL scripts, which often mix extraction, transformation, and loading logic in a single, monolithic script, making them brittle and hard to maintain. Fourth, differentiate it from orchestrators like Airflow; Airflow is for scheduling and managing dependencies between tasks (it can run a dbt job), whereas dbt is for defining the transformation logic and dependency graph within the data models themselves.
The mistakes people make
A major red flag is describing dbt as a complete ETL tool that handles extraction and loading. This shows a fundamental misunderstanding of the ELT pattern. Another common mistake is equating dbt with a workflow orchestrator like Airflow or Prefect. Saying 'dbt replaces Airflow' is incorrect; they are complementary tools, where Airflow often orchestrates dbt runs as part of a larger pipeline. Finally, a weak answer just says 'it lets you write SQL' without explaining the surrounding framework of testing, documentation, and version control that provides the real value.
What usually comes next
Be prepared for follow-ups like: 'How would you integrate dbt into a CI/CD pipeline?', 'When would you not use dbt, and choose a Python-based transformation tool like Pandas or Spark instead?', or 'Describe how you would structure a dbt project for a new business unit.'
A concrete example
Instead of a complex Python script that pulls from an API, transforms data in memory with Pandas, and then writes to a database, the modern approach is different. An ingestion tool like Fivetran (E+L) loads raw API data directly into a Snowflake warehouse. Then, dbt (T) runs a series of SQL models inside Snowflake to clean, join, and aggregate this raw data into a final fct_user_sessions table. This dbt project is stored in Git, has automated tests to check for null user_ids, and is run on a schedule by an Airflow DAG.
Interview question
How does dbt's role primarily differ from a workflow orchestrator like Airflow in a modern data pipeline?
- a.dbt defines transformation logic and data model dependencies, while Airflow schedules and manages the execution of entire workflows, which can include dbt jobs.Correct
- b.dbt compiles SQL transformations into Python scripts, while Airflow executes those scripts according to a schedule.
- c.dbt and Airflow are interchangeable tools for running SQL transformations; dbt is simply a more modern version of Airflow.
- d.dbt is used for extracting raw data from sources, while Airflow is responsible for loading and transforming it in the warehouse.
Why? this is the answer
dbt's core function is defining the transformation logic within a data warehouse (the 'T' in ELT), while Airflow orchestrates the execution schedule of various tasks, which can include a dbt run. The most tempting distractor is that they are interchangeable, but they are complementary tools that operate at different levels of abstraction.
Just read this? Test yourself on what you have been reading.
Read the original → docs.getdbt.com
- #dbt
- #elt
- #data modeling
- #analytics engineering
You just looked this up. Could you explain it out loud?
That is the part interviews actually test. Tezvyn takes questions like this one and gives you what the interviewer is really checking, the answer that lands, and the mistake that ends the conversation, in the four minutes before your next meeting.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Every open role lists the topics its interview covers, so you can prepare for the real thing rather than guessing.
See open roles