GitHub GH-900 sample questions with explanations, traps, topic labels, and IT Mastery route links.
These original sample questions are designed to help you check how the exam topics appear in decision-style prompts. They are not taken from the live exam.
Use these sample questions as a guided self-assessment for GitHub Foundations (GH-900) topics such as repositories, branches, commits, pull requests, issues, projects, permissions, account security, GitHub Actions awareness, and collaboration workflow. The prompts focus on choosing the right GitHub object or control for a realistic team situation.
The sample set below is part of the GitHub Foundations GH-900 guide path:
Work through each prompt before opening the explanation. Foundations questions usually test whether you choose the right collaboration feature and protect the workflow without over-engineering it.
Topic: Reviewing a change before merge
A developer has finished a small feature on a branch. The team wants discussion, code review, automated checks, and a visible record before the change reaches the default branch. Which GitHub feature best fits?
Best answer: B
Explanation: A pull request is the collaboration object for reviewing branch changes before merge. It supports discussion, review comments, checks, merge decisions, and a durable record of what changed.
Why the other choices are weaker:
What this tests: Pull request purpose, branch workflow, code review, and checks.
Related topics: Pull requests; Branches; Reviews; Status checks
Topic: Tracking work without changing code
A product team wants to track a bug report, assign an owner, add labels, discuss reproduction steps, and link the eventual code fix. What should they create first?
Best answer: C
Explanation: Issues are built for tracking work, discussion, labels, assignment, and linking to pull requests. The code fix can come later in a branch and pull request.
Why the other choices are weaker:
What this tests: Choosing between issues, pull requests, releases, and repository settings.
Related topics: Issues; Labels; Assignment; Work tracking
Topic: Protecting a repository secret
A beginner adds an API key to a public repository by mistake. The team removes the line from the newest commit. What should they do next to reduce risk?
Best answer: D
Explanation: Removing a secret from the latest file is not enough because it may still exist in history, forks, caches, or logs. The safer response is to revoke or rotate the credential and then investigate exposure.
Why the other choices are weaker:
What this tests: Secret exposure response, repository history, and account-security basics.
Related topics: Secrets; Repository history; Credential rotation; Security basics
Tech Exam Lexicon and IT Mastery are independent study tools. They are not affiliated with, endorsed by, or sponsored by GitHub or any certification body.