200-901 exam dumps

200-901 practice question 32 of 204

Cisco DevNet Associate. Associate level, Cisco. Free question with the correct answer and a full explanation.

200-901 Question 32

Select 3

You are collaborating with a team on a Git repository for a DevNet project. During a git pull operation, you encounter a merge conflict in the app.py file. What steps should you follow to resolve the conflict and complete the merge?

  1. A

    Open the app.py file and manually resolve the conflicts by editing the file to keep the desired changes.

  2. B

    Use the git merge --abort command to discard the merge and start over.

  3. C

    After resolving the conflicts, use git add app.py to stage the resolved file.

  4. D

    Run git commit to complete the merge after staging the resolved conflicts.

  5. E

    Delete the app.py file and pull the changes again to avoid the conflict.

Show answer and explanation

Correct answers: A, C, D

Explanation

When a merge conflict occurs, it must be resolved manually by editing the conflicting files and deciding which changes to keep. After resolving the conflicts, the resolved files must be staged with git add and then committed with git commit to complete the merge process. Using commands like git merge --abort or deleting files is not appropriate for resolving conflicts in most scenarios.

  • A. Correct.

    Correct. When you encounter a conflict, you must manually edit the file to resolve the conflicting changes.

  • B. Incorrect.

    Incorrect. While git merge --abort can undo the merge, it is not necessary if you intend to resolve the conflict and proceed with the merge.

  • C. Correct.

    Correct. After resolving the conflicts, you must stage the resolved file using git add before committing.

  • D. Correct.

    Correct. Once the conflicts are resolved and staged, git commit finalizes the merge process.

  • E. Incorrect.

    Incorrect. Deleting the file is not a recommended way to resolve a conflict, as it leads to data loss and does not address the root issue.

Timed practice exam

Take a 200-901 practice test under exam conditions

75 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam