CI vs CD explained
Explain Continuous Integration vs Continuous Delivery vs Continuous Deployment with a real pipeline example.
Answers use simple, clear English.
Audio N/AQuick interview answer
CI: every change is built and tested automatically (PR checks). Continuous Delivery: every green main build is releasable; prod deploy may need approval. Continuous Deployment: every green main goes to prod automatically.
Detailed answer
CI: every change is built and tested automatically (PR checks). Continuous Delivery: every green main build is releasable; prod deploy may need approval. Continuous Deployment: every green main goes to prod automatically. Example: PR runs tests → merge builds image → auto-deploy staging → approval gate → prod canary.
Real example & use case
SaaS API: Actions CI on PR; staging auto; prod requires environment reviewer.
Pros & cons
Pros: faster feedback and safer releases. Cons: needs test discipline and rollback.