Recall & Review
beginner
What is a model in dbt?
A model in dbt is a SQL file that contains a SELECT statement. It defines a dataset that dbt will build as a table or view in your data warehouse.
Click to reveal answer
beginner
How do you create your first model in dbt?
To create your first model, write a SQL SELECT query in a .sql file inside the 'models' folder of your dbt project. Then run 'dbt run' to build it in your warehouse.
Click to reveal answer
beginner
What command do you use to build models in dbt?
You use the command 'dbt run' to execute all models and build tables or views in your data warehouse.
Click to reveal answer
beginner
Where do you place your SQL files for models in a dbt project?
You place your SQL model files inside the 'models' directory of your dbt project folder.
Click to reveal answer
beginner
What does dbt do when you run 'dbt run'?
dbt compiles your SQL models, runs the queries against your data warehouse, and creates tables or views based on your model definitions.
Click to reveal answer
What file type do you use to create a model in dbt?
✗ Incorrect
Models in dbt are written as SQL SELECT statements saved in .sql files.
Which command builds your models in dbt?
✗ Incorrect
'dbt run' compiles and runs your models to create tables or views.
Where do you save your model files in a dbt project?
✗ Incorrect
The 'models' folder is where you place your SQL files for dbt models.
What does a dbt model contain?
✗ Incorrect
A dbt model is a SQL file with a SELECT statement defining the data to build.
What happens when you run 'dbt run'?
✗ Incorrect
'dbt run' builds your models by running their SQL queries in the warehouse.
Explain the steps to create and build your first model in dbt.
Think about writing SQL, placing it in the right folder, and running a command.
You got /3 concepts.
What is the role of the 'models' folder in a dbt project?
Where do you put your SQL queries for dbt to build?
You got /3 concepts.