CI/CD scenario interview questions

Pipeline questions test judgment under pressure: the release is late and tests are flaky, a third-party action was compromised, a deploy broke prod and you have to choose between rolling back and fixing forward.

Each question below is the exact prompt from a DevOps Ledger challenge. Decide what you would do, then open the challenge to defend it.

12 scenarios: 4 beginner, 6 intermediate, 2 advanced. Answer keys reviewed by Branko Petric.

What interviewers probe

  • When it is acceptable to bypass a gate, and what it costs
  • Short-lived credentials in CI and pinning third-party actions
  • Choosing between rollback and a forward fix

The questions

  1. 01intermediate12 min

    3 AM Outage: Roll Back or Fix Forward?

    Checkout error rate jumped from 0.1% to 9% right after release v412. You can roll back to v411 in about 2 minutes, or push a fix forward with an unknown ETA. What do you do, and why?

    Practice this scenario
  2. 02beginner8 min

    Tests Pass Locally, Fail in CI. Just Retry?

    Your test suite passes on your laptop but fails in CI. A teammate says CI is just flaky, add a retry and re-run until it is green. What do you do, and why?

    Practice this scenario
  3. 03intermediate12 min

    The Pipeline Is Slow. Skip Tests to Ship?

    Your deploy pipeline takes 40 minutes, and the team is frustrated. A teammate proposes skipping the test stage so releases ship faster. Do you agree, and what do you do instead?

    Practice this scenario
  4. 04advanced15 min

    Your CI Has Keys to Prod and Pulls Unpinned Deps

    Your CI pipeline pulls dependencies on every build, runs their code, and holds long-lived credentials with broad access to production. A teammate says just add a vulnerability scanner and we are secure. Is that enough, and what would you actually do?

    Practice this scenario
  5. 05intermediate12 min

    Deploy From CI: Paste AWS Keys Into GitHub Secrets?

    The deploy job needs AWS permissions. A teammate created an IAM user, generated an access key and secret, and wants to store them as GitHub Actions secrets so the pipeline can deploy. Do you agree, and what do you do instead?

    Practice this scenario
  6. 06intermediate13 min

    After an Outage, Mandate Manual Approval on Every Deploy?

    A bad deploy caused a two-hour outage. Leadership now wants a mandatory manual approval gate on every production deploy, where a lead signs off before anything ships. Do you agree, and what do you propose instead?

    Practice this scenario
  7. 07advanced15 min

    It Is Just a Config File. Push It to Every Region at Once?

    A rules file regenerated from a database every few minutes was hot-reloaded by every edge proxy worldwide, and a bad version crashed all of them at once. The team proposes a manual approval on every publish, raising the proxy's size limit, or keeping the global push but making it faster. Which do you pick, and what do you actually change?

    Practice this scenario
  8. 08intermediate12 min

    A GitHub Action You Use Was Hijacked. Bump the Tag and Move On?

    A popular third-party scanner action had its version tags moved to a malicious commit for about twelve hours. Your org references it as @v2 in around 40 repos, and scheduled jobs ran during that window. A teammate opened PRs bumping to the maintainer's new safe tag and wants to close the ticket because the logs look normal. Do you agree, and what do you do?

    Practice this scenario
  9. 09beginner8 min

    1.6GB Docker Image, 8-Minute Builds. Add Runners?

    Your Node app's Docker image is 1.6GB and every code change rebuilds dependencies from scratch, so CI takes 8 minutes. A teammate says just add more CI runners. How do you fix the image, and why?

    Practice this scenario
  10. 10beginner9 min

    Deploys Are SSH + git pull at 5pm Friday. Why Change It?

    Your team deploys by SSHing into the prod server and running git pull, and the current release is planned for 5pm on Friday. A teammate says this has worked for two years, so why change anything? What do you argue, and why?

    Practice this scenario
  11. 11beginner9 min

    The Build Is Slow, So Let's Just Add --no-cache to CI?

    Docker builds in CI are taking 11 minutes and sometimes ship stale dependencies. A teammate says just add --no-cache to every build so we always get a clean image and stop debugging cache weirdness. What do you do, and why?

    Practice this scenario
  12. 12intermediate12 min

    ArgoCD Says OutOfSync Forever. Ignore the Secret Diff and Move On?

    After moving a third-party Helm chart from helm install to ArgoCD, the app is permanently OutOfSync, the admin password keeps resetting, one sync left a component crash-looping on database auth and agents in another cluster failing TLS. The team proposes ignoreDifferences on all the Secrets, turning on auto-sync with selfHeal, or going back to running helm upgrade by hand. Which do you pick, or what do you do instead, and why?

    Practice this scenario

Worked answers

Free CI/CD guides

Practice defending your decisions

DevOps Ledger is a scenario-based DevOps and SRE interview practice platform: you pick a real production incident, defend your decision in a chat against a senior-engineer AI that pushes back, and get scored against an answer key written before you started.

A general chatbot makes up an answer on the spot. DevOps Ledger grades you against an answer key written before you started.

One payment. 12 months of access. No subscription, nothing renews.

Get full access - $19

Other topics