Exam4Training

Which approach will allow this developer to review the current logic for this notebook?

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?
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 . Merge all changes back to the main branch in the remote Git repository and clone the repo again
E . 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

Answer: B

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.

Verified Reference: [Databricks Certified Data Engineer Professional], under “Databricks Tooling” section; Databricks Documentation, under “Pull changes from a remote repository” section.

Exit mobile version