Databricks Machine Learning Associate Question 13
Select 2You are working on a machine learning project in Databricks and need to connect your Databricks workspace to a GitHub repository to version control your code. Which of the following steps are required to successfully connect the external GitHub repository to Databricks repos?
- A
Generate a personal access token in GitHub with appropriate permissions.
- B
Enable Git integration in the Databricks Admin Console under the 'Repos' settings.
- C
Clone the repository directly into your Databricks workspace without authentication.
- D
Use the personal access token to authenticate Databricks with GitHub when prompted.
- E
Ensure the repository follows Databricks' file structure standards for repos.
Show answer and explanation
Correct answers: A, D
Explanation
To connect an external GitHub repository to Databricks repos, you must first generate a personal access token in GitHub with the necessary permissions (e.g., repo access). This token is used to authenticate with GitHub during the connection process. Other steps, such as enabling Git integration through an Admin Console or specific file structures, are not relevant in this context.
- A. Correct.
Correct: A personal access token is required to authenticate Databricks with GitHub when connecting to an external Git provider.
- B. Incorrect.
Incorrect: Git integration in Databricks is not enabled via the Admin Console but rather directly through the Repos interface.
- C. Incorrect.
Incorrect: Direct cloning without authentication is not supported for connecting external Git providers to Databricks repos.
- D. Correct.
Correct: The personal access token is used when prompted during the connection process to authenticate Databricks with GitHub.
- E. Incorrect.
Incorrect: Databricks does not enforce specific file structure standards for connecting repositories; it only synchronizes the repository as it exists in the external Git provider.