Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the dbt documentation server.
dbt
dbt [1] serve Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dbt run serve' instead of 'dbt docs serve'.
Confusing 'serve' with 'build'.
✗ Incorrect
The command dbt docs serve starts a local server to view your dbt project's documentation.
2fill in blank
mediumComplete the code to generate the documentation site files before serving.
dbt
dbt docs [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'dbt test' which runs tests, not generates docs.
Using 'dbt compile' which compiles SQL but does not generate docs.
Using 'dbt build' which is a different command.
✗ Incorrect
You must run dbt docs generate to create the documentation files before serving them.
3fill in blank
hardFix the error in the command to serve dbt docs on a specific port.
dbt
dbt docs serve --[1] 8085
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '--host' instead of '--port'.
Using '--address' which is not a valid option.
✗ Incorrect
The --port option specifies the port number for the docs server.
4fill in blank
hardFill both blanks to generate and serve dbt docs in one command.
dbt
dbt docs [1] && dbt docs [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'docs generate' or 'docs serve'.
Trying to serve docs before generating them.
✗ Incorrect
Generate the docs with dbt docs generate, then serve them with dbt docs serve.
5fill in blank
hardFill all three blanks to generate docs, serve on port 8080, and specify host 0.0.0.0.
dbt
dbt docs [1] && dbt docs serve --[2] 8080 --[3] 0.0.0.0
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'run' instead of 'generate'.
Confusing '--host' and '--port' options.
✗ Incorrect
Use dbt docs generate to generate docs, then serve with --port and --host options.