| Exam Code | GitHub-Foundations |
| Exam Name | GitHub Foundations |
| Vendor | GitHub |
| Total Questions | 561 |
| Last Updated | 26-Oct, 2026 |
- Latest & Verified Questions
- Detailed Explanations
- Regular Updates
- Full-Length Practice Tests
- Boost Your Exam Confidence
PDF Study Materials
Downloadable guides and resources
Practice Tests
Full-length tests with real exam experience
Progress Tracking
Monitor your performance and improvement
Study Anywhere
Access on desktop, tablet, and mobile
Free GitHub-Foundations Practice Questions
Explore 5 free practice questions for the GitHub GitHub-Foundations exam and review the answers and explanations to support your preparation.
-
Question 1
Single answerWhich of the following best describes GitHub flow?
-
Option A:Correct
A branching model that uses feature branches and multiple primary branches
-
Option B:Correct
A strategy where separate branches are created for each release, and pull requests are used to collaborate on and approve releases
-
Option C:Correct
A lightweight workflow that allows for safe experimentation with new ideas and collaboration on projects through branching, pull requests, and merging
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: C
Explanation
GitHub Flow is a simple, yet powerful, branching strategy that is widely used in modern software development. It emphasizes collaboration and flexibility.
GitHub Flow:
Option C is correct because GitHub Flow is a lightweight workflow designed for safe experimentation and collaboration. It involves creating branches for new features or fixes, opening pull requests for review, and merging changes back into the main branch after approval.
Incorrect Options:
Option A is incorrect because GitHub Flow uses a single main branch, not multiple primary branches.
Option B is incorrect because GitHub Flow is not specifically designed around releases; it is more focused on continuous development and integration.
Option D is incorrect because GitHub Flow is not strict or linear; it encourages branching and pull requests rather than direct changes on the main branch.
References:
GitHub Docs: Understanding the GitHub Flow
GitHub Guides: The GitHub Flow
-
-
Question 2
Single answerWhich of the following statements most accurately describes who can access a private repository Wiki?
-
Option A:Correct
Wikis are only viewable by repository admins.
-
Option B:Correct
Wikis can be viewed by the same people who have Read access to the repository.
-
Option C:Correct
Wikis will not be visible until shared with a specific user.
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: B
Explanation
For private repositories on GitHub, the Wiki is accessible to anyone who has Read access to the repository. This means that if you can view the code and files in the repository, you can also view its Wiki. This makes Wikis a useful tool for documenting projects in a way that is available to all collaborators without requiring special permissions beyond those needed to access the repository itself.
-
-
Question 3
Single answerNew open source contributors can receive funding from GitHub sponsors:
-
Option A:Correct
Using PayPal as a payment processor.
-
Option B:Correct
Equal to 95% of the contribution value.
-
Option C:Correct
By including GitHub matching funds.
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: D
Explanation
GitHub Sponsors allows developers and organizations to financially support open-source contributors directly on the GitHub platform.
Setting Up a Sponsored Developer Profile:
Option D is correct because before a contributor can receive funding through GitHub Sponsors, they need
-
-
Question 4
Multiple answersWhich of the following steps are part of the Codespaces lifecycle?
(Each answer presents a complete solution. Choose three.)
-
Option A:Correct
Commit
-
Option B:Correct
Clone
-
Option C:Correct
Rebuild
-
Option D:Correct
Rollback
-
Option E:Correct
Delete
-
Option F:Correct
Create
-
Option G:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: C, E, F
Explanation
The Codespaces lifecycle on GitHub includes several key steps:
Create : This is the step where a new Codespace is initiated.
Rebuild : A Codespace can be rebuilt to ensure that the environment is up-to-date with the latest code or configurations.
Delete : Once a Codespace is no longer needed, it can be deleted to free up resources.
Committing, cloning, or installing are typical Git operations but are not considered part of the specific lifecycle steps for a GitHub Codespace.
-
-
Question 5
Multiple answersWhat are two recommended ways of improving the discoverability of a repository?
(Each answer presents a complete solution. Choose two.)
-
Option A:Correct
Register the repository with GitHub search.
-
Option B:Correct
Create a README file describing the repository.
-
Option C:Correct
Add labels to categorize the repository.
-
Option D:Correct
Show Answer & Explanation Hide Answer & Explanation
Correct Answer: B, D
Explanation
Two recommended ways to improve the discoverability of a repository on GitHub are:
B. Create a README file describing the repository : A well-written README file provides essential information about the project, such as what it does, how to use it, and how to contribute. This is often the first thing potential users or contributors will see, making it critical for discoverability.
D. Add topics to classify the repository : Adding topics to your repository helps classify it under specific categories, making it easier for others to find it through GitHub’s search and exploration features. Topics act like tags, helping to connect your project with users interested in similar subjects.
Registering a repository with GitHub search and adding labels are not applicable actions for improving discoverability in the broader sense.
-