Associated preparation
GitLab CI/CD Associate labs
A 50-item questionnaire in 75 minutes, online and unproctored: the redesigned exam no longer has a hands-on project graded by GitLab engineers. It covers .gitlab-ci.yml, runners, registries, scanners and pipeline troubleshooting, with no published weighting per domain.
Back to all 761 labsHow to run a lab
- 21 labs
- 16 hours of practice
- 21 on a virtual machine
DSOXLab runs these labs on your machines
DSOXLab is the command-line tool behind every lab on this page. It prepares the environment, hands you the mission and checks the result, so the score comes from the state you actually built.
- Prepare It sets up the lab environment: the virtual machines, and the cluster when the lab uses one.
dsoxlab start <lab> - Practise You read the mission, then solve it yourself on the system, connecting to the machines when the lab has some.
dsoxlab challenge - Check It runs the tests on the state you produced and computes the score. The tests read that state, not the commands you typed.
dsoxlab check <lab> - Progress Results are recorded on your machine. If you want them on your account on this site, sign in and push them, when the catalogue allows it.
dsoxlab login / dsoxlab push
Install it with uv or pipx. No administrator rights are needed. uv tool install dsoxlab # or: pipx install dsoxlab Start a lab Install DSOXLab The DSOXLab course Source code on GitHub
Levels 2 intermediate 2 advanced
Official exam objectives published by GitLab
These are not exam questions. They are hands-on exercises on the skills the exam measures, graded on the state of your machine.
Add this catalogue dsoxlab catalog add https://github.com/stephrobert/gitlab-ci-dsoxlab-training every lab played and scored by the author
Kinds of exercise
Guided labs
16
You learn a mechanism with the guide beside you, then the lab checks what you ended up with.
-
Your first pipeline, green, on your own GitLab
Push the FastAPI project to the lab GitLab, write the pipeline that lints, tests and builds it, and get it green. Graded on the pipeline the server really ran, read from the API, never on the file you wrote.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-01-premier-pipeline -
Read a failure and fix it
Diagnose a red pipeline from GitLab's own messages: one configuration error that stops any job from running, then two code errors only a job log reveals. Graded on the three fixes, read from the API, never on the commands typed.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-02-lire-un-echec -
The right image for each job
Three jobs share one heavy Python image, and the build job runs docker build from it, which cannot work. Pick an image that matches what each job does, and give the build job a Docker daemon. Graded on the job logs, never on the file.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-03-images-et-runners -
Cache the dependencies, keep the test report
The pipeline is green but wasteful: every job downloads its dependencies again, and the test results vanish with the job. Add a cache keyed on the dependency file, and publish the JUnit report so GitLab reads it. Graded on the job logs and the pipeline test report.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-04-artifacts-et-cache -
Get the secret out of the repository
A database password sits in plain text in two places, and a job prints it in its log. Take it out of the repository, declare it as a masked and protected CI/CD variable, and prove it no longer leaks. Graded on the repository, the variables and the job logs.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-05-sortir-les-secrets -
Validate before you push
GitLab refuses the pipeline, and the refusal hides a second fault. A third one it accepts without complaint. Find all three without pushing to see, then prove the pipeline runs. Graded on the configuration GitLab accepted and on the jobs that ran.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-07-valider-avant-de-pousser -
Publish the image, and keep it traceable
The pipeline builds an image and throws it away. Publish it to the project registry under a tag that names the commit, from the pipeline itself. Graded on the registry, on the tag, and on the job log that pushed it.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-09-publier-au-registre -
Make the pipeline say what it covers
The tests run and say nothing about how much code they go through. Print the coverage, let GitLab fish it out of the log, and publish a report that shows the uncovered lines in a merge request. Graded on what reached GitLab, not on the file.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-10-rapports-de-qualite -
Two silent failures: nothing runs, nothing complains
Push, and nothing happens: no pipeline at all. Fix that, and a job hangs forever without failing. Diagnose two failures that produce no error message, then prove the pipeline runs. Graded on the pipeline left on the forge.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-11-diagnostiquer-un-job-bloque -
A cache that is never found, and jobs that wait for nothing
The pipeline works and wastes time twice: its cache key changes on every commit, so the cache is never read, and its jobs queue behind stages that do not concern them. Graded on a restored cache and on two jobs overlapping in time.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-12-accelerer-le-pipeline -
Stop repeating the pipeline, without changing what it does
Two jobs declare the same image and the same cache, word for word. Factor them with a hidden job and a YAML anchor, and keep the behaviour exactly as it was. The only lab graded on the file, because resolved factorisation leaves no trace in the state.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-13-factoriser-le-yaml -
Reliable without hiding failures
The pipeline is broken before it even starts: a job sits in a stage that `stages:` does not declare, so no job runs at all. Repair it, then make it reliable: a retry that only covers infrastructure failures, explicit timeouts, and a lock so two deployments never run at once. Graded on the locks the forge really created and on the shape of the merged configuration.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-18-fiabiliser-sans-masquer -
Turn the scanners on, and read what they say
The pipeline tests the application and publishes nothing about its security: no scanner runs, and a GitLab token sits hard-coded in `app/config.py`. Turn SAST and Secret Detection on, read the JSON reports they produce, remove the token and prove with a new scan that it is gone. Grading is taken on the reports the forge really holds, not on the file you wrote.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-21-activer-les-scanners -
Scan the image, and stop shipping a critical flaw
A pipeline builds and publishes its image without anyone looking at it, and a critical vulnerability has reached production. Add a job that scans the published image with Trivy, keep its JSON report as an artifact even when the job fails, make the pipeline fail on a critical vulnerability before any deployment, then rule out in `.trivyignore` the single finding the security team triaged, with its reason written next to it. Graded on what the forge saw: the report kept, the registry image at the commit tag, a pipeline that really failed with no deployment at all, and a single justified exception, absent from the latest report.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-22-scanner-les-images -
Secrets renewed without breaking the pipeline
A green pipeline uses an unprotected, unmasked service token and rewrites an SSH key by hand. Protect and mask the token, turn the key into a file-type variable and adapt the job, then renew the token without interrupting the service: the new one first, proved by a pipeline, and only then the revocation of the old one. Graded on the state the forge holds: variable settings, revoked and active access tokens, executed jobs and their logs.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-20-secrets-avances -
Harden the runner, and close what was wide open
A pipeline runs on a runner that is wide open: its jobs are privileged, any image runs on it, and the container keeps every Linux capability. The pipeline replays two attacks against that runner, and both succeed. Harden the runner configuration (no privileged mode, a list of allowed images, capabilities dropped), then run the pipeline again and prove the two attacks are now blocked while the legitimate job still passes. Graded on the runner configuration and on what the job logs show, never on a file in the repository. Docker-in-Docker no longer works on a hardened runner: the lab says so, and does not practise the workaround.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-25-durcir-le-pipeline
Challenges
4
A mission to solve without a step-by-step procedure: finding the way is up to you.
-
Level exam: a pipeline that tells the truth
The pipeline is green and it lies. A test job is allowed to fail, its report is unreadable, a token sits in plain text in the configuration, and production deploys from any branch. Four defects, none of them named. Make the pipeline tell the truth, graded on what the forge shows.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-ep1-un-pipeline-qui-dit-vrai -
Level exam: a delivery you can trace
The chain claims to deliver and leaves no trace: GitLab knows of no environment, the image never leaves the runner, one job waits forever for a runner that does not exist, and production ships with nobody deciding. Four defects, none of them named. Make the delivery traceable, graded on what the forge shows.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-ep2-une-livraison-tracable -
Level exam: a pipeline to industrialise
The pipeline is green, yet it was only half industrialised: the same boilerplate is copied three times, the tests run one after the other in a single job, a child pipeline is generated but never used, retries replay every failure and the deployment has no lock and no time limit. Five defects, none of them named. Industrialise it, graded on the state the forge reports through its API. No Premium feature is needed.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-ep4-un-pipeline-a-industrialiser -
Level exam: a pipeline you can audit
The pipeline is green and the production deployment works, but nobody could vouch for the chain: a deployment secret travels to every branch and to the logs, anyone with push rights can rewrite main, a merge needs no green pipeline, the images are not pinned, and no scanner has ever run. Five defects, none of them named. Make the pipeline auditable, graded on the state the forge reports through its API. No Premium feature is needed.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-ep3-un-pipeline-qu-on-peut-auditer
Capstones
1
A wider mission that asks you to combine several skills.
-
Rebuild the whole pipeline
The repository has no pipeline at all: not a single CI file. Rebuild one that lints, tests on a matrix with reported results, triggers a dynamic child pipeline, publishes the image to the registry and deploys safely, in five stages and several included files. No step-by-step guide: a specification, and the state the forge has to show at the end.
Graded on the state of the system attested 22 Oct 2026
Command to start it
dsoxlab start gl-19-reconstruire-tout-le-pipeline