exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 140 discussion

A company has an application that uses AWS CodePipeline to automate its continuous integration and continuous delivery (CI/CD) workflow. The application uses AWS CodeCommit for version control. A developer who was working on one of the tasks did not pull the most recent changes from the main branch. A week later, the developer noticed merge conflicts.

How can the developer resolve the merge conflicts in the developer's branch with the LEAST development effort?

  • A. Clone the repository. Create a new branch. Update the branch with the changes.
  • B. Create a new branch. Apply the changes from the previous branch.
  • C. Use the Commit Visualizer view to compare the commits when a feature was added. Fix the merge conflicts.
  • D. Stop the pull from the main branch to the feature branch. Rebase the feature branch from the main branch.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
love777
Highly Voted 1 year, 8 months ago
Selected Answer: D
Option D is the best approach for resolving the merge conflicts with minimal development effort. Here's how it works: Stop Pull from Main: By stopping the pull from the main branch to the feature branch, the developer can prevent the introduction of new conflicts while they are resolving the existing ones. Rebase the Feature Branch: After stopping the pull, the developer can rebase the feature branch onto the main branch. This essentially replays the feature branch's changes on top of the main branch's latest changes. This allows the developer to resolve conflicts one commit at a time, addressing any conflicts that arise from the difference between the feature branch and the main branch.
upvoted 10 times
...
9d8dd9c
Most Recent 6 months ago
Most people say D, but option D does not cover the fixing of conflict, but option C at lease says "fix the conflicts" so this is a complete answer, no?
upvoted 1 times
...
65703c1
11 months, 1 week ago
Selected Answer: D
D is the correct answer.
upvoted 1 times
...
maurice2005
1 year, 1 month ago
Selected Answer: C
How on earth non-visualize way is easier? And I've never seen a rebase that happened commit-by-commit! Resolving the merge should happened in one go, merge or rebase. just rebase appear(!) more isolated. (which in practice it's not!). Also rebase is cleaner but the effort is even more since there is a level of isolation! The only point here is visualizing which makes it easier.
upvoted 2 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: D
D. Stop the pull from the main branch to the feature branch. Rebase the feature branch from the main branch: Rebasing the feature branch from the main branch is an effective way to resolve merge conflicts. This approach involves updating the feature branch with the latest changes from the main branch and then applying the feature branch's changes on top of it. Rebasing can simplify the process of resolving conflicts and is generally less effort-intensive compared to creating new branches and transferring changes. C. Use the Commit Visualizer view to compare the commits when a feature was added. Fix the merge conflicts: Using tools like Commit Visualizer to understand the changes and conflicts can be helpful. However, this step alone doesn’t resolve the conflicts. The developer still needs to manually resolve the conflicts in the code.
upvoted 1 times
...
Passexam4sure_com
1 year, 6 months ago
D D. Stop the pull from the main branch to the feature branch. Rebase the feature branch from the main branch.
upvoted 1 times
...
Claire_KMT
1 year, 6 months ago
D. Stop the pull from the main branch to the feature branch. Rebase the feature branch from the main branch.
upvoted 1 times
...
Iamtany
1 year, 7 months ago
Selected Answer: D
Rebasing the feature branch from the main branch would apply the changes from the main branch directly onto the feature branch, effectively bringing it up to date. This would resolve the conflicts in a way that minimizes manual effort.
upvoted 3 times
...
[Removed]
1 year, 8 months ago
Selected Answer: D
Option D is the best approach for resolving the merge conflicts
upvoted 2 times
...
[Removed]
1 year, 8 months ago
Selected Answer: D
Using the git rebase command to rebase a repository changes the history of a repository, which might cause commits to appear out of order. https://docs.aws.amazon.com/codecommit/latest/userguide/how-to-view-commit-details.html
upvoted 1 times
...
AWSdeveloper08
1 year, 8 months ago
Selected Answer: C
Comparing commits in the Commit Visualizer view can provide a clear overview of the changes made over time and aid in understanding the context of the conflicts. This approach can help you pinpoint where conflicts arose and assist you in making informed decisions about how to resolve them.
upvoted 4 times
...
worseforwear
1 year, 8 months ago
Selected Answer: C
Answer D won't fix the problem
upvoted 1 times
Cerakoted
1 year, 6 months ago
I think C would take huge development effort
upvoted 1 times
maurice2005
1 year, 1 month ago
because visualizing make it harder? You have to fix the conflict anyway! rebase or merge. in both resolve the conflict will happened in one go (unlike the comments I see which they say rebase is commit by commit). I don't think those who pick rebase ever used it before in practice!
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago