Databricks Certified Data Engineer Professional — Question 91
A developer has successfully configured their credentials for Databricks Repos and cloned a remote Git repository. They do not have privileges to make changes to the main branch, which is the only branch currently visible in their workspace.
Which approach allows this user to share their code updates without the risk of overwriting the work of their teammates?
Answer options
- A. Use Repos to checkout all changes and send the git diff log to the team.
- B. Use Repos to create a fork of the remote repository, commit all changes, and make a pull request on the source repository.
- C. Use Repos to pull changes from the remote Git repository; commit and push changes to a branch that appeared as changes were pulled.
- D. Use Repos to merge all differences and make a pull request back to the remote repository.
- E. Use Repos to create a new branch, commit all changes, and push changes to the remote Git repository.
Correct answer: E
Explanation
The correct answer is E, as creating a new branch allows the developer to work independently without affecting the main branch. This protects the work of their teammates while still enabling the developer to commit their changes. The other options either do not allow for independent changes or involve merging directly into the main branch, which is not permitted.