exam questions

Exam AWS Certified Data Engineer - Associate DEA-C01 All Questions

View all questions & answers for the AWS Certified Data Engineer - Associate DEA-C01 exam

Exam AWS Certified Data Engineer - Associate DEA-C01 topic 1 question 138 discussion

Two developers are working on separate application releases. The developers have created feature branches named Branch A and Branch B by using a GitHub repository’s master branch as the source.

The developer for Branch A deployed code to the production system. The code for Branch B will merge into a master branch in the following week’s scheduled application release.

Which command should the developer for Branch B run before the developer raises a pull request to the master branch?

  • A. git diff branchB master
    git commit -m
  • B. git pull master
  • C. git rebase master
  • D. git fetch -b master
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
simon2133
1 month, 4 weeks ago
Selected Answer: B
B It's considered the general default option for a few reasons (1) it includes git fetch and (2) you won't get a merge conflict if there happens to be a branch C spawned off after A was merged, you won't need to use --force (3) related to (2) you're less likely to be clobbering commit history
upvoted 1 times
...
AgboolaKun
5 months, 3 weeks ago
Selected Answer: C
The correct answer is C. Here is why: Rebasing Branch B onto the updated master branch ensures that Branch B incorporates all the recent changes from the master branch (including the changes from Branch A that were deployed to production). It helps maintain a linear, clean history by placing Branch B's commits on top of the latest master branch commits. This approach reduces the likelihood of merge conflicts when the pull request is eventually merged into master. It makes the code review process easier as all the changes in the pull request will be relevant and up-to-date. By using git rebase master, the developer ensures that Branch B is up-to-date with all changes in the master branch, including those from Branch A, before creating the pull request. This approach helps maintain a clean, linear history and reduces the likelihood of conflicts during the merge process.
upvoted 4 times
...
mzansikiller
8 months, 1 week ago
Rebasing In Git, there are two main ways to integrate changes from one branch into another: the merge and the rebase. In this section you’ll learn what rebasing is, how to do it, why it’s a pretty amazing tool, and in what cases you won’t want to use it. The Basic Rebase If you go back to an earlier example from Basic Merging, you can see that you diverged your work and made commits on two different branches. Answer C
upvoted 3 times
...
aragon_saa
8 months, 2 weeks ago
Selected Answer: C
Answer is C
upvoted 2 times
...
matt200
8 months, 2 weeks ago
Selected Answer: C
Option C: git rebase maste
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago