Explore / GitHub Foundations (GH-900) Exam Prep / Practice questions
GitHub Foundations (GH-900) practice questions
10 questions from the bank behind this course's timed mock. Free to read and to answer, no account needed, and each has its answer and an explanation. They belong to GitHub Foundations (GH-900) Exam Prep.
Answer them one at a time →Read lesson 1 free
Question 1
A learner has limited study time and wants to know which GH-900 domains carry the lowest weight, so they can plan the least time for them. Which TWO domains does the study guide (skills as of January 2026) weight at 5–10%? (Select TWO.)
More than one answer is right.
- Manage projects with GitHub
- Collaborate using GitHub
- Explore the GitHub community
- Work with GitHub repositories
- Apply modern development practices
Show the answer
Answers: A. Manage projects with GitHub; C. Explore the GitHub community
Manage projects with GitHub and Explore the GitHub community are the two smallest domains, at 5–10% each. Collaborate using GitHub is a real domain, but it is weighted higher, at 10–15%.
Question 2
A developer is on a long flight with no internet connection. She has finished a change to her project and wants to record it in the project history before landing. What is the best action?
- Create a new branch on github.com, because branches must exist online before commits can be made
- Run git add and then git commit, because Git records history in the local repository without needing a connection
- Save the file only, because Git automatically commits saved files when the computer reconnects
- Wait until she lands, because commits can only be created once GitHub can be reached
Show the answer
Answer: B. Run git add and then git commit, because Git records history in the local repository without needing a connection
Git is distributed, so every local copy holds the full history and commits work offline. Waiting for GitHub is wrong because Git does not need GitHub or the internet to record a commit.
Question 3
A developer on a five-person team is starting work that raises the timeout for the project's automated tests. The team wants to see what is in progress just by looking at the branch list. Which branch name best follows the GitHub Flow?
- main
- davids-branch-2
- increase-test-timeout
- fix
Show the answer
Answer: C. increase-test-timeout
The GitHub Flow asks for short, descriptive branch names so collaborators can tell what each branch is for. "fix" is short, but it does not say what is being fixed, and "main" is the default branch that new work should branch off, not be written on.
Question 4
A developer is writing a bug report in an issue. They want to paste a short Python snippet so that reviewers see it with syntax highlighting. Which Markdown should they use?
- Three backticks followed by the word python on the opening line, the code, then three backticks on a closing line
- The code inside square brackets, followed by (python) in parentheses
- A line starting with ## python, followed by the code
- A single backtick at the start and end of each line of the code
Show the answer
Answer: A. Three backticks followed by the word python on the opening line, the code, then three backticks on a closing line
A fenced code block uses triple backticks, and putting a language name after the opening backticks turns on syntax highlighting. Single backticks only format inline code inside a sentence, so they do not give you a highlighted block.
Question 5
A contractor has read access to a company's private repository. They are asked to report how many unique visitors the repository had last week, but they cannot see the Traffic view in the Insights tab. What is the most likely reason?
- Traffic data appears only after a public-preview feature is turned on in Feature preview.
- An administrator must turn on the dependency graph before Traffic data appears.
- Only people with push access to the repository can see Traffic data.
- Traffic data is available only for repositories in an organization that uses GitHub Enterprise Cloud.
Show the answer
Answer: C. Only people with push access to the repository can see Traffic data.
Only people with push access can see Traffic, so a contributor with read access cannot open it. GitHub Enterprise Cloud is needed for organization-level dependency insights, not for Traffic.
Question 6
A developer has been added to a busy repository that another team maintains. She does not work on it day to day, but she still wants to hear about threads she comments on and any time someone @mentions her. Which watch setting best fits this goal?
- Ignore
- Custom with Issues and Pull requests ticked
- Participating and @mentions
- All Activity
Show the answer
Answer: C. Participating and @mentions
Participating and @mentions notifies her only when she is involved or mentioned, which removes the noise and keeps the messages that matter. Ignore is the closest wrong choice: it sends no notifications from the repository, so she would also lose the ones she wants.
Question 7
A repository maintainer wants a GitHub Actions workflow that deletes stale preview artifacts every night at 02:00, even on nights when nobody pushes code or opens a pull request. Which approach best meets this goal?
- Trigger the workflow with a push event
- Trigger the workflow with a pull_request event
- Configure a matrix build so that the job runs more often
- Trigger the workflow with a schedule event
Show the answer
Answer: D. Trigger the workflow with a schedule event
Workflows can run on a schedule, so the clean-up runs every night whether or not anyone is active in the repository. A push event only fires when someone pushes commits, so on quiet nights the clean-up would never run.
Question 8
A developer closes an issue directly in its repository. That issue is also an item in her team's GitHub Project. What happens to the project item?
- The project item closes too, because the project stays in sync with the underlying issue
- The project item is deleted from the project automatically
- The project item becomes a draft issue that holds a copy of the original
- The project item stays open until someone closes it separately in the project
Show the answer
Answer: A. The project item closes too, because the project stays in sync with the underlying issue
A project sits on top of your issues and stays in sync with them. It does not hold copies, so closing the issue closes the item. The item is not deleted. It stays in the project in its closed state.
Question 9
A developer is choosing a primary 2FA method. Their mobile carrier has a history of SIM-swap fraud, and they want to avoid a method that someone could use just by taking over their phone number. Which primary method should they choose?
- GitHub Mobile as the only method
- A TOTP authenticator app
- A security key as the first and only method
- SMS (text message) codes
Show the answer
Answer: B. A TOTP authenticator app
A TOTP app makes its codes on the device itself, so taking over the phone number does not give an attacker the codes. SMS depends on the phone number, which is exactly the risk here. GitHub Mobile and security keys need TOTP or SMS to be set up first, so neither can be the only method.
Question 10
A company sponsors three open-source maintainers from its GitHub organization account and pays by credit card. The finance team wants as much of each sponsorship as possible to reach the maintainers without lowering the amounts. What should the organization do?
- Switch the organization to invoiced billing
- Change the sponsorships from monthly to one-time payments
- Ask each maintainer to create an organization account to receive the money
- Move the sponsorships to a higher tier that includes extra benefits
Show the answer
Answer: A. Switch the organization to invoiced billing
Organization sponsorships carry up to 6% in fees: 3% for credit card processing and a 3% GitHub service fee. Invoiced billing removes the credit card part. Moving to one-time payments does not change the fees, because they apply to organization sponsorships however often they are paid.
The full timed mock
50 questions in 60 minutes, with a pass mark of 70%. Each paper is drawn from a bank of questions written for the mock alone, and these 10 are left out of it. Full access opens it, with every level of the course.
LevelUpWith is independent of the organisation that sets this exam. These questions were written for this course; they are not taken from the exam.