All quizzes
Free quiz · 40 questions in the bank

GitLab CI quiz

Test your GitLab CI knowledge with a free interactive quiz — 40 questions with answers and explanations. No signup needed to play.

Question 1/12Score 0

What is the purpose of `before_script`?

In this round
  1. What is the purpose of `before_script`?
  2. What is the only required key for a job in `.gitlab-ci.yml`?
  3. What does `docker-compose`-style multi-line YAML like `script: ['npm ci', 'npm test']` versus a YAML block list accomplish in a job?
  4. What does a GitLab Runner do?
  5. What is the purpose of the `tags` key on a job?
  6. Where should you store a secret API token used by a deploy job?
  7. What file defines a GitLab CI/CD pipeline?
  8. What does the `environment` keyword on a deploy job enable?
  9. What does the `image` keyword specify for a job?
  10. What is a merge request pipeline?
  11. What are GitLab.com "shared runners"?
  12. What does `artifacts` do differently from `cache`?
Gaps to close?
Read the curated GitLab CI notes — core concepts, patterns, interview prep.
GitLab CI notes

More quizzes

.NETAccessibilityAgile MethodologyAlertmanagerAlgorithmsAndroid