Test what you actually know about CI/CD. Free sample questions below, from easy to hard, with instant explanations.
CD covers what happens after code passes CI: Continuous Delivery/Deployment automates getting that already-tested code out to staging or production quickly, rather than being about containers, distribution, or config files.
Running automated tests on every single change means a bug gets flagged the moment it's introduced, while it's still fresh and easy to trace, rather than being discovered days or weeks later once it's already reached production and affected real users.
Trunk-based development means everyone merges small changes into the main branch constantly instead of working for weeks on a separate feature branch. Frequent small merges are much easier to integrate cleanly than one giant merge at the end, which is exactly the conflict-heavy scenario long-lived branches create.
GitLab looks for one specific file at the root of your repo, .gitlab-ci.yml, and that's what tells its Runners which jobs and stages to execute. Other names like pipeline.yml or gitlab.yml simply won't be recognized.
Blue-green deployment keeps two full, identical production environments running side by side, one live (blue) and one idle with the new version (green). Switching traffic from blue to green happens instantly, so there's no downtime, and if anything goes wrong you can just switch back to blue just as fast.
The latest tag doesn't point to one fixed image, it can silently point to a different image tomorrow with no version number changing. That means two deployments that both say 'latest' might actually be running completely different code, which makes it impossible to reliably reproduce a build or roll back to what you had before.
A build matrix lets you define one job template and have the CI system automatically run it once for every combination of specified variables, for instance testing against three Node versions on both Ubuntu and Windows. This catches environment-specific compatibility issues without hand-writing a near-identical job for every combination. It's about multiplying test coverage across environments, not about caching artifacts or handling secrets.
A feature flag decouples DEPLOYING code, getting it running in production, from RELEASING it, making it visible or active for users, so the team can ship early and flip the flag on demand without a fresh deploy. Holding a long-lived feature branch reintroduces the merge-conflict risk that CI/CD is meant to avoid, and blocking all inbound traffic would take down the whole site, not just hide one feature. This decoupling is one of the core reasons feature flags are considered a deployment risk-reduction tool.
If your test suite has jobs that don't depend on each other, like linting and unit tests, there's no reason to make them wait in line. Pipeline parallelization runs those independent jobs on multiple runners at the same time, so the whole pipeline finishes in the time of the slowest single job instead of the sum of all of them.
By automating the repetitive parts (building, testing, releasing), CI/CD removes a lot of room for human error and shortens the time between writing code and finding out if it works, which is why teams end up shipping faster and with more confidence.
Real scenario-based DevOps questions, hands-on practice, and clear explanations for every answer.