AlgoMaster Logo

Team Workflows - Quiz

1 min readUpdated December 2, 2025
Listen to this chapter
Unlock Audio

Team Workflows Exercises

30 quizzes

1
Code Completion

Create a new branch for a feature without switching away from your current branch, following your team's naming convention

shell
1
git branch feature/jane/team-setup-logging

Click an option to fill the blank:

2
Code Completion

Download new commits from the default remote without merging them, so you can inspect changes before integrating

shell
1
git origin

Click an option to fill the blank:

3
Code Completion

Add a branch protection rule so that pull requests into the main branch require status checks to pass before merging

shell
1
git config --add branch.main.requireStatusChecks

Click an option to fill the blank:

4
Code Completion

Stage changes only in the docs directory of a monorepo before opening a documentation review

shell
1
git docs/

Click an option to fill the blank:

5
Code Completion

Tag the current commit with a semantic version before cutting a production release

shell
1
git tag -a v2.1.0 "Release backend services v2.1.0"

Click an option to fill the blank:

6
Multiple Choice

Which team workflow best fits a small team deploying multiple times per day from a single main branch?

7
Multiple Choice

In a hosted Git platform, which permission level should typically be given to someone who configures branch protection and integrations?

8
Multiple Choice

Why would a team define a CODEOWNERS file for a monorepo?

9
Multiple Choice

Which branching strategy explicitly separates long-lived master and develop branches plus dedicated release branches?

10
Multiple Choice

What is the main benefit of requiring status checks on a protected main branch?

11
Sequencing

Order the steps to onboard a new developer to a team Git workflow using feature branches and protected main

Drag and drop to reorder, or use the arrows.

12
Sequencing

Order the steps to configure branch protection and code review for main in a hosted Git repository

Drag and drop to reorder, or use the arrows.

13
Sequencing

Order the steps to prepare and tag a release in a Git Flow-style workflow

Drag and drop to reorder, or use the arrows.

14
Sequencing

Order the steps to update a feature branch in a monorepo with latest changes from main before opening a pull request

Drag and drop to reorder, or use the arrows.

15
Output Prediction

You are on the branch release/2.0.0 preparing a production release. What will this command print?

1git branch --show-current
16
Output Prediction

In a monorepo, you're currently inside the project-a directory but still on a shared branch feature/cleanup. What does this command output?

1git rev-parse --abbrev-ref HEAD
17
Output Prediction

After tagging v1.4.3 on the current commit in your release management process, what will this command print?

1git describe --tags --exact-match
18
Output Prediction

Your main branch is configured as the default upstream. What will this show while you are on main?

1git rev-parse --abbrev-ref --symbolic-full-name @{u}
19
Bug Spotting

Find the incorrect command in this workflow for creating a protected release branch and pushing it

Click on the line(s) that contain the bug.

shell
1
git checkout main
2
git pull origin main
3
git branch release/1.2.0
4
git checkout release/1.2.0
5
git push origin main
6
 
20
Bug Spotting

Identify the incorrect command in this code owner review workflow

Click on the line(s) that contain the bug.

shell
1
git checkout -b feature/joe/update-api
2
# edit files in src/api
3
git add src/api
4
git commit -m "Update API endpoints"
5
git push origin main
6
 
21
Bug Spotting

Spot the bug in this attempt to protect the production branch and merge a hotfix

Click on the line(s) that contain the bug.

shell
1
git checkout production
2
git pull origin production
3
git checkout -b hotfix/login-timeout
4
# fix bug
5
git commit -am "Fix login timeout"
6
git push origin hotfix/login-timeout
7
 
22
Matching

Match each concept with its primary purpose in team Git workflows

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

23
Matching

Match each access level with what it typically allows in hosted Git platforms

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

24
Matching

Match Git branching patterns with appropriate team scenarios

Click an item on the left, then click its match on the right. Click a matched item to unmatch.

25
Fill in the Blanks

Complete the commands to create a CODEOWNERS file for frontend and docs in a monorepo

shell
1
echo "/src/frontend/ @team-frontend" >
2
echo "/docs/ @team-docs" >>
3
git add
4

Click an option to fill blank 1:

26
Fill in the Blanks

Complete the commands to set up a local main branch to track the remote main for a new team member

shell
1
git checkout -b main
2
git --set-upstream-to=origin/main main
3

Click an option to fill blank 1:

27
Fill in the Blanks

Complete the commands to tag and push a semantic versioned release after merging a release branch

shell
1
git checkout
2
git tag -a -m "Release "
3
git push origin
4

Click an option to fill blank 1:

28
Hotspot Selection

Click the line showing the currently checked-out branch when managing a monorepo

Click on the line to select.

shell
1
  docs-update
2
* main
3
  feature/service-a-refactor
4
  release/2.0.0
5
 
29
Hotspot Selection

Click the line indicating the code owner requested for a pull request touching backend files

Click on the line to select.

shell
1
Reviewers
2
- @team-backend (required)
3
- @alice
4
Status checks
5
- ci/backend-tests (required)
6
 
30
Hotspot Selection

Click the line that shows the semantic version tag used for a production release

Click on the line to select.

shell
1
commit 9f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0 (tag: v3.2.1)
2
Author: Release Bot <bot@example.com>
3
Date:   Tue Nov 5 10:15:00 2024 +0000
4
 
5
    Release v3.2.1
6