CERTIFIED-DATA-ENGINEER-PROFESSIONAL · Question #5
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 version
The correct answer is B. Use Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.. This is the correct answer because it will allow the developer to update their local repository with the latest changes from the remote repository and switch to the desired branch. Pulling changes will not affect the current branch or create any conflicts, as it will only fetch t
Question
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?
Options
- AUse Repos to make a pull request use the Databricks REST API to update the current branch to
- BUse Repos to pull changes from the remote Git repository and select the dev-2.3.9 branch.
- CUse Repos to checkout the dev-2.3.9 branch and auto-resolve conflicts with the current branch
- DMerge all changes back to the main branch in the remote Git repository and clone the repo again
- EUse Repos to merge the current branch and the dev-2.3.9 branch, then make a pull request to
How the community answered
(28 responses)- B93% (26)
- C4% (1)
- E4% (1)
Explanation
This is the correct answer because it will allow the developer to update their local repository with the latest changes from the remote repository and switch to the desired branch. Pulling changes will not affect the current branch or create any conflicts, as it will only fetch the changes and not merge them. Selecting the dev-2.3.9 branch from the dropdown will checkout that branch and display its contents in the notebook.
Topics
Community Discussion
No community discussion yet for this question.