Databricks Machine Learning Associate Question 27
Select 3A data science team is collaborating on a machine learning project using notebooks stored in an external Git repository. They want to ensure that recent changes made in the Git repository are reflected in their Databricks workspace. Which of the following steps should the team follow to pull the changes from the external Git repository into their Databricks workspace?
- A
Ensure the Git integration is enabled in the Databricks workspace and the external repository is connected.
- B
Open the notebook in the Databricks workspace and manually copy-paste the updated code from the external Git repository.
- C
Use the 'Git' menu in Databricks to sync the branch and pull the latest changes into the workspace.
- D
Re-import the entire repository into the Databricks workspace after deleting the old repository.
- E
Resolve any merge conflicts directly in the Databricks notebook editor if conflicts occur during the pull.
Show answer and explanation
Correct answers: A, C, E
Explanation
To pull changes from an external Git repository into a Databricks workspace, the Git integration must first be enabled, and the repository must be connected. Users can then use the 'Git' menu in Databricks to sync branches and pull changes. If conflicts arise during the pull, they can be resolved directly within Databricks. Manually copying code or re-importing the repository is not an efficient or recommended approach for this workflow.
- A. Correct.
Correct. Git integration must be enabled and the external repository must be connected to Databricks for pulling changes.
- B. Incorrect.
Incorrect. Manually copy-pasting code is not a recommended or efficient approach for syncing changes from a Git repository.
- C. Correct.
Correct. Databricks provides a 'Git' menu option to sync branches and pull changes directly from the external Git repository.
- D. Incorrect.
Incorrect. Re-importing the entire repository is unnecessary and inefficient for pulling changes from Git.
- E. Correct.
Correct. Databricks allows users to resolve merge conflicts directly in the notebook editor when pulling changes from Git.