Databricks Machine Learning Associate Question 15
Select 3A data science team wants to collaborate on a machine learning project using Databricks Repos. They have a GitHub repository containing their code and want to connect it to Databricks. What steps must they take to successfully link this external Git repository to Databricks Repos?
- A
Authenticate with the Git provider using a personal access token or OAuth.
- B
Ensure the Git repository is private, as public repositories are not supported in Databricks Repos.
- C
Copy the repository's HTTPS URL and use it to add the repository in the Databricks Repos interface.
- D
Use Databricks CLI to directly import the repository into the workspace.
- E
Verify that the repository does not exceed the Databricks Repos file size limitations.
Show answer and explanation
Correct answers: A, C, E
Explanation
To connect an external Git repository to Databricks Repos, users must authenticate with the Git provider and provide the repository's HTTPS URL via the Databricks Repos interface. Additionally, users need to ensure that the repository meets the file size limitations imposed by Databricks. Both public and private repositories are supported, and the Databricks CLI is not required for this process.
- A. Correct.
Correct. Authentication with the Git provider (e.g., GitHub, GitLab) using a personal access token or OAuth is required to connect the external repository to Databricks Repos.
- B. Incorrect.
Incorrect. Databricks Repos supports both private and public repositories, so this is not a requirement.
- C. Correct.
Correct. The HTTPS URL of the repository is used to connect it to Databricks Repos via the Databricks Repos interface.
- D. Incorrect.
Incorrect. The Databricks CLI is not used to directly import Git repositories into Databricks Repos. The connection must be configured through the Databricks Repos interface.
- E. Correct.
Correct. Databricks imposes file size limitations for repositories connected to Databricks Repos, so ensuring the repository complies with these limitations is necessary.