Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Certified Data Engineer Professional All Questions

View all questions & answers for the Certified Data Engineer Professional exam

Exam Certified Data Engineer Professional topic 1 question 91 discussion

Actual exam question from Databricks's Certified Data Engineer Professional
Question #: 91
Topic #: 1
[All Certified Data Engineer Professional Questions]

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?

  • 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.
Show Suggested Answer Hide Answer
Suggested Answer: E 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
benni_ale
1 month ago
Selected Answer: E
I changed my mind i think is E
upvoted 1 times
...
benni_ale
1 month, 1 week ago
Selected Answer: B
Explanation: The developer does not have privileges to make changes to the main branch of the remote repository, and it's the only branch visible in their workspace. To share their code updates without risking overwriting their teammates' work, the best approach is to: Create a personal copy (fork) of the remote repository. This forked repository will be under the developer's own account or workspace, allowing full control over it. Make Changes in the Fork: Commit all code updates to the forked repository. Since the developer has full privileges on their fork, they can create branches, commit changes, and manage the repository as needed. Option E: Creating a new branch and pushing changes to the remote repository requires write access to the repository, which the developer does not have. By forking the repository, the developer avoids any permission issues and ensures that their work does not interfere with the main codebase until it is reviewed and approved by the team.
upvoted 1 times
benni_ale
1 month ago
My bad i think E is correct
upvoted 1 times
...
...
hal2401me
8 months, 3 weeks ago
Selected Answer: E
E is the regular collaboration approach. B makes a fork so breaks away from the collaborating teamates. There's no way they can make a pull request on the source repository after making change to a fork.
upvoted 4 times
hal2401me
8 months, 3 weeks ago
Sorry, my mistake, just tested B is a do-able way. Fork from github can create pull request against the original repository and contribute back. B seems to be a better answer.
upvoted 2 times
...
...
Curious76
9 months ago
Selected Answer: B
Databricks Repos itself does not currently support creating forks directly within the platform. However, you can achieve a similar workflow using the following steps: Use the git clone command in a terminal or IDE to create a local copy of the remote repository. This effectively creates a local fork. Make your changes in the local copy. Use git push to push your changes to a new remote repository you create on a Git hosting service like GitHub. Create a pull request from your new remote repository to the original repository on Databricks Repos. This approach allows you to make changes to your own copy of the code, collaborate with others through code reviews, and propose your changes for integration into the main branch without directly modifying it
upvoted 2 times
carlosmps
4 months ago
The argument provided suggests using a traditional Git workflow that involves forking a repository on a Git hosting service like GitHub, making changes, and then creating a pull request. This is a valid and widely used approach in standard Git workflows. However, it is essential to distinguish between the capabilities and features provided directly by Databricks Repos and the general Git practices that can be applied outside of Databricks.
upvoted 2 times
...
...
vctrhugo
9 months, 3 weeks ago
Selected Answer: E
This is a common workflow in collaborative development environments. The developer can create a new branch in their local repository, make changes, and then push the branch to the remote repository. This way, they can share their updates without modifying the main branch directly. After pushing the changes, they can create a pull request on the remote repository, allowing their teammates to review the changes before merging them into the main branch. This process ensures that the main branch remains stable and that all changes are reviewed and approved before they’re incorporated. It also prevents any accidental overwrites of teammates’ work.
upvoted 3 times
...
PrincipalJoe
9 months, 3 weeks ago
Databricks Repos cannot be used to fork a repository
upvoted 3 times
...
adenis
9 months, 3 weeks ago
Selected Answer: E
E is correct
upvoted 3 times
...
Rinscy
9 months, 4 weeks ago
E is correct if you create a fork you create another repository so not B
upvoted 2 times
...
Crocjun
10 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
spaceexplorer
10 months ago
Selected Answer: B
B is correct
upvoted 2 times
...
dmov
10 months, 4 weeks ago
Isn't this B?
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...