nerdexam
CiscoCisco

200-901 · Question #174

200-901 Question #174: Real Exam Question with Answer & Explanation

The correct answer is D: to provide the single source of truth. Comparing current code to a previous version is a fundamental practice for troubleshooting, as it helps identify specific changes introduced between versions that might have caused new errors or regressions.

Software Development and Design

Question

Why would a developer compare a current version of code to a previous version?

Options

  • Ato track who made a change
  • Bto troubleshoot code failures
  • Cto aid collaboration
  • Dto provide the single source of truth

Explanation

Comparing current code to a previous version is a fundamental practice for troubleshooting, as it helps identify specific changes introduced between versions that might have caused new errors or regressions.

Common mistakes.

  • A. While version control systems track who made changes, comparing code directly is primarily for understanding what changed, not just who changed it; git log or similar commands are better for tracking authors.
  • C. Comparing code can indirectly aid collaboration by making changes visible, but its direct purpose is not to aid collaboration but rather to review and understand differences, often for debugging or merging.
  • D. A version control system itself, rather than the act of comparing versions, provides the single source of truth for code; comparing is an operation on that source.

Concept tested. Version control usage - troubleshooting

Reference. https://git-scm.com/docs/git-diff

Topics

#Version Control#Code Management#Software Development Practices#Code Integrity

Community Discussion

No community discussion yet for this question.

Full 200-901 PracticeBrowse All 200-901 Questions