Interview Prep/Real-World Interview/CI/CD pipeline deep-dive

How did you handle database migrations in your pipeline?

AdvancedBehavioralCI/CD pipeline deep-dive
Answer

Good answer looks like → "Migrations ran as a Kubernetes Job triggered as an Argo CD PreSync hook, using Flyway. We followed expand-contract: add columns and tables first, deploy code that uses both, then remove old columns in a later release. That kept rollbacks safe because old code still worked against the new schema."

Follow-ups to expect → What if a migration fails halfway? How do you roll back a migration? What about long-running migrations on big tables?

Red flags → Running migrations from the app on startup with multiple replicas racing.

All Real-World Interview questions Roadmap: Interview readiness

More on CI/CD pipeline deep-dive