Skip to main content
InterviewHubPRO
Section Overview
Q2

Question 2 of 50

Part 1: dbt Core Concepts & Fundamentals (Junior / Entry-Level)

4%
dbt Analytics Engineering (50 Qs)•Part 1: dbt Core Concepts & Fundamentals (Junior / Entry-Level)

Explain the standard anatomy of a dbt project.

junior Leveldbtdbt Core Concepts

In Simple Words: A dbt project is a directory of SQL, YAML, and Jinja files governed by dbt_project.yml:

  • dbt_project.yml: The central configuration file specifying project name, version, materializations, and model configurations.
  • models/: The core directory containing SQL transformation models (often organized into staging/, intermediate/, and marts/).
  • seeds/: CSV files containing static lookup data (e.g. country codes, tax brackets) loaded with dbt seed.
  • snapshots/: SQL files defining Slowly Changing Dimensions (SCD Type 2) history tracking.
  • tests/: Custom SQL queries verifying data integrity rules.
  • macros/: Reusable Jinja functions (like custom functions in code).
  • analyses/: Ad-hoc SQL queries that dbt compiles but does not materialize in the warehouse.