DevOps Engineer interview question · Most asked
A production deployment failed halfway and the site is partially broken. What do you do?
Summary
Mitigate first: stop the rollout and roll back to the last known good version (or forward with a known fix if rollback is unsafe), communicate status, and confirm recovery with metrics. Then investigate why the pipeline let it through and why it failed halfway, and add safeguards.
Longer Answer
Considerations: was a database migration already applied (is the old code compatible)? Are there mixed versions running? Are caches or queues holding data written by the new version? Afterwards, run a blameless postmortem: what signals could have stopped the rollout earlier (canary analysis, health checks), what test would have caught it, and how to make rollback faster and safer.
Key Points
- Stop the rollout; roll back.
- Check migrations and mixed versions.
- Communicate and verify recovery.
- Postmortem; add automated safeguards.
More most-asked DevOps Engineer questions
- Design a CI/CD pipeline for a containerised microservice from commit to production.
- What are DORA metrics, and how would you use them without gaming them?
- How do you handle database schema migrations in an automated deployment pipeline?
- How do you handle secrets in CI/CD pipelines securely?
- What happens when you type a URL into a browser and press Enter?
- Your CI pipeline takes 45 minutes. How would you speed it up?
- How do you secure the CI/CD pipeline itself against supply-chain attacks?
- What does 'build once, deploy many' mean, and why does it matter?