Home › Blog › CI/CD interview questions

CI/CD interview questions

CI/CD interviews are about what happens when a deploy goes wrong. Designing the happy-path pipeline is table stakes; the follow-ups are all about rollback, migrations and gates.

Pipeline design

Deployment strategies

StrategyHow it worksCost
RollingReplace instances graduallyTwo versions live at once
Blue-greenSwitch traffic between two full environmentsDouble the infrastructure
CanarySmall traffic percentage first, then widenNeeds good metrics to judge
Feature flagsShip dark, enable separatelyFlag debt if never cleaned up
The rollback question is guaranteed. "You deployed and error rates spiked - what now?" Roll back first, diagnose after. Restoring service beats understanding the cause, and saying so explicitly scores well.

Database migrations, the hard part

Code can roll back; a migration that dropped a column cannot. The expected answer is the expand-and-contract pattern:

Quality gates and metrics

What coverage thresholds are worth (and the honest answer that coverage is a weak proxy), flaky tests as a blocker rather than something to retry around, and which metrics tell you whether the pipeline is healthy - deployment frequency, lead time, change failure rate, time to restore. The surrounding ground is in DevOps interview questions and Git interview questions.

How deep it goes by level

Whatever the level, say your answers out loud rather than reading them. Most of what candidates lose in a CI/CD interview is lost between knowing something and explaining it under observation - the method is in how to use AI for interview prep.

Where CoPilot Interview fits

Disclosure: we build an interview assistant, so treat this as a disclosed pitch. CoPilot Interview is a native Windows and macOS app that puts suggested answers on your own screen in about two seconds, across coding, system design and behavioral rounds, with a permanent free tier that needs no credit card.

Frequently asked questions

What are the most common CI/CD interview questions?

Designing a pipeline and its stages, the difference between deployment strategies such as blue-green and canary, how to roll back safely, running database migrations without downtime, and handling secrets in a pipeline.

How do you roll back a bad deployment?

Roll back first and diagnose afterwards - restoring service beats understanding the cause. That requires having the previous artefact ready to redeploy, and it requires that your database migrations did not make the old code unable to run.

How do you run database migrations without downtime?

Expand and contract: add the new structure, write to both old and new, deploy code that tolerates either shape, backfill in batches, and only drop the old structure once nothing reads it. Never pair a destructive migration with the deploy that depends on it.

What is the difference between blue-green and canary deployment?

Blue-green switches all traffic between two complete environments, giving an instant rollback at the cost of double infrastructure. Canary sends a small share of traffic to the new version first and widens gradually, which catches problems with less blast radius but needs good metrics to judge.

Walk into the round with a second pair of eyes

CoPilot Interview is a native Windows and macOS app that puts suggested answers on your own screen in about two seconds, across coding, system design and behavioral rounds. The free tier is permanent: 15 minutes a day, no credit card.

Try it free