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.
More on CI/CD pipeline deep-dive
Walk me through your CI/CD pipeline stage by stage.BeginnerWhy did you choose GitHub Actions (or Jenkins, or GitLab CI) for this pipeline?IntermediateHow did you share pipeline logic across many repositories?IntermediateHow did your pipeline authenticate to AWS (or your cloud)?IntermediateHow did you tag and version container images?BeginnerHow did you promote a build from staging to production?Intermediate