Databricks Machine Learning Associate Question 11
Select 3You are working on a machine learning project in Databricks and need to connect your Databricks workspace to a Git repository hosted on GitHub. Which of the following steps are necessary to successfully connect and sync the external Git repository to Databricks Repos?
- A
Generate a personal access token from GitHub and use it to authenticate with Databricks Repos.
- B
Ensure the branch protection rules are disabled in the GitHub repository to allow syncing with Databricks Repos.
- C
Clone the Git repository directly into the Databricks file system using the %sh command.
- D
In Databricks Repos, use the 'Add Repo' button to link the external Git repository by providing the repository URL.
- E
Verify that your Databricks workspace has access to the Git provider through appropriate network configurations.
Show answer and explanation
Correct answers: A, D, E
Explanation
To connect a GitHub repository to Databricks Repos, you need to authenticate using a personal access token, link the repository via the 'Add Repo' button, and ensure that the Databricks workspace can communicate with the Git provider. Disabling branch protection rules or manually cloning the repository into Databricks is unnecessary and not part of the supported workflow.
- A. Correct.
Correct: A personal access token is required to authenticate with GitHub when connecting to Databricks Repos.
- B. Incorrect.
Incorrect: Branch protection rules in GitHub do not need to be disabled to connect to Databricks Repos. These rules are unrelated to the connection process.
- C. Incorrect.
Incorrect: Cloning a Git repository manually into the Databricks file system is not the correct way to use Databricks Repos. Databricks Repos provides a more integrated solution.
- D. Correct.
Correct: The 'Add Repo' button in Databricks Repos is the primary way to link an external Git repository.
- E. Correct.
Correct: Network access between Databricks and the Git provider must be properly configured to enable syncing.