Continuous Integration Fundamentals: CNPA practice questions
Continuous integration is the practice of integrating every developer's work into the shared main line of the code base frequently and checking each change automatically.
By Ibrahim Yesilay · Published · Updated
Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.
What Continuous Integration Fundamentals covers in CNPA
Continuous integration is the practice of integrating every developer's work into the shared main line of the code base frequently and checking each change automatically. DORA's description of CI starts from the problem it solves: in a system many people change at once, a small change in one file can break something elsewhere, and changes from different developers can be incompatible. CI follows the principle that if something takes a lot of time and energy you should do it more often, which forces you to make it less painful, and it relies on fast feedback loops and small batches of work.
DORA lists the key elements simply. Each commit should trigger a build of the software. Each commit should trigger a series of automated tests that give feedback within a few minutes. To make that work a team needs an automated build process that produces packages which can be deployed to any environment, are numbered and repeatable, and are treated as the authoritative output used by every later stage; a reliable suite of automated tests, starting with a handful of unit and acceptance tests that cover high-value functionality; and a CI system that runs the build and tests on every check-in and makes the status visible to the team.
CI as defined by Kent Beck and the Extreme Programming community also includes two practices that DORA finds predictive of higher delivery performance. The first is trunk-based development: developers work in small batches and merge into trunk at least daily instead of keeping long-lived feature branches. DORA's page on trunk-based development calls it a required practice for CI and describes branches that typically last no more than a few hours. The second is the agreement that when the build breaks, fixing it takes priority over any other work.
For a platform team, CI is one of the first capabilities users ask for. Offering it well means shared runners, reusable pipeline definitions, caching that keeps feedback fast, and clear output when something fails; DORA's platform research found clear feedback on the outcome of a task to be the capability most correlated with a positive user experience.
Several misconceptions come up. Running a CI server is not the same as practicing CI: if developers merge only once a week from long-lived branches, the server just reports late, large failures. Flaky tests are not harmless; DORA stresses that tests must be reliable, so that a failure means a real problem and a pass gives confidence. Slow suites undermine the practice too, because developers stop running tests they have to wait for, and failures become hard to attribute when many changes land between runs. And CI is not deployment: it produces a tested artifact, and continuous delivery is what takes that artifact to environments.
At associate level, expect questions on what should trigger a build, how often to merge, what to do when the build is red, why the build output should be the artifact deployed everywhere, and how trunk-based development differs from feature-branch workflows.
Key points
- Every commit triggers a build and a set of automated tests that report back within minutes.
- Developers merge small batches into trunk at least daily; long-lived feature branches work against CI.
- A broken build is fixed before any other work continues.
- The CI build output is the numbered, authoritative package used by every later stage.
Three sample questions
8 CNPA questions on Continuous Integration Fundamentals, 8 with explanations. How practice works
Question 1
- A.Automated tests run once a night on the main branch, and any failures are reviewed at the next planning meeting.
- B.A broken build may stay red until the release branch is cut.
- C.Developers merge into trunk at least daily, with automated tests before and after each merge.
- D.Developers merge long-lived feature branches once a month after a full regression run.
Correct answer: C
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), DORA capability: Continuous integration
Question 2
- A.Each commit triggers automated tests that provide feedback within a few minutes.
- B.Overnight feedback is the target, so that long-running tests never slow developers down during the day.
- C.Feedback only before a release, because that is when quality matters.
- D.Feedback within the current sprint is enough.
Correct answer: A
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), DORA capability: Continuous integration
Question 3
- A.One release branch per environment, with changes promoted by merging between those branches
- B.Regular code freezes before each release so that the trunk can be stabilized and tested
- C.Fewer than three active branches, each living less than about a day before merging
- D.One long-lived branch per feature, merged into trunk only when the feature is complete
Correct answer: C
Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), DORA capability: Continuous delivery, DORA capability: Trunk-based development
Practice this topic
Focus mode keeps every question on Continuous Integration Fundamentals until you leave it. 10 free guest answers, then a free account; no credit card.
Or open CNPA practice across all topics.
Sources
The explanation above was checked against these official documents.
- DORA capabilities: Continuous integration (checked 2026-10-28)
- DORA capabilities: Trunk-based development (checked 2026-10-28)
- DORA capabilities: Test automation (checked 2026-10-28)
- DORA capabilities: Platform engineering (checked 2026-10-28)