GitHub Foundations · GH-900 · Skills outline of January 2026 · Official skills outline · Original practice content
Free GH-900 practice questions: Work with GitHub repositories
Reviewed by the FlashGenius certification content team · Last updated: December 5, 2026 · Aligned to the published GH-900 skills outline and weights
The Work with GitHub repositories domain is 10-15% of the GH-900 exam and covers repository files (README, LICENSE, CONTRIBUTING, CODEOWNERS, SECURITY), templates and branches, managing files, insights and repository maintenance. Review each answer and explanation as you practice.
GH-900 has 60 scored multiple-choice questions (plus about 10-15 unscored ones) in 100 minutes, costs $99 USD, needs a scaled 700 to pass, and the certification does not expire.
What Work with GitHub repositories covers on the GH-900 exam
This domain is 10-15% of the GH-900 exam (about 6 questions in a 60-question mock). The official skills outline includes:
The structure and key files of a repository: README, LICENSE, CONTRIBUTING, CODEOWNERS and SECURITY
Creating, organizing and maintaining repositories with templates and branches
Adding and managing files in a repository
Repository insights, stars, feature previews, metrics dashboards and dependency insights
Best practices for repository maintenance and collaboration
How to study Work with GitHub repositories
Match each file to its job: README explains the project, LICENSE grants rights, CONTRIBUTING tells people how to help, CODEOWNERS routes reviews, SECURITY says how to report vulnerabilities.
Know the difference between a template repository (a clean starting copy) and a fork (a linked copy for contributing back).
GH-900 Work with GitHub repositories sample questions with answers
Work with GitHub repositories
Sample question 1
A volunteer group publishes a small budgeting tool on GitHub. Visitors keep asking what the tool does and how to install it. Which file should the group add so this information appears on the repository's main page?
A README file
A CODEOWNERS file
A CONTRIBUTING file
A LICENSE file
Show correct answer and explanation
Correct answer: A. A README file
A is correct because GitHub automatically displays a README on the repository's main page, so it is the place to explain what the project does and how to get started. B is incorrect because CODEOWNERS names who is responsible for reviewing parts of the code and is not shown to visitors as an introduction. C is incorrect because a CONTRIBUTING file explains how people can contribute to the project, not what the tool does for visitors. D is incorrect because a LICENSE file states the terms under which others may use and share the code, not how to install it. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 2
A student shares a public repository of class projects but never adds a license. Which statement about this repository is true?
Because the repository is public, anyone may freely copy, change and redistribute the code for any purpose.
Default copyright law applies, so the student keeps all rights and others may not reuse or redistribute the code.
Other GitHub users are not allowed to view or fork the repository until a LICENSE file is added.
GitHub automatically applies the MIT License to public repositories that do not include a LICENSE file.
Show correct answer and explanation
Correct answer: B. Default copyright law applies, so the student keeps all rights and others may not reuse or redistribute the code.
B is correct because with no license, default copyright law applies and the author retains all rights, so others may not reproduce, distribute or create derivative works. A is incorrect because being public lets GitHub users view and fork the repository under the Terms of Service, but it does not grant rights to reuse or redistribute the code. C is incorrect because GitHub's Terms of Service let other users view and fork any public repository, license or not. D is incorrect because GitHub does not apply any license automatically; without a license file, default copyright law applies. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 3
The maintainers of an open-source mapping library receive many pull requests that skip tests and ignore the coding style. They want new contributors to see the expected process before opening a pull request. Which file should they add?
README
CODEOWNERS
SECURITY
CONTRIBUTING
Show correct answer and explanation
Correct answer: D. CONTRIBUTING
D is correct because a CONTRIBUTING file sets out guidelines for contributors, and GitHub links to it when people open issues or pull requests, so contributors see the expected process first. A is incorrect because a README introduces the project to all visitors; it is not the file GitHub surfaces to contributors as they open a pull request. B is incorrect because CODEOWNERS requests reviews from the right people after a pull request is opened; it does not explain the process to contributors. C is incorrect because a SECURITY file is the security policy that explains how to report vulnerabilities, not general contribution rules. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 4
In a payroll application repository, every change to the tax calculation folder must be reviewed by the finance engineering team. The team lead wants GitHub to request that team's review automatically whenever a pull request touches that folder. What should the lead configure?
A pull request template with a checklist item naming the finance team
A CODEOWNERS file that assigns the folder to the finance engineering team
A CONTRIBUTING file that asks authors to request the finance team's review
A saved reply that mentions the finance team on each new pull request
Show correct answer and explanation
Correct answer: B. A CODEOWNERS file that assigns the folder to the finance engineering team
B is correct because code owners are automatically requested for review when a pull request modifies files they own, so mapping the folder to the team in CODEOWNERS does this. A is incorrect because a template only pre-fills the pull request description and does not request reviews from anyone. C is incorrect because a CONTRIBUTING file only gives guidance; authors could still forget, and GitHub would not request the review automatically. D is incorrect because saved replies are personal canned comments that someone must post by hand, so nothing is automatic. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 5
A repository's CODEOWNERS file contains a line giving all JavaScript files to the web team, and a later line giving everything in the admin folder to the platform team. A pull request changes a JavaScript file inside the admin folder. Who is requested as code owner for that file?
The platform team, because the last matching pattern takes precedence
Both teams, because every matching pattern adds its owners
The web team, because the first matching pattern takes precedence
Neither team, because overlapping patterns cancel each other out
Show correct answer and explanation
Correct answer: A. The platform team, because the last matching pattern takes precedence
A is correct because in a CODEOWNERS file the last matching pattern takes the most precedence, so the later admin folder rule overrides the earlier JavaScript rule for that file. B is incorrect because matching patterns do not combine; only the last matching pattern applies, and several owners must be listed on that same line. C is incorrect because GitHub uses the last matching pattern, not the first, so the earlier JavaScript rule is overridden. D is incorrect because overlapping patterns are allowed; the last matching pattern simply wins. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 6
A security researcher finds a flaw in a popular open-source logging library and wants to report it responsibly, without posting the details in a public issue. Which file in the repository should tell the researcher how to report it?
SECURITY.md, the project's security policy
CONTRIBUTING.md, the contribution guidelines
CODEOWNERS, the list of responsible reviewers
README.md, the project introduction page
Show correct answer and explanation
Correct answer: A. SECURITY.md, the project's security policy
A is correct because SECURITY.md is the security policy file that tells people how to report vulnerabilities, so researchers know where to send details instead of opening a public issue. B is incorrect because contribution guidelines describe how to propose changes in general, not how to disclose a vulnerability privately. C is incorrect because CODEOWNERS only maps files to reviewers for pull requests; it gives no reporting instructions to outside researchers. D is incorrect because the README introduces the project; GitHub's dedicated place for vulnerability reporting instructions is the security policy. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 7
Match each repository file to its main purpose. 1. README 2. CONTRIBUTING 3. SECURITY
1 introduces the project, 2 explains how to report vulnerabilities, 3 states usage rights
1 explains how to contribute, 2 introduces the project, 3 explains how to report vulnerabilities
1 states usage rights, 2 names required reviewers, 3 explains how to contribute
1 introduces the project, 2 explains how to contribute, 3 explains how to report vulnerabilities
Show correct answer and explanation
Correct answer: D. 1 introduces the project, 2 explains how to contribute, 3 explains how to report vulnerabilities
D is correct because a README tells visitors what the project is and how to use it, CONTRIBUTING gives contributor guidelines, and SECURITY is the security policy for reporting vulnerabilities. A is incorrect because CONTRIBUTING holds contributor guidelines, and usage rights are stated in a LICENSE file, not in SECURITY. B is incorrect because the README is the project introduction shown on the main page, while contributor guidelines belong in CONTRIBUTING. C is incorrect because usage rights belong in LICENSE and required reviewers in CODEOWNERS; the README introduces the project and SECURITY covers vulnerability reporting. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 8
A platform team is rolling out CODEOWNERS across several repositories and reviews how the file behaves. Which statement is true?
Code owners are requested for review on draft pull requests as soon as the draft is opened.
Anyone named in CODEOWNERS is requested for review, even if they have only read access to the repository.
GitHub uses the CODEOWNERS file from the pull request's base branch, so each branch can have its own owners.
GitHub uses the CODEOWNERS file from the pull request's head branch, so authors can name their own reviewers.
Show correct answer and explanation
Correct answer: C. GitHub uses the CODEOWNERS file from the pull request's base branch, so each branch can have its own owners.
C is correct because the CODEOWNERS file on the base branch of the pull request is the one used, and each CODEOWNERS file covers only the branch it is on. A is incorrect because code owners are not requested on draft pull requests until the pull request is marked ready for review. B is incorrect because code owners must have write permission to the repository, and teams must be visible with write access. D is incorrect because GitHub reads CODEOWNERS from the base branch, which stops authors from changing owners in their own pull request. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 9
An organization wants the same CONTRIBUTING and SECURITY files to apply to every repository that lacks its own copy. It should place these default community health files in a public repository named ___.
docs, owned by the organization
.github, owned by the organization
.github, with private visibility set
community, owned by the organization
Show correct answer and explanation
Correct answer: B. .github, owned by the organization
B is correct because default community health files placed in a public repository named .github apply to every repository of that account that does not have its own file. A is incorrect because docs is a folder name GitHub checks inside a repository, not the special repository that holds account-wide defaults. C is incorrect because the .github repository for default community health files must be public for the defaults to apply. D is incorrect because GitHub looks for defaults only in a repository named .github; a repository called community has no special meaning. Skills measured: Work with GitHub repositories > Repository management.
Work with GitHub repositories
Sample question 10
A project has three README files: one in the repository root, one in the docs folder and one in the hidden .github folder. Which README does GitHub display on the repository's main page?
The most recently changed README
The README in the docs folder
The README in the repository root
The README in the .github folder
Show correct answer and explanation
Correct answer: D. The README in the .github folder
D is correct because when several README files exist, GitHub shows the one in the .github folder first, then the root directory, then the docs folder. A is incorrect because GitHub chooses by folder precedence, not by which file was edited most recently. B is incorrect because the docs folder is checked last, after the .github folder and the root directory. C is incorrect because the root README is second in precedence; a README in the .github folder is chosen ahead of it. Skills measured: Work with GitHub repositories > Repository management.
FlashGenius is an independent study resource and is not affiliated with or endorsed by GitHub or Microsoft. GitHub is a trademark of GitHub, Inc. 300 original practice questions.