Databricks Machine Learning Associate Question 14
Select 3You are a data scientist working in Databricks and need to connect a GitHub repository to Databricks Repos to version control your machine learning code. Which of the following steps are required to successfully connect the repository?
- A
Generate a personal access token in GitHub with appropriate permissions.
- B
Use the Databricks CLI to manually clone the repository into your Databricks workspace.
- C
Navigate to the Databricks Repos UI and click the 'Add Repo' button.
- D
Provide the GitHub repository URL and authenticate using the personal access token if prompted.
- E
Enable Git integration in the Databricks Admin Console before connecting the repository.
Show answer and explanation
Correct answers: A, C, D
Explanation
To connect a GitHub repository to Databricks Repos, you need to generate a personal access token in GitHub, navigate to the Databricks Repos UI, click 'Add Repo,' and provide the repository URL. The Databricks Repos feature simplifies integration with external Git providers without requiring additional admin configurations.
- A. Correct.
Correct: A personal access token is required to authenticate with GitHub when connecting a repo to Databricks Repos.
- B. Incorrect.
Incorrect: The Databricks CLI is not used to directly clone repositories into Databricks Repos. The Repos UI in Databricks handles this process.
- C. Correct.
Correct: The 'Add Repo' button in the Databricks Repos UI is used to initiate the process of connecting an external repository.
- D. Correct.
Correct: Providing the repository URL and authenticating with the personal access token are necessary steps to connect the repository.
- E. Incorrect.
Incorrect: Git integration does not need to be explicitly enabled in the Databricks Admin Console for connecting a GitHub repository. This step is not required.