0
0
dbtdata~20 mins

dbt docs serve - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
dbt Docs Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What does the command dbt docs serve do?
Choose the best description of what dbt docs serve accomplishes in a dbt project.
AIt builds the documentation site locally and serves it on a web server for browsing.
BIt runs all models and generates a report of data quality issues.
CIt deploys the dbt project documentation to a cloud hosting service automatically.
DIt cleans the target directory by removing all compiled SQL files.
Attempts:
2 left
💡 Hint
Think about what 'serve' usually means in web development.
Predict Output
intermediate
2:00remaining
Output of dbt docs serve after successful run
What output will you see in the terminal after running dbt docs serve successfully?
dbt
dbt docs serve
A
Serving docs at http://localhost:8080
Press Ctrl+C to exit
BError: No profiles.yml found in the project directory
C
Running models...
All models completed successfully
D
Cleaning target directory...
Done
Attempts:
2 left
💡 Hint
Look for a message indicating a local web address.
data_output
advanced
2:00remaining
What data is displayed when you open the docs served by dbt docs serve?
Select the correct description of the data shown in the documentation site served by dbt docs serve.
AOnly the list of models with their last run timestamps.
BRaw SQL code of all models without any metadata or lineage information.
CA visual catalog of models, sources, tests, and their relationships in the dbt project.
DA summary of database user permissions and access logs.
Attempts:
2 left
💡 Hint
Think about what documentation for a data project should include.
🔧 Debug
advanced
2:00remaining
Why does dbt docs serve fail with 'No manifest found' error?
You run dbt docs serve but get an error: 'No manifest found. Please run dbt compile or dbt run first.' What is the cause?
AThe target database is offline, so docs cannot be served.
BYou have not run <code>dbt compile</code> or <code>dbt run</code> to generate the manifest file.
CThe <code>dbt docs serve</code> command requires internet connection to download docs.
DYour <code>profiles.yml</code> file is missing or misconfigured.
Attempts:
2 left
💡 Hint
The manifest file is created by compiling or running models.
🚀 Application
expert
3:00remaining
How to share dbt documentation with your team using dbt docs serve?
You want your team to access the dbt documentation generated by dbt docs serve. Which approach is correct?
ASend the <code>manifest.json</code> file to your team members so they can open it locally.
BRun <code>dbt docs serve</code> on your local machine and share your computer's IP and port with the team.
CUse <code>dbt docs serve</code> with the <code>--public</code> flag to publish docs online automatically.
DRun <code>dbt docs serve</code> on a server accessible by the team, or build static docs with <code>dbt docs generate</code> and host them on a web server.
Attempts:
2 left
💡 Hint
Consider how to make docs accessible beyond your local machine.