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 thetarget/compileddirectory without running them against the warehouse.
Node Selection Syntax (--select / -s):
dbt run -s fct_orders: Runs onlyfct_orders.dbt run -s +fct_orders: Runsfct_ordersand all its upstream parents.dbt run -s fct_orders+: Runsfct_ordersand all its downstream children.dbt run -s tag:finance: Runs all models labeled with thefinancetag.