Core Concepts · Quick recall Q&A
1 min readRapid overview
Quick recall Q&A
1. What's the difference between CI and CD?
- CI: Automates integration - build, test, merge
- CD (Delivery): Automates release preparation, manual deploy decision
- CD (Deployment): Fully automated deployment to production
2. How do you handle database migrations in CI/CD?
- Run migrations as separate job before deployment
- Ensure backward compatibility (expand/contract pattern)
- Use feature flags for new schema requirements
- Test migrations against production-like data
3. Explain blue-green vs canary deployment
Blue-Green:
- Two identical environments
- Instant switch via load balancer
- Fast rollback
- Higher resource cost
Canary:
- Gradual traffic shift
- Monitor metrics during rollout
- Lower risk, longer deployment
- Requires traffic splitting capability
4. How do you secure CI/CD pipelines?
- Use secrets management (never commit secrets)
- OIDC for cloud authentication
- Least privilege access for service accounts
- Branch protection rules
- Audit logging
- Sign artifacts/images
- Dependency scanning