Databricks Machine Learning Associate Question 23
Select 3You are working on a Databricks notebook and need to collaborate with your team using an external Git provider. You decide to create a new branch and commit your changes. Which of the following steps should you take to correctly perform this task within Databricks?
- A
Navigate to the Repos tab in Databricks, create a new branch, and switch to it.
- B
Make changes to the notebook, then commit and push the changes directly from Databricks to your Git provider.
- C
Use the Git integration option in Databricks to create a pull request after committing changes.
- D
Clone the repository to your local machine, create a branch locally, and push it back to the Git provider.
- E
Ensure the Git provider is connected through Databricks Repos before attempting to create a branch.
Show answer and explanation
Correct answers: A, B, E
Explanation
To effectively collaborate using Git in Databricks, you must use the Repos functionality to connect to an external Git provider. Once connected, you can create a branch and commit changes directly from the Databricks interface. While pull requests and local clones are valid Git operations, they are not essential for the workflow within Databricks.
- A. Correct.
Correct. In Databricks, the Repos tab is used to interact with Git repositories, including creating and switching branches.
- B. Correct.
Correct. Databricks allows you to make changes to notebooks and commit/push them directly to the configured Git provider through the Repos interface.
- C. Incorrect.
Incorrect. While pull requests are part of Git workflows, Databricks does not natively support creating pull requests. This must be done directly in your Git provider.
- D. Incorrect.
Incorrect. While cloning a repository locally is a valid Git operation, it is not required for Databricks Git integration workflows.
- E. Correct.
Correct. Databricks requires that the Git provider is properly connected via the Repos functionality before you can create branches or push changes.