Skip to content

Continuous Integration Pipelines Overview: CNPA practice questions

A CI pipeline is the automated sequence of steps a change goes through after it is pushed: fetch the source, build, test, analyze, package and publish an artifact. Where the continuous integration practice is about how developers work, the pipeline is the machinery that makes that practice cheap enough to run on every commit.

By Ibrahim Yesilay · Published · Updated

Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.

What Continuous Integration Pipelines Overview covers in CNPA

A CI pipeline is the automated sequence of steps a change goes through after it is pushed: fetch the source, build, test, analyze, package and publish an artifact. Where the continuous integration practice is about how developers work, the pipeline is the machinery that makes that practice cheap enough to run on every commit. In platform terms it belongs to the white paper's capability domain of automation for building and testing products, whose example CNCF and CDF projects are Tekton, Jenkins, Buildpacks, ko and Carvel.

A typical pipeline has a few recognizable stages. A trigger, usually a push or pull request event, starts it. A build stage compiles code and produces a package, which for cloud-native services is usually a container image. Test stages run fast unit tests and then slower integration or acceptance tests. Analysis stages scan code, dependencies and images for vulnerabilities and policy violations. A publish stage pushes the versioned artifact to an artifact repository or container registry. DORA's guidance says the packages a CI build creates should be authoritative, numbered and repeatable, and its deployment automation guidance says later stages should download those packages from an artifact repository instead of producing new ones.

Pipelines are increasingly defined as code in the same repository as the application, which puts changes to the pipeline through the same review and history as changes to the code. Platform teams go one step further and offer pipeline templates. The CNCF Platforms White Paper's example of a golden path is exactly this: a reusable supply chain workflow for building, scanning, testing, deploying and observing a web application on Kubernetes, offered with an initial project template and documentation. Teams get a working, compliant pipeline on the first day and can still extend it, which is what the white paper means by optional and composable.

Speed is a design requirement. DORA notes that tests which take too long are run less often, that failures are then harder to trace to a single change, and that the build status should be visible to the team, preferably through a chat system rather than email notifications that people filter away. Pipelines also need to be reproducible, so the same commit should produce the same artifact; that is why builds pin tool and base image versions.

Misconceptions to avoid: rebuilding the artifact separately for each environment, since it should be built once and promoted; letting a pipeline grow until feedback takes so long that developers stop waiting for it; and treating the pipeline as owned by nobody. When a shared pipeline template breaks it breaks for every team using it, so the platform team has to version and operate it like any other capability.

Exam-style questions here usually ask about the order and purpose of stages, where artifacts should be stored, what a golden-path pipeline gives a team, or how to shorten feedback time.

Key points

  • Typical stages: trigger, build, test, analyze or scan, publish the versioned artifact.
  • CI packages are authoritative and numbered; later stages pull them from an artifact repository.
  • A golden-path pipeline is a reusable build, scan, test, deploy and observe workflow with a starter template.
  • Fast, visible feedback keeps developers running the pipeline on every change.

Three sample questions

8 CNPA questions on Continuous Integration Pipelines Overview, 8 with explanations. How practice works

Question 1

A team wants a Tekton pipeline to start every time a pull request is merged in a GitHub repository. Which Tekton component is meant for this?
  1. A.The Tekton Catalog
  2. B.Tekton Triggers
  3. C.A Kubernetes CronJob
  4. D.A Tekton Task

Correct answer: B

The Tekton overview describes Tekton Pipelines as the foundation that defines the building blocks for CI/CD pipelines, and Tekton Triggers as the component that lets you instantiate pipelines based on events, giving a merged pull request as the example. Why the other options are wrong. "The Tekton Catalog": The Catalog is a collection of reusable pre-made components, not an event listener. "A Kubernetes CronJob": A CronJob runs on a schedule, not in response to a merge event. "A Tekton Task": A Task is a building block that runs steps; it does not listen for external events.

Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Tekton: Overview

Question 2

The CNCF Platforms White Paper separates "automation for building and testing products" from "automation for delivering and verifying services". Which pairing of example projects matches its table?
  1. A.Build and test: Prometheus, Jaeger. Deliver and verify: OPA, Kyverno.
  2. B.Build and test: Argo, Flux, Keptn, Flagger, OpenFeature. Deliver and verify: Tekton, Jenkins, Buildpacks, ko.
  3. C.Build and test: Tekton, Jenkins, Buildpacks, ko, Carvel. Deliver and verify: Argo, Flux, Keptn, Flagger, OpenFeature.
  4. D.Build and test: Backstage, Skooner, Ortelius. Deliver and verify: Crossplane, Helm, KubeVela, Operator Framework.

Correct answer: C

The white paper's capability table lists Tekton, Jenkins, Buildpacks, ko and Carvel for automating build and test, and Argo, Flux, Keptn, Flagger and OpenFeature for automating and observing delivery of services. Why the other options are wrong. "Build and test: Prometheus, Jaeger. Deliver and verify: OPA, Kyverno.": These are listed under application observability and security services. "Build and test: Argo, Flux, Keptn, Flagger, OpenFeature. Deliver ...": This swaps the two groups. "Build and test: Backstage, Skooner, Ortelius. Deliver and verify ...": Backstage and Ortelius are listed under web portals, and Crossplane and Helm under provisioning APIs.

Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), CNCF Platforms White Paper

Question 3

The automated tests on trunk fail after a merge. According to DORA's continuous integration guidance, what should the team do?
  1. A.Keep merging new work and fix the failures during the next scheduled release window.
  2. B.Move the work to a long-lived branch until the next stabilization phase before release.
  3. C.Disable the failing tests for now so that other developers are not blocked by them.
  4. D.Stop and fix the build first, because fixing a broken build has priority over other work.

Correct answer: D

DORA's CI capability says that when the automated tests fail, the team stops what it is doing to fix the problem, and lists an agreement that when the build breaks, fixing it takes priority over any other work. Why the other options are wrong. "Keep merging new work and fix the failures during ...": Letting failures pile up on trunk is exactly what the CI agreement prevents. "Move the work to a long-lived branch until the ...": DORA's model relies on short-lived branches and no stabilization freezes. "Disable the failing tests for now so that other ...": Disabling tests hides the problem instead of fixing the build.

Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), DORA capability: Continuous integration

Practice this topic

Focus mode keeps every question on Continuous Integration Pipelines Overview 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.