PMI CAPM · Agile Frameworks/Methodologies · hard

An agile software team suffers from frequent integration bugs discovered late in the sprint and regressions in previously working modules. Which two Extreme Programming (XP) technical practices directly address these quality problems? (Select two.)

Published · Last updated · checked before publication — how we verify questions

Options

  • AContinuous Integration with automated build and test checks on each commitCorrect answer
  • BDeferring code merges until a single integration sprint at the end of the year
  • CReplacing automated unit tests with a quarterly manual spreadsheet review
  • DTest-Driven Development writing automated tests before production codeCorrect answer

Answers: A. Continuous Integration with automated build and test checks on each commit; D. Test-Driven Development writing automated tests before production code

The two quality problems named are late-discovered integration bugs and regressions in modules that previously worked. Extreme Programming addresses each with a specific technical practice. Continuous Integration means developers merge work into a shared mainline frequently, often several times a day, and every commit triggers an automated build and test run. Integration conflicts and breakages surface within minutes, while the change is small and fresh, rather than late in the sprint. Test-Driven Development means writing a failing automated test first, then writing just enough production code to pass it, then refactoring. Over time this builds a large suite of automated tests that re-run constantly, so any change that breaks existing behavior is caught immediately, which directly prevents regressions. The common trap is choosing options that sound like process or review activity but delay feedback. In agile and XP, the guiding principle is fast, frequent, automated feedback, so the right answers are the practices that shorten the gap between making a defect and detecting it.

Why the other options are wrong

  • B. Deferring code merges until a single integration sprint at the end of the year — This describes big-bang integration, the opposite of Continuous Integration. Postponing merges to one event at the end of the year lets conflicts and defects accumulate undetected, so it would make late integration bugs worse, not fix them.
  • C. Replacing automated unit tests with a quarterly manual spreadsheet review — This swaps automated unit tests for an infrequent manual review, which removes the fast automated regression safety net that XP relies on. A quarterly check cannot detect regressions introduced during daily coding, so it fails to address either stated problem.

All Agile Frameworks/Methodologies questions and the topic overview →

PMP and Project Management Professional are registered marks of the Project Management Institute, Inc. PrepIQ Hub is not affiliated with, endorsed by, or sponsored by the Project Management Institute.