hands-on lab

Best Practices for Organizing dbt Models

Difficulty: Advanced
Duration: Up to 1 hour and 15 minutes
Students: 138
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

If you are using dbt and working with a new or existing project, having a guideline to follow in order to create and organize your models is very important. This is crucial if your dbt project becomes bigger and bigger. In this scenario, having a weak project's structure could cause your project to become very hard to understand and work on.

When working with dbt models, you should know three main model types: staging (also named base), intermediate, and marts. In a small dbt project, you could not hear about intermediate models because few intermediate transformations and modeling need to be performed.

In this lab, you will understand what the three model types mentioned above mean, you will then create some dbt models and organize them following the best practices. You will finally build the dbt project to get the models built.

Learning Objectives

Upon completion of this lab, you will be able to:

  • Understand the main dbt model types
  • Organize dbt models following best practices

Intended Audience

  • Data analysts that need to organize a dbt project in a clear way
  • Developers that need to work on existing dbt projects

Prerequisites

To get the most from this lab, you should have basic knowledge of dbt. To get ready, you can use the following labs:

Covered topics

Lab steps

Understanding the Main dbt Model Types
Connecting to the dbt Web IDE
Creating dbt Staging Models
Creating dbt Intermediate Models
Creating dbt Marts Models
Building Your dbt Project