Cloud & DevOps5 min read10 interview questionsNew · November
CI/CD: tests and deploys on autopilot
How every code change is checked and released without manual steps.
In one sentenceContinuous integration runs your tests on every change. Continuous delivery then ships the passing change for you.
Think of it like thisIt is a factory line with quality checks: every product is inspected automatically before it leaves the building.
The big picture
Tap any step to see where to use it, how to use it and an example result.
Continuous integration
Everyone merges small changes often, and a server builds the code and runs the tests each time. Problems are found within minutes, while the change is still fresh in your head.
Continuous delivery and deployment
Delivery means every passing change is ready to release at the press of a button. Deployment goes one step further and releases it automatically. Both rely on good tests and easy rollbacks.
What you need
A Git repository, a script that builds and tests the app, and a service to run it such as GitHub Actions. This site itself deploys from GitHub to Cloudflare whenever a change is pushed.
Common mistakes
- Skipping tests so the pipeline is always green.
- Making the pipeline so slow that people avoid it.
- Putting secrets directly into pipeline files instead of secret storage.
Quick recap
- Every change is built and tested automatically
- Failing tests block the release
- Small frequent changes are safer
- Secrets belong in secret storage
Try it yourself
Create a free GitHub repository with one test, and add a GitHub Actions workflow that runs it on every push.
Top 10 interview questions
Ordered from basic to advanced. Try answering out loud first, then open the answer.
What does CI/CD stand for?Basic
Continuous Integration and Continuous Delivery or Deployment. It is the practice of automatically building, testing and releasing code each time it changes.
What is continuous integration?Basic
Developers merge small changes often, and each change triggers an automatic build and tests, so problems are found within minutes.
What is the difference between continuous delivery and continuous deployment?Basic
Delivery means every change is always ready to release, but a person presses the button. Deployment goes further and releases automatically when all checks pass.
What is a pipeline?Basic
The automated sequence of steps a change goes through, typically build, test, scan, package and deploy, each running only if the previous step passed.
What belongs in a good CI pipeline?Intermediate
Fast checks first: linting, unit tests, then integration tests, security and dependency scans, and building the artifact. Keep it fast so developers do not avoid it.
What are deployment strategies such as blue-green and canary?Intermediate
Blue-green keeps two identical environments and switches traffic from the old to the new. Canary sends a small share of users to the new version first and grows it if metrics look healthy. Both make rollback easy.
How should secrets be handled in a pipeline?Intermediate
Never commit them. Store them in the CI system's secret store or a vault, inject them at run time, keep them out of logs, and prefer short-lived credentials such as OIDC over long-lived keys.
What is an artifact and why build it only once?Intermediate
The packaged output of a build, such as a container image. Build it once and promote the same artifact through test, staging and production, so what you tested is exactly what you ship.
How do you roll back a bad release?Advanced
Redeploy the previous artifact, switch traffic back in blue-green, or turn a feature flag off. Database changes should be backward compatible so the old code still works with the new schema.
How would you speed up a slow pipeline?Advanced
Run independent jobs in parallel, cache dependencies and build layers, run only the tests affected by a change, use faster runners and split long test suites.
Guides are simplified on purpose. Tool names and details change, so check the official documentation before relying on a detail.