microsoft gh-900 practice test

Exam Title: GitHub Foundations

Last update: Nov 27 ,2025
Question 1

As a user, what feature can you use to merge proposed changes in a repository on GitHub?

  • A. Issues
  • B. Pull requests
  • C. Projects
  • D. Discussions
Answer:

B


Explanation:
The feature you can use to merge proposed changes in a repository on GitHub is Pull requests. Pull
requests are a core feature of GitHub, allowing developers to propose changes to a codebase, review
code, discuss the changes, and eventually merge them into the main branch. This collaborative
workflow ensures that code is reviewed and vetted before becoming part of the project.

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 2

What layouts are available for GitHub Projects?
(Each answer presents a complete solution. Choose three.)

  • A. Roadmap
  • B. Kanban
  • C. Board
  • D. Table
  • E. Backlog
Answer:

B, C, D


Explanation:
GitHub Projects supports various layouts to help teams organize and visualize their work. The
available layouts include:
B . Kanban: This is a visual task management tool where tasks are represented as cards and moved
across columns that represent different stages of work.
C . Board: This layout is similar to Kanban but can be more flexible, allowing users to set up boards in
various ways to suit their workflow needs.
D . Table: The Table layout allows you to view your tasks in a spreadsheet-like format, making it easy
to manage and edit large amounts of data at once.
Roadmap and Backlog are not standard layouts provided by GitHub Projects. While these terms
might be relevant in other project management contexts, GitHub Projects specifically offers Kanban,
Board, and Table layouts.

vote your answer:
A
B
C
D
E
A 0 B 0 C 0 D 0 E 0
Comments
Question 3

Which of the following describes a branch in Git?

  • A. A pointer to an identical snapshot of the project at a specific point in time
  • B. A physical copy of the entire project stored on disk
  • C. A separate, isolated copy of the project's codebase
  • D. A new repository that shares code with the original "upstream" repository
Answer:

C


Explanation:
In Git, a branch is a fundamental concept that represents an independent line of development within
a project. Here's a more detailed explanation:
Branch in Git:
Option C is correct because a branch in Git is essentially a separate, isolated copy of the project's
codebase where you can make changes without affecting the main codebase. Branches allow
developers to work on features, fixes, or experiments in parallel to the main project.
Other Options:
Option A is incorrect because while a branch does point to a specific commit (which represents a
snapshot of the project), the description lacks the emphasis on the isolated and parallel
development aspect that is critical to the understanding of branches.
Option B is incorrect because a branch is not a physical copy stored on disk; it is a logical reference
within the repository.
Option D is incorrect because that description better fits the concept of a fork, not a branch. A fork is
a new repository that is a copy of another repository, usually used to contribute back to the original
("upstream") repository.
Reference:
Git Documentation: Branches in a Nutshell
GitHub Docs: Understanding the GitHub Flow

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 4

Where should a repository admin navigate to view pre-built visualizations from repository data?

  • A. Settings
  • B. Issues
  • C. Insights
  • D. Charts
Answer:

C


Explanation:
GitHub provides repository admins with a feature called "Insights" where they can view various pre-
built visualizations and analytics related to the repository.
Insights:
Option C is correct because the "Insights" tab in a GitHub repository offers various pre-built
visualizations, including contributions, traffic, code frequency, dependency graphs, and more. This
helps admins and maintainers track the project's activity and health.
Other Options:
Option A (Settings) is incorrect because the Settings tab is where you configure repository settings,
permissions, and integrations, but it does not provide visualizations of repository data.
Option B (Issues) is incorrect because the Issues tab is used for tracking bugs, enhancements, and
other tasks but does not provide data visualizations.
Option D (Charts) is incorrect as there is no "Charts" tab or section in GitHub. The correct location for
data visualizations is under "Insights."
Reference:
GitHub Docs: Viewing Repository Insights

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 5

How can a user create a repository template, and what permissions are required?

  • A. With Admin permissions, navigate to Repository settings and select Template Repository.
  • B. With Maintain permissions, navigate to Organization settings, select the repository, and choose Template Repository.
  • C. With Admin permissions, navigate to Organization settings, select the repository, and choose Template Repository.
  • D. With Maintain permissions, navigate to Repository settings and select Template Repository.
Answer:

A


Explanation:
Creating a repository template in GitHub requires specific steps and permissions:
Creating a Repository Template:
Option A is correct because a user with Admin permissions can navigate to the repository's settings
and enable the "Template Repository" option. This allows other users to generate new repositories
from this template, which includes all branches, tags, and file history.
Other Options:
Option B is incorrect because "Maintain" permissions do not allow the creation of repository
templates, and the option is not found in Organization settings but in the repository settings.
Option C is incorrect because the "Template Repository" option is in the repository settings, not in
Organization settings.
Option D is incorrect because "Maintain" permissions do not grant the ability to create a repository
template.
Reference:
GitHub Docs: Creating a Template Repository

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 6

As a user, which of the following default labels is used to indicate that a maintainer needs assistance
on an issue or pull request?

  • A. Enhancement
  • B. Question
  • C. Help wanted
  • D. Documentation
Answer:

C


Explanation:
In GitHub, labels are used to categorize issues and pull requests, and certain default labels are
provided to help manage tasks:
Help Wanted Label:
Option C is correct. The "Help wanted" label is used to indicate that the maintainer of the repository
needs assistance on a particular issue or pull request. This label helps in attracting contributors who
might be interested in helping with specific tasks.
Other Options:
Option A ("Enhancement") is incorrect because it indicates a request for a new feature or
improvement rather than a call for help.
Option B ("Question") is incorrect because it is used to flag issues or pull requests that seek
clarification or additional information, not necessarily requiring assistance.
Option D ("Documentation") is incorrect because it labels issues or PRs related to documentation,
not for seeking help.
Reference:
GitHub Docs: Using Labels

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 7

Which of the following options is available as a default Discussion category?

  • A. Bug report
  • B. Daily check-in
  • C. Show and tell
  • D. Security concern
Answer:

C


Explanation:
In GitHub Discussions, several default categories are provided to help organize conversations within
a project. One of the default categories is Show and tell. This category is designed for users to
showcase their work, share progress, or discuss achievements with the community. The other
options listed (Bug report, Daily check-in, Security concern) are not default categories but could be
custom categories created by the repository maintainers.

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 8

What is a benefit of using GitHub Enterprise Cloud with Enterprise Managed Users (EMU)?

  • A. It provides centralized control and streamlined management of user accounts through their identity provider (IdP).
  • B. It offers additional collaboration and content creation capabilities for managed user accounts.
  • C. It automatically validates user interactions using the identity provider (IdP) conditional access policy (CAP).
  • D. It enables GitHub user accounts access to protected resources using SAML SSO.
Answer:

A


Explanation:
GitHub Enterprise Cloud with Enterprise Managed Users (EMU) integrates closely with an
organization's identity provider (IdP), such as Azure Active Directory, to manage user accounts. The
primary benefit of this setup is centralized control and streamlined management. It allows
organizations to enforce policies, manage user permissions, and provision or deprovision accounts
directly through their IdP, ensuring consistency and security across the organization. This approach is
ideal for large enterprises that require tight control over their users and resources.

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 9

Which of the following is the purpose of a GitHub repository?

  • A. To provide a folder that stores project files, including documentation, on your local machine
  • B. To provide a version control system designed for small projects, offering simple tools for organizing files on your laptop
  • C. To provide a cloud-based hosting service for project documentation, providing a secure and centralized location for file storage
  • D. To provide a collaborative space where developers can share and manage code files, track changes, and store revision history
Answer:

D


Explanation:
A GitHub repository serves as a collaborative space where developers can share and manage code
files, track changes, and store revision history. It is much more than just a folder or simple tool; it is a
comprehensive version control system that allows teams to collaborate effectively on codebases.
Repositories enable developers to work together, manage contributions, review code, and maintain
a complete history of every change made to the project.

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Question 10

Which of the following best describes cloning a repository?

  • A. It creates a copy of the repository on GitHub.com.
  • B. It retrieves code updates from the remote repository.
  • C. It creates a copy of the repository on your local machine.
  • D. It imports your source code into a new repository.
Answer:

C


Explanation:
Cloning a repository in GitHub refers to creating a copy of the repository on your local machine. This
allows you to work on the project offline, make changes, and later push those changes back to the
remote repository. It does not involve creating a copy on GitHub.com (which would be forking),
retrieving updates (which would be pulling), or importing source code into a new repository (which is
done differently).

vote your answer:
A
B
C
D
A 0 B 0 C 0 D 0
Comments
Page 1 out of 7
Viewing questions 1-10 out of 75
Go To
page 2