Challenge - 5 Problems
dbt Project Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate2:00remaining
What is the output of the dbt command?
You run the command
dbt init my_project in your terminal. What is the expected outcome?dbt
dbt init my_project
Attempts:
2 left
💡 Hint
Think about what the 'init' command does in dbt.
✗ Incorrect
The 'dbt init' command creates a new project directory with starter files to help you begin your dbt project.
🧠 Conceptual
intermediate1:30remaining
What is the purpose of the profiles.yml file in dbt?
After initializing a dbt project, you see a file named
profiles.yml. What is its main role?Attempts:
2 left
💡 Hint
Think about where dbt needs to connect to run your models.
✗ Incorrect
The profiles.yml file holds connection info like database type, host, user, and password so dbt can access your data warehouse.
🔧 Debug
advanced2:00remaining
Why does this dbt command fail?
You run
dbt run immediately after dbt init without any changes. Why might it fail?dbt
dbt run
Attempts:
2 left
💡 Hint
Check if dbt knows where to connect to run your models.
✗ Incorrect
Without a valid profiles.yml with connection info, dbt cannot run models and will error out.
🚀 Application
advanced1:30remaining
How to initialize a dbt project with a specific adapter?
You want to create a new dbt project that uses the Snowflake adapter. Which command correctly initializes this?
Attempts:
2 left
💡 Hint
The adapter is set in profiles.yml, not during init.
✗ Incorrect
The 'dbt init' command does not take an adapter argument; you set the adapter in your profiles.yml after initialization.
❓ data_output
expert2:00remaining
What files are created after running 'dbt init'?
After running
dbt init example_project, which of the following files will you find inside the new project folder?Attempts:
2 left
💡 Hint
Look for typical dbt project files created by default.
✗ Incorrect
The 'dbt init' command creates a dbt_project.yml file, a models folder with a sample SQL file, and a README.md file.