Skip to content

CI/CD Relationship Fundamentals: CNPA practice questions

CI and CD are often written as one word, but they are two practices joined by a hand-off. Continuous integration ends with a tested, versioned artifact. Continuous delivery starts from that artifact and makes it possible to release it to any environment, on demand, at low risk.

By Ibrahim Yesilay · Published · Updated

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

What CI/CD Relationship Fundamentals covers in CNPA

CI and CD are often written as one word, but they are two practices joined by a hand-off. Continuous integration ends with a tested, versioned artifact. Continuous delivery starts from that artifact and makes it possible to release it to any environment, on demand, at low risk. Understanding where one stops and the other starts is the point of this topic.

DORA describes what continuous delivery looks like in practice: the software is in a deployable state throughout its lifecycle, keeping it deployable takes priority over working on new features, fast feedback on quality and deployability is available to everyone on the team, and the system can be deployed to production or to end users at any time. CI is a prerequisite, because software cannot stay deployable while integration problems pile up on long-lived branches. DORA also separates continuous delivery from continuous deployment. Continuous deployment means trying to deploy every code change to production as soon as possible, which works for web services but cannot be applied to software such as firmware or mobile apps, whereas continuous delivery applies to all kinds of software, including highly regulated domains. Flux's glossary draws the same line, defining continuous deployment as automatically deploying code changes to production once they have passed automated testing.

The artifact is the contract between the two halves. DORA's deployment automation takes the packages created by CI, deployment scripts and environment-specific configuration as its inputs, and its guidance is to use the same packages and the same process for every environment. If an environment needs its own rebuild, what was tested is no longer what is released.

In cloud-native platforms the hand-off often goes through Git rather than through a direct call. In a push model the pipeline holds cluster credentials and runs the deployment itself. In a pull model, the GitOps approach, the pipeline's last step is to commit a new image tag or version to a configuration repository, and an agent inside the cluster pulls and applies it. The Argo CD documentation points out that with automated sync, CI/CD pipelines no longer need direct access to the Argo CD API server, because the pipeline only commits and pushes to the Git repository that is being tracked. Flux can make that commit itself through image updates to Git, delivering new releases to staging automatically while production version bumps go to a separate branch for a pull request.

Misconceptions include believing that CD always means continuous deployment, that a single pipeline must own everything from commit to production, and that CI/CD is only a matter of tools. DORA's change lead time, measured from commit to running in production, spans both halves and shows how well they work together.

At associate level, expect questions that place an activity on the correct side of the hand-off, distinguish delivery from deployment, or compare push-based and pull-based ways of connecting a pipeline to a cluster.

Key points

  • CI produces a tested artifact; CD keeps it releasable to any environment on demand.
  • Continuous delivery is not continuous deployment, which pushes every passing change to production.
  • The same artifact and the same deployment process move through every environment.
  • In the pull model the pipeline commits to Git and an in-cluster agent deploys, so CI needs no cluster access.

Three sample questions

8 CNPA questions on CI/CD Relationship Fundamentals, 8 with explanations. How practice works

Question 1

A cluster is managed by Argo CD. A CI pipeline has built and pushed a new image guestbook:v2.0. What does Argo CD's "Automation from CI Pipelines" guide describe as the next step?
  1. A.Update the image in the manifests in the config repository and push; Argo CD syncs from Git.
  2. B.Nothing: Argo CD watches the container registry and redeploys after every image push.
  3. C.Run kubectl set image from the CI job against the production cluster to roll it out.
  4. D.Copy the image tarball onto each node so that the kubelet picks up the new version.

Correct answer: A

Argo CD's CI automation guide says desired configuration changes are first pushed to Git and the cluster then syncs to the desired state in Git. The workflow is to build and publish the image, update the manifests (for example with kustomize edit set image) in a separate config repository, commit and push; an explicit sync is optional. Why the other options are wrong. "Nothing: Argo CD watches the container registry and redeploys ...": The guide's workflow changes manifests in Git; Argo CD compares Git with the live state. "Run kubectl set image from the CI job against ...": That is an imperative change outside Git, which the GitOps workflow replaces and an automated sync with self-heal would revert. "Copy the image tarball onto each node so that ...": Images are distributed through registries; the guide never involves nodes.

Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Argo CD: Automation from CI pipelines

Question 2

How do the Argo Rollouts docs relate progressive delivery to continuous delivery?
  1. A.As a replacement for continuous integration, so that builds no longer need automated tests.
  2. B.As an evolution of CD: gradual exposure to a subset of users, with analysis driving promotion or rollback.
  3. C.As another name for the Kubernetes Recreate strategy, which replaces all Pods at the same time.
  4. D.As deploying a new version to all users at the same time and then rolling it back by hand if something goes wrong.

Correct answer: B

Argo Rollouts defines progressive delivery as releasing updates in a controlled and gradual manner, typically coupling automation and metric analysis to drive automated promotion or rollback, and says it is often described as an evolution of continuous delivery. Why the other options are wrong. "As a replacement for continuous integration, so that builds ...": It extends delivery; it does not remove the testing done in CI. "As another name for the Kubernetes Recreate strategy, which ...": Recreate stops all old Pods before starting new ones; there is no gradual exposure. "As deploying a new version to all users at ...": That is the opposite of a gradual, analysed rollout.

Sources: CNCF CNPA curriculum (CNPA_Curriculum.pdf), Argo Rollouts: Concepts

Question 3

Which question does DORA use to check whether a team really practises continuous delivery?
  1. A.Do we have a separate release team that owns, schedules and performs every single production deployment?
  2. B.Is our software deployable throughout its lifecycle, and do we keep it so before adding features?
  3. C.Does every deployment get sign-off from a change advisory board before it goes out?
  4. D.Do we release exactly once at the end of every sprint, on the same day each time?

Correct answer: B

DORA's continuous delivery capability lists check questions such as whether the software is in a deployable state throughout its lifecycle, whether keeping it deployable is prioritized over working on new features, and whether the team can deploy to production at any time on demand. Why the other options are wrong. "Do we have a separate release team that owns ...": DORA associates CD with teams that can test and deploy on demand without coordinating with others. "Does every deployment get sign-off from a change advisory ...": Manual gates are not part of DORA's definition of continuous delivery. "Do we release exactly once at the end of ...": A fixed cadence is not the test; being able to release on demand is.

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

Practice this topic

Focus mode keeps every question on CI/CD Relationship 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.