30 quizzes
Trigger a CI pipeline in GitLab by pushing a new commit to the main branch
git origin mainClick an option to fill the blank:
Fetch the latest pipeline configuration and code from the default remote before a deployment
git originClick an option to fill the blank:
Stage changes to a GitHub Actions workflow file so they are included in the next commit
git .github/workflows/ci.ymlClick an option to fill the blank:
Create a new branch for experimenting with a different deployment strategy
git deployment-canaryClick an option to fill the blank:
Switch to the Jenkins integration branch before editing the Jenkinsfile
git jenkins-integrationClick an option to fill the blank:
In a CI/CD pipeline, what is the primary purpose of the 'build' stage?
In GitHub Actions, what file location is used to define workflows?
What triggers a GitLab CI pipeline by default when using .gitlab-ci.yml?
In a CI pipeline focused on automated testing, which tests typically run first?
Which deployment strategy minimizes downtime by switching traffic between two identical environments?
Order the steps to add a GitHub Actions workflow that runs tests on each push.
Drag and drop to reorder, or use the arrows.
Order the steps to run a full CI pipeline in GitLab after updating tests.
Drag and drop to reorder, or use the arrows.
Order the steps to integrate a Jenkins pipeline with a Git repository.
Drag and drop to reorder, or use the arrows.
Order the steps for a canary deployment using a CI/CD pipeline.
Drag and drop to reorder, or use the arrows.
You are on branch feature/github-actions. What does this command print?
1git branch --show-currentThe last commit you made was 'Add GitLab CI config'. What does this show?
1git log -1 --pretty=%sYour HEAD is at tag v2.0.0 used for a production deployment. What does this print?
1git describe --tags --exact-matchYou created a branch named jenkins-ci earlier and are currently on it. What is printed?
1git rev-parse --abbrev-ref HEADFind the incorrect command in this GitHub Actions workflow update sequence.
Click on the line(s) that contain the bug.
git checkout maingit pull origin maingit checkout -b ci-updatenano .github/workflows/ci.ymlgit add .github/workflows/ci.ymlgit commit "Update CI workflow"git push origin ci-updateFind the incorrect command in this GitLab CI configuration commit workflow.
Click on the line(s) that contain the bug.
git checkout -b gitlab-ci-setupnano .gitlab-ci.ymlgit add .gitlab-ci.ymlgit commit -m "Add GitLab CI"git push origin .gitlab-ci.ymlFind the incorrect command in this Jenkinsfile change workflow.
Click on the line(s) that contain the bug.
git checkout maingit pull origin maingit checkout -b jenkins-pipelinenano Jenkinsfilegit add Jenkinsfilegit commit -m "Update Jenkins pipeline"git push jenkins-pipeline originMatch each CI/CD concept with its primary purpose.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each CI platform with its configuration file location.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Match each automated test type with what it primarily validates.
Click an item on the left, then click its match on the right. Click a matched item to unmatch.
Complete the commands to prepare and share a blue-green deployment branch.
git checkout git pull origin git push origin Click an option to fill blank 1:
Complete the commands to rebase a feature branch with updated CI tests.
git checkout git fetch git rebase Click an option to fill blank 1:
Complete the commands to commit and push an updated Jenkinsfile.
git add git commit -m git push ci-jenkinsClick an option to fill blank 1:
Click the line that shows the current branch used for the main CI pipeline.
Click on the line to select.
canary-release* main blue-green jenkins-experimentsClick the line that indicates a modified GitHub Actions workflow file.
Click on the line to select.
M .github/workflows/ci.yml M src/app.js?? scripts/deploy.shClick the line showing the commit that added automated tests.
Click on the line to select.
commit a1b2c3d4Author: Dev <dev@example.com>Date: ... Initial project setup commit e5f6a7b8Author: Dev <dev@example.com>Date: ... Add automated tests