Skip to main content
InterviewHubPRO
Section Overview
Q10

Question 10 of 50

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

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

Explain core dbt CLI execution commands and Node Selection syntax.

junior LevelCLI

In Simple Words:

  • dbt run: Executes and builds models in the warehouse.
  • dbt test: Runs all generic and singular tests.
  • dbt build: The modern unified command that runs models, tests, snapshots, and seeds in DAG dependency order (stops downstream models if an upstream test fails).
  • dbt compile: Compiles Jinja templates into raw SQL in the target/compiled directory without running them against the warehouse.

Node Selection Syntax (--select / -s):

  • dbt run -s fct_orders: Runs only fct_orders.
  • dbt run -s +fct_orders: Runs fct_orders and all its upstream parents.
  • dbt run -s fct_orders+: Runs fct_orders and all its downstream children.
  • dbt run -s tag:finance: Runs all models labeled with the finance tag.