GitLab CI and GitHub Actions Quiz

5 questions Pass: 70% +25 pts (50 with Pro)

Quiz covering CI/CD Pipelines

What you'll be asked

  1. In GitLab CI, which file must be present in the root of your repository to define the pipeline configuration?
  2. Which GitHub Actions feature allows you to define a specific event that triggers a workflow, such as a push to the main branch?
  3. When defining a pipeline in GitLab CI, how do you ensure that a 'deploy' job only runs after the 'test' job has successfully completed?
  4. In GitHub Actions, what is the primary purpose of using 'actions/checkout@v4' as the first step in a job?
  5. You are migrating a complex pipeline that requires sharing large artifacts between stages. In GitLab CI, which keyword should be used in a job to pass files to the next stage?

Answers and explanations come after you submit.