Databricks Machine Learning Associate Question 29
Single answerYou are collaborating with your team on a machine learning project stored in an external Git repository. After making updates to the repository outside of Databricks, you want to pull the latest changes from the Git provider back into your Databricks workspace notebook. What is the correct approach to achieve this?
- A
Ensure the notebook is linked to a Git repository and select 'Pull' from the Git menu in Databricks.
- B
Disconnect the notebook from the Git repository, then re-link it to the repository to fetch the latest changes.
- C
Manually copy and paste the updated code from the external Git provider into your Databricks notebook.
- D
Use the Databricks CLI to pull changes directly into the notebook.
Show answer and explanation
Correct answer: A
Explanation
To pull changes from an external Git provider into a Databricks workspace, the notebook must first be linked to the Git repository. Once linked, the 'Pull' option in the Git menu allows users to fetch the latest changes from the repository without manual intervention. This ensures the workspace notebook remains synchronized with the external repository in a streamlined manner.
- A. Correct.
Correct: Databricks provides a Git integration feature that allows users to pull changes from linked repositories directly via the Git menu.
- B. Incorrect.
Incorrect: Disconnecting and relinking the notebook is unnecessary and does not fetch the latest changes from the repository.
- C. Incorrect.
Incorrect: Manually copying and pasting code is prone to errors and defeats the purpose of Git integration.
- D. Incorrect.
Incorrect: The Databricks CLI does not support directly pulling changes into notebooks. It is used for other workspace management tasks.