CERTIFIED-DATA-ENGINEER-PROFESSIONAL · Question #103
CERTIFIED-DATA-ENGINEER-PROFESSIONAL Question #103: Real Exam Question with Answer & Explanation
The correct answer is C: Use Repos to create a new branch commit all changes and push changes to the remote Git. In Databricks Repos, when a user does not have privileges to make changes directly to the main branch of a cloned remote Git repository, the recommended approach is to create a new branch within the Databricks workspace. The developer can then make changes in this new branch, com
Question
A developer has successfully configured credential for Databricks Repos and cloned a remote Git repository. Hey don not have privileges to make changes to the main branch, which is the only branch currently visible in their workspace. Use Response to pull changes from the remote Git repository commit and push changes to a branch that appeared as a changes were pulled.
Options
- AUse Repos to merge all differences and make a pull request back to the remote repository.
- BUse repos to merge all difference and make a pull request back to the remote repository.
- CUse Repos to create a new branch commit all changes and push changes to the remote Git
- DUse repos to create a fork of the remote repository commit all changes and make a pull request
- EUse Repos to pull changes from the remote Git repository; commit and push changes to a branch
Explanation
In Databricks Repos, when a user does not have privileges to make changes directly to the main branch of a cloned remote Git repository, the recommended approach is to create a new branch within the Databricks workspace. The developer can then make changes in this new branch, commit those changes, and push the new branch to the remote Git repository. This workflow allows for isolated development without affecting the main branch, enabling the developer to propose changes via a pull request from the new branch to the main branch in the remote repository. This method adheres to common Git collaboration workflows, fostering code review and collaboration while ensuring the integrity of the main branch.
Topics
Community Discussion
No community discussion yet for this question.