Databricks Certified Data Engineer Professional — Question 187
A junior developer complains that the code in their notebook isn't producing the correct results in the development environment. A shared screenshot reveals that while they're using a notebook versioned with Databricks Repos, they're using a personal branch that contains old logic. The desired branch named dev-2.3.9 is not available from the branch selection dropdown.
Which approach will allow this developer to review the current logic for this notebook?
Answer options
- A. Use Repos to make a pull request use the Databricks REST API to update the current branch to dev-2.3.9
- B. Use Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.
- C. Use Repos to checkout the dev-2.3.9 branch and auto-resolve conflicts with the current branch
- D. Use Repos to merge the current branch and the dev-2.3.9 branch, then make a pull request to sync with the remote repository
Correct answer: B
Explanation
The correct answer is B because pulling changes from the remote Git repository will allow the developer to access the latest version of the dev-2.3.9 branch. Options A, C, and D do not directly address the need to retrieve the appropriate branch and may involve unnecessary steps or incorrect procedures.