QuestionQ8

Validation Testing

A Machine Learning Engineer has defined a model with Python notebooks in a Databricks Git folder and wants to add unit tests to their CI/CD workflow. They need a workflow that is highly automated and straightforward to maintain.

Which strategy should they use?

  • A Use the %sh and -m shell commands to call the unit test module inside the notebook.
  • B Use the web terminal to run unit tests in the source code before each commit.
  • C Use Databricks GitHub Actions to run notebook tests before each commit.
  • D Use the %run magic command to call the unit test module from another notebook.
Explanation

Databricks GitHub Actions can automatically run notebook tests on repository commits, providing a maintainable CI/CD testing workflow for notebooks stored in Databricks Git folders. Manual web-terminal testing and notebook-invoked test commands do not provide the same commit-triggered CI automation.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!