All Microsoft exams
Microsoft GH-900: GitHub Foundations
What the GH-900 exam covers and what it costs, with a free 30-question practice test and an explanation for every answer.
- Level
- Foundational
- Topic areas
- 5
- Free practice questions
- 30
- Full question bank
- 100 questions
What the GH-900 exam covers
The topic areas in our GH-900 question bank, with each one's share of the 100 practice questions.
| Topic | Share | Questions |
|---|---|---|
| Git and GitHub fundamentals | 29% | 29 |
| Collaboration and pull requests | 22% | 22 |
| Security and compliance | 20% | 20 |
| GitHub Copilot and automation | 15% | 15 |
| Community and organizations | 14% | 14 |
GH-900 cost and format
| Exam code | GH-900 |
|---|---|
| Certification | GitHub Foundations |
| Vendor | Microsoft |
| Level | Foundational |
| Status | Active |
Last checked October 22, 2026 against the official Microsoft exam page.
GH-900 sample questions
The first 5 questions from the free practice test. Open a question to see the answer and why it is right.
Question 1Git and GitHub fundamentals
A developer has made changes to a file on a local branch and wants to save a snapshot of those changes in the project history. Which Git command creates the snapshot?
- Agit init
- Bgit pull
- Cgit push
- Dgit commit
Show answer and explanationHide answer
Correct answer: Dgit commit records the staged changes as a new snapshot in the local repository history. Cloning copies a remote repository, fetching downloads remote updates without merging, and init creates a new repository.
Question 2Collaboration and pull requests
A pull request must not be merged until at least two reviewers approve it and the automated tests pass. Which GitHub feature enforces this?
- AA README file that asks reviewers to approve the pull request
- BBranch protection rules with required reviews and required status checks
- CA label named approved that reviewers add by hand after each round
- DA wiki page listing the reviewers and their approval status
Show answer and explanationHide answer
Correct answer: BBranch protection rules can require a number of approving reviews and passing status checks before merge, which enforces the policy. A README, a label or a wiki page is informational and does not block merging.
Question 3Security and compliance
A developer accidentally committed an API token to a repository. What should happen first?
- APost the full token value in a new issue so that the whole team and every reviewer can see it and track it
- BLeave the token as it is because the repository is private and access is limited to trusted collaborators
- CRevoke the token and issue a new one, then remove the secret from the history if needed
- DDelete the latest commit with git reset --hard HEAD~1 and force push the branch, leaving the secret
Show answer and explanationHide answer
Correct answer: CA committed secret must be treated as compromised, so revoking and rotating it comes first, and history cleanup is secondary. Assuming privacy, deleting only the last commit and posting the token all leave the secret exposed.
Question 4GitHub Copilot and automation
A developer wants AI-assisted code suggestions and chat inside the editor while writing code. Which GitHub product provides this?
- AGitHub Sponsors
- BGitHub Copilot
- CGitHub Gists
- DGitHub Pages
Show answer and explanationHide answer
Correct answer: BGitHub Copilot provides AI-assisted code suggestions and chat in supported editors. GitHub Pages hosts websites, Sponsors manages funding, and Gists store snippets.
Question 5Community and organizations
A company wants to group its repositories and manage access for several teams from one place. Which GitHub structure should it use?
- AAn organization with teams and repository permissions
- BA single shared password for each department's repositories
- CA personal account for each developer, holding repositories
- DA public gist per team, each listing its members and their roles
Show answer and explanationHide answer
Correct answer: AOrganizations group repositories and manage teams and permissions centrally, which suits a company. Individual accounts, shared passwords and gists do not provide centralized team management.
How to prepare for GH-900
- Read the official Microsoft outline first (exam page), so you know exactly what is in scope.
- Give the most time to Git and GitHub fundamentals and Collaboration and pull requests: together they make up 51% of the questions.
- Take the free 30-question practice test and note which topics you miss.
- Go back to the weak topics, then test again. A practice score shows where to study; it does not predict your exam result.
Full GH-900 question bank
All 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
The full 100-question bank for GH-900 is in final review. The free practice test is open now.
Start the free practice testGH-900 FAQ
Related exams
| Exam | Vendor | Level |
|---|---|---|
| AZ-400: Designing and Implementing Microsoft DevOps Solutions | Microsoft | Expert |
| GH-200: GitHub Actions | Microsoft | Associate |
| AZ-401: Designing and Implementing Microsoft Agentic DevOps Solutions (beta) | Microsoft | Expert |
| GH-100: GitHub Enterprise Administrator | Microsoft | Associate |
| AI-103: Developing AI Apps and Agents on Azure | Microsoft | Associate |
| AI-200: Developing AI Cloud Solutions on Azure | Microsoft | Associate |