Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Understanding dbt Core vs dbt Cloud
📖 Scenario: You work as a data analyst in a company that uses dbt (data build tool) to transform raw data into clean, usable datasets. Your team is deciding whether to use dbt Core or dbt Cloud for their data transformation workflows.To help the team, you will create a simple Python project that models the features of both dbt Core and dbt Cloud, so you can compare them clearly.
🎯 Goal: Build a Python dictionary that lists key features of dbt Core and dbt Cloud. Then, create a filter to select features available only in dbt Cloud. Finally, print these cloud-only features to help your team understand the differences.
📋 What You'll Learn
Create a dictionary named dbt_features with exact keys 'dbt Core' and 'dbt Cloud' and their feature lists.
Create a variable named cloud_only_features to hold features unique to dbt Cloud.
Use a list comprehension to find features in dbt Cloud that are not in dbt Core.
Print the cloud_only_features list as the final output.
💡 Why This Matters
🌍 Real World
Data teams often need to understand the differences between tools like dbt Core and dbt Cloud to choose the best fit for their workflows.
💼 Career
Knowing how to compare tool features and present clear summaries helps data analysts and engineers make informed decisions and communicate effectively with stakeholders.
Progress0 / 4 steps
1
Create the dbt features dictionary
Create a dictionary called dbt_features with two keys: 'dbt Core' and 'dbt Cloud'. Set the value for 'dbt Core' to the list ["Open-source", "Command-line interface", "Local development"] and for 'dbt Cloud' to the list ["Hosted environment", "Job scheduling", "User interface", "Open-source", "Command-line interface"].
dbt
Hint
Use a dictionary with two keys exactly named 'dbt Core' and 'dbt Cloud'. Assign the exact lists of features as values.
2
Create a variable for cloud-only features
Create a variable called cloud_only_features and set it to an empty list []. This will hold features unique to dbt Cloud.
dbt
Hint
Just create a variable named cloud_only_features and assign it an empty list [].
3
Find features unique to dbt Cloud
Use a list comprehension to set cloud_only_features to all features in dbt_features['dbt Cloud'] that are not in dbt_features['dbt Core']. Use the variable names exactly as given.
dbt
Hint
Use a list comprehension with feature for feature in dbt_features['dbt Cloud'] if feature not in dbt_features['dbt Core'].
4
Print the cloud-only features
Write a print statement to display the cloud_only_features list.
dbt
Hint
Use print(cloud_only_features) to show the list.
Practice
(1/5)
1. What is the main difference between dbt Core and dbt Cloud?
easy
A. dbt Core has scheduling features, dbt Cloud does not.
B. dbt Core is web-based, and dbt Cloud is a command-line tool.
C. dbt Core is free and command-line based, while dbt Cloud is paid and web-based.
D. dbt Core is only for data visualization, dbt Cloud is for data modeling.
Solution
Step 1: Understand the nature of dbt Core
dbt Core is a free tool that runs on the command line, meaning you use it by typing commands in a terminal.
Step 2: Understand the nature of dbt Cloud
dbt Cloud is a paid platform that runs in a web browser and includes extra features like scheduling and a user interface.
Final Answer:
dbt Core is free and command-line based, while dbt Cloud is paid and web-based. -> Option C