CI/CD Pipelines Interview Questions: Continuous Delivery Concepts
Reviewed by Mark Dickie · Last updated
6 questions on this page you can answer and see marked on the spot. Go to the first one
CI/CD pipelines are automated workflows that build and test each code change, then release it toward production. For a continuous delivery interview, expect questions on what keeps the main branch always deployable, where the human approval gate sits, and how a failed test stops a release. Candidates often mix up continuous delivery with continuous deployment, so the table below separates the three terms.
Which continuous delivery concepts do interviewers ask about?
| Term | What reaches production | Where a person decides |
|---|---|---|
| Continuous integration | Nothing on its own; every merge to main builds and runs the test suite | Nobody; a red build blocks the merge |
| Continuous delivery | Every green build of main is packaged and staged, ready to ship | A manual approval before production, such as a GitHub Actions environment with required reviewers |
| Continuous deployment | Every green build goes to production automatically | Nobody; a failing test or health check halts the rollout |
What does a delivery pipeline look like in practice?
- A push or pull request fires a webhook that starts the build on a clean runner.
- The build produces one versioned artifact, such as a Docker image tagged with the commit SHA, and that same artifact moves through every later stage.
- Unit and integration tests run; a failure stops the pipeline before anything reaches staging.
- The artifact deploys to staging, where smoke tests and a database migration dry run check the release.
- A reviewer approves the production deploy, the pipeline rolls out in stages, and it watches error rates to decide whether to roll back.
Key facts
- Tarmac has 20 CI-CD Pipelines interview questions on this topic, 10 of them on this page, at difficulty 1–5 of 5.
- Tarmac tracked 3,008 job postings asking for CI-CD Pipelines in November 2026.
- Roles asking for CI-CD Pipelines advertise a median base salary of £75,000, across 806 job postings as of November 2026.
- Tarmac last reviewed these CI-CD Pipelines interview questions on 30 November 2026.
At a glance
| Questions | 10 shown · 20 in the bank |
|---|---|
| Difficulty | 1–5 of 5 |
| Formats | Multiple answer, True / false, Short answer, Multiple choice, Flashcard, Ordering, Design exercise |
What you'll review
- continuous delivery
Practice questions
Try one before you open the answer. Pick an option and press Check; it's marked on the spot.
Which of the following statements are TRUE of Continuous Delivery (CD) as distinct from Continuous Deployment? Select all that apply.#
Options
Pick every one that applies.
Show answer
Continuous Delivery keeps every passing change in a deployable state through automated build, test, and packaging, but the release to production is triggered by a manual approval or gate. Continuous Deployment goes one step further by automatically pushing every passing change to production with no human intervention.
Continuous Delivery means every successful build is kept in a releasable state and the pipeline automates build, test, and packaging. However, the actual push to production requires a manual approval or gate. Continuous Deployment, by contrast, automatically releases every passing change to production with no human intervention. Therefore "Every change that passes the pipeline is in a deployable state", "The deployment to production is a manual or approval-gated decision", and "Build, test, and packaging are fully automated" describe Continuous Delivery, while "Every change is automatically deployed to production without any human gate" describes Continuous Deployment.
Which of the following are standard stages you would expect in a Continuous Delivery pipeline? Select all that apply.#
Options
Pick every one that applies.
Show answer
A standard Continuous Delivery pipeline includes automated build, automated testing (unit and integration), and artefact packaging stages. Automatic production deployment on every commit with no approval is a feature of Continuous Deployment, not Continuous Delivery, which gates the production release behind a manual approval.
A standard Continuous Delivery pipeline includes automated build, automated testing (unit and integration), and artefact packaging stages. These ensure every change is validated and kept in a releasable state. Automatic deployment to production on every commit with no approval — is the defining characteristic of Continuous Deployment, not Continuous Delivery, where the production release is gated by a manual decision.
In a Continuous Delivery pipeline, best practice is to build the deployable artifact once and promote that same artifact through test, staging, and production, instead of rebuilding it for each environment.#
Options
Show answer
Continuous Delivery pipelines should build the artifact once and promote that same artifact through every environment. Rebuilding for each environment risks shipping binaries that differ from the ones that were tested. Settings that change between environments are injected as configuration at deploy time, not baked into separate builds.
Rebuilding for each environment means production could run binaries that differ from what was tested, for example because of different dependency versions or a different build machine. If you build once and promote the same artifact, the thing you tested is the thing you release. Settings that differ between environments are supplied as configuration at deploy time.
In Continuous Delivery, what is a deployment pipeline's "commit stage", and why should it be fast?#
Show answer
The commit stage is the first stage of the pipeline and runs on every commit. It compiles the code, runs unit tests and static analysis, and produces the build artifact. It should finish within minutes so developers get feedback quickly and can fix a broken build before moving on. Slower acceptance and performance tests run in later stages.
The commit stage is the first quality gate in the pipeline. It catches most defects cheaply by compiling, running unit tests, and checking the code. Because it runs on every commit, it has to be fast. If it is slow, feedback reaches developers late, problems pile up, and the team stops trusting the pipeline.
In a mature continuous-delivery pipeline, what is the purpose of keeping every commit on the mainline (trunk) in a deployable state, and what technique is commonly used to safely ship incompletely-developed features without breaking that guarantee? Answer in 1-2 sentences.#
Show answer
Keeping every commit on the mainline in a deployable state ensures the software can be released to production at any point, which is the core promise of continuous delivery. Incompletely-developed features are commonly hidden behind feature flags (toggles) so they can be merged and deployed without being visible to end users.
Continuous delivery requires that the mainline always be in a releasable state so that deployment is a routine, low-risk event rather than a special coordinated effort. Feature flags (also called feature toggles) are the standard mechanism for decoupling deployment from release: code for an unfinished feature can be merged and deployed behind a flag that keeps it dormant in production until the feature is ready to be activated.
A team says it practices continuous delivery (as defined by Humble and Farley), not continuous deployment. Which statement describes what separates the two practices?#
Options
Show answer
Continuous delivery keeps every change that passes the pipeline ready to release, but a person decides when it goes to production. Continuous deployment automates that last step, so every passing change ships to production with no human approval. Both practices use the same automated build, test, and promotion pipeline. The only difference is the manual release trigger.
Continuous delivery keeps the software releasable at all times. Every change goes through an automated pipeline that builds, tests, and deploys it to production-like environments, but someone still triggers the production release, usually with one click. Continuous deployment removes that manual step, so every change that passes the pipeline ships automatically. The other options are wrong for these reasons. Both practices depend on automated acceptance testing. Both recommend building the artifact once and promoting that same artifact through each environment. Merging to main without producing a deployable artifact is only continuous integration.
In Humble & Farley's continuous delivery model, what core guarantee does the deployment pipeline give about every build that passes all of its stages?#
Show answer
Each such build is potentially releasable: it has passed every configured stage and could be deployed to production at any time. The gates lower risk but do not prove the build is safe.
Humble & Farley define continuous delivery around the idea that every build that passes all pipeline stages is potentially releasable, meaning it is a candidate that could go to production. The automated stages establish that candidate status, but they reduce risk rather than prove safety, so the card should not say a passing build is proven safe. The question asks only for this guarantee, so the answer is one idea that can be checked against the book's wording. Other practices the book covers, such as building artifacts once, automated deployment, version control, and fast feedback, are not part of the key.
In a zero-downtime continuous delivery pipeline, you need to migrate a production database column from email_address to contact_email using the expand-and-contract (parallel change) pattern. Place these five steps in the strict order they must be executed to avoid data loss, dropped writes, or application errors.#
Put these in order
Show answer
The expand-and-contract sequence is: (1) add the new column with an additive migration, (2) deploy dual-write code that populates both columns on every write, (3) backfill existing rows from the old column, (4) deploy code that reads exclusively from the new column and drops all references to the old one, (5) drop the old column. Each step has a hard dependency on its predecessor — the column must exist before dual-write, dual-write must be active during backfill to avoid write gaps, all data must be present before reads switch, and no application code may reference the old column before it is dropped.
Each step has a hard data-dependency on its predecessor. The additive migration — ALTER TABLE users ADD COLUMN contact_email VARCHAR(255) — must land first; application code cannot write to a column that does not exist. Dual-write — deploying application code that dual-writes to both email_address and contact_email on every insert and update — must be active before the backfill runs; otherwise any concurrent update during backfill would write to the old column but leave the new column stale, creating a permanent write gap. The backfill — copying every existing email_address value into contact_email — must complete before reads switch — deploying application code that reads from contact_email exclusively and no longer references email_address in any read or write path — because reading from an unpopulated column returns NULLs for historical rows. The application must stop all references to the old column — deploying application code that reads from contact_email exclusively and no longer references email_address in any read or write path — before the contractive migration drops it — ALTER TABLE users DROP COLUMN email_address — dropping a column that active application code still queries causes immediate runtime failures. This ordering is the defining invariant of the expand-and-contract pattern for zero-downtime schema evolution in CD.
In the Continuous Delivery deployment pipeline model (Humble & Farley), place these pipeline stages in the order a single immutable build artifact passes through from source commit to production release, where each stage must succeed before the next one can consume that artifact.#
Put these in order
Show answer
In the Continuous Delivery deployment pipeline, the order is commit stage, automated acceptance tests, UAT/staging sign-off, then production release. The commit stage must create the immutable artifact before anything can deploy it, acceptance tests need that deployed artifact, manual sign-off happens only after automated gates pass, and release promotes the same artifact that cleared every gate.
Each gate consumes the output of the one before it, and the same immutable artifact moves through all of them. The commit stage must run first because it produces the versioned artifact that every later stage deploys; without it there is nothing to test. Automated acceptance tests need that artifact deployed to an environment, so they follow the commit stage. The UAT/staging gate places human exploratory testing and sign-off on a build that has already passed the automated checks, so it comes after acceptance tests. The release stage is last because it promotes only the exact artifact that cleared every preceding gate. Non-functional tests are deliberately left out because their placement relative to acceptance and UAT varies by project, so they do not form a strict order.
You own the continuous delivery platform for a company with ~300 microservices sharing one PostgreSQL cluster per domain. Leadership wants every merge to main to be releasable to production within 30 minutes, with automated rollback, while schema changes and inter-service API changes currently cause most production incidents. Design the deployment pipeline and release strategy: how artifacts move from commit to production, how you gate promotion, how you handle database schema evolution and service contract changes safely, and how rollback works when a release includes a migration.#
Show answer
Commit stage (<8 min): compile, unit tests, static analysis and test-impact-selected suites run in parallel; produce one OCI image identified by digest plus SBOM and signature. That digest is the only thing ever deployed; environment config comes from config maps/secrets, so what we tested is byte-identical to what ships. Acceptance stage (~10 min): deploy digest to an ephemeral namespace, run component and smoke tests against dependencies stubbed from contracts. Contract gate: consumers publish Pact contracts to a broker; providers verify against all consumer versions deployed in prod, and the pipeline calls can-i-deploy before promotion. Breaking changes require a new API version or additive fields with tolerant readers, so services never deploy in lockstep. Schema: migrations follow expand/contract. Release N adds the new column/table (nullable, backfilled online in batches), code writes both and reads old; N+1 reads new; N+2, after old code is gone from all environments, drops the old column. Every migration is backward compatible with the previous app version, so rollback is just redeploying the previous digest — we never run down-migrations under pressure. Migrations run as a separate pipeline step before the code rollout and are linted for locking operations. Production: Argo Rollouts canary at 5%→25%→100% with automated analysis comparing error rate and p99 latency against the stable baseline and SLO; failure auto-aborts and routes traffic back to stable within a minute. Risky behavior ships dark behind feature flags, so deploy is decoupled from release and flags provide a kill switch. Total path ~25 minutes, with longer soak/perf tests run asynchronously and feeding back into the canary metrics.
A staff-level answer must address why CD fails here: environment drift (solved by build-once promotion), irreversible schema coupling (expand/contract keeps rollback a pure redeploy), cross-service breaking changes (consumer-driven contracts gate promotion without lockstep deploys), and unsafe releases (metric-driven progressive delivery with auto-rollback and flags), all within an explicit time budget. Each rubric criterion targets one of these distinct failure modes.
Related interview questions
Job market
See ci-cd-pipelines salaries and hiring demand from live job postings.
The other 10 questions
This page shows 10 and marks what you pick. That's as far as a page can go. A free account opens the other 10 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.
Free · the whole bank · 100 answers per 30 days, each marked with written feedback