Understanding Build Execution in Continuous Integration
Continuous Integration (CI) is a development practice where developers frequently integrate code into a shared repository, which is then automatically tested and built to detect issues early. The frequency of build execution is crucial in maintaining the integrity of the codebase and ensuring that new changes do not introduce errors.
Exam Question
When using Continuous Integration, how often should the build be executed?
(choose the best answer)
A. Once per day.
B. Before the end of the Sprint.
C. Whenever new tests are created or uncertainty arises about whether old tests will pass.
D. Whenever new or changed code is checked into version control.
E. Once per hour.
Correct Answer
D. Whenever new or changed code is checked into version control.
Explanation
Correct Answer
D. Whenever new or changed code is checked into version control:
In Continuous Integration, the build should be executed every time new or changed code is checked into the version control system. This frequent build execution ensures that any issues introduced by the new code are identified as soon as possible, allowing the team to address them quickly. This practice helps maintain a stable codebase and reduces the risk of integration problems.
Why the Other Options Are Less Appropriate
A. Once per day:
Running the build only once per day can delay the detection of issues introduced by new code. Continuous Integration aims to catch problems as early as possible, so more frequent builds are recommended.
B. Before the end of the Sprint:
Waiting until the end of the Sprint to run the build contradicts the principles of Continuous Integration. The goal is to integrate and test changes continuously, not just at the end of a Sprint.
C. Whenever new tests are created or uncertainty arises about whether old tests will pass:
While it is important to run builds when new tests are added or uncertainties arise, Continuous Integration best practices suggest running builds whenever new code is checked in, not just under specific circumstances.
E. Once per hour:
Although frequent builds are essential, setting a fixed time interval like once per hour is not as effective as triggering builds based on code check-ins. The frequency should be driven by the actual changes in the codebase.
Relevance to the PSD Exam
Understanding how often to execute builds in Continuous Integration is essential for the PSD exam, as it highlights the importance of frequent integration and testing in maintaining code quality and stability.
Key Takeaways
- Builds in Continuous Integration should be executed whenever new or changed code is checked into version control.
- This approach helps to catch issues early, maintain a stable codebase, and reduce the risk of integration problems.
- Continuous Integration supports the principles of Agile development, enabling teams to deliver high-quality software frequently.
Conclusion
In Continuous Integration, the build should be triggered whenever new or changed code is checked into the version control system. This practice ensures that issues are detected early, maintaining the integrity and stability of the codebase.

Get ready for the official PSD exam
127 PSD practice questions, each with an in-depth explanation like the one above.
- Practice Mode: study at your own pace and choose the test length.
- Mock Exam Mode: 80 random questions in 60 minutes, like the real exam.
$29 is ScrumPrep's one-time price. The official PSD exam fee ($200) is paid separately to Scrum.org.
More PSD exam questions
- The Sprint is already underway. A Product Backlog item selected for the Sprint is unclear. What two things could the Developers do?
- When the Developers determine that they will not be able to finish the complete forecast, who should be present when reviewing and adjusting the Sprint work selected?
- Who is responsible for a Sprint Backlog item that contains several database related tasks?
- How much time must a Product Owner spend with the Developers?” (PSD)
- The right time to refactor code using Test Driven Development is:
