
Last GH-900 practice test reviews: Practice Test Microsoft dumps
Try GH-900 Free Now! Real Exam Question Answers Updated [Dec 10, 2025]
NEW QUESTION # 13
In GitHub, why is it recommended to deploy from your feature branch before merging into the main branch?
- A. To ensure the changes are verified and validated in a production environment
- B. To directly deploy changes from the main branch without any intermediate testing
- C. To speed up the process of merging changes into the main branch
- D. To avoid the need for testing changes in production
Answer: A
Explanation:
It is recommended to deploy from your feature branch before merging into the main branch to ensure the changes are verified and validated in a production environment. This practice helps in identifying any potential issues or bugs in a real-world scenario before the changes are permanently integrated into the main branch. By deploying from the feature branch, developers can catch and address issues early, reducing the risk of introducing bugs into the main branch, which is usually considered the stable branch.
NEW QUESTION # 14
Which of the following steps are part of the Codespaces lifecycle?
(Each answer presents a complete solution. Choose three.)
- A. Install
- B. Create
- C. Clone
- D. Rebuild
- E. Rollback
- F. Delete
- G. Commit
Answer: B,D,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.
NEW QUESTION # 15
What is the primary purpose of creating a security policy in a repository?
- A. To define which types of secrets are blocked with push protection
- B. To customize the repository's Dependabot configuration
- C. To describe how security vulnerabilities should be responsibly disclosed
- D. To ensure that peer code review occurs before new changes are merged
Answer: C
Explanation:
The primary purpose of creating a security policy in a GitHub repository is to guide users and contributors on how to report security vulnerabilities in a responsible and secure manner. This policy outlines the preferred method of communication, timelines, and any other pertinent information related to handling security issues.
Security Policy:
Option C is correct because a security policy provides guidelines for responsibly disclosing security vulnerabilities. This helps maintainers respond to and address security concerns promptly and securely, thereby protecting the project and its users.
Incorrect Options:
Option A is incorrect because ensuring peer code review is a best practice for code quality, but it is not the primary purpose of a security policy.
Option B is incorrect because push protection for secrets is managed through repository settings, not the security policy.
Option D is incorrect because customizing Dependabot configuration is related to dependency management, not directly to security policies.
Reference:
GitHub Docs: Adding a Security Policy to Your Repository
NEW QUESTION # 16
Which of the following are available statuses of a pull request?
(Each answer presents a complete solution. Choose four.)
- A. Rebasing
- B. Merged
- C. Modified
- D. Closed
- E. Draft
- F. Open
Answer: B,D,E,F
Explanation:
Pull requests (PRs) on GitHub can have several statuses that indicate their current state in the development and review process:
Draft:
Option A is correct. A pull request can be in a "Draft" status, indicating that it is a work in progress and not yet ready for review.
Closed:
Option B is correct. A pull request can be "Closed" without being merged, which might happen if the proposed changes are not needed or are incorporated differently.
Merged:
Option D is correct. A pull request that has been reviewed and approved can be "Merged" into the target branch, indicating that the changes have been successfully incorporated.
Open:
Option F is correct. An "Open" pull request is one that is active and awaiting review or further action.
Incorrect Options:
Option C (Rebasing) is incorrect because "Rebasing" is not a status; it's an operation that can be performed on branches.
Option E (Modified) is incorrect because there is no "Modified" status for pull requests.
Reference:
GitHub Docs: About Pull Requests
NEW QUESTION # 17
What are the two main reasons why one might fork a repository?
(Each answer presents a complete solution. Choose two.)
- A. To create a new branch to develop a new feature
- B. To create an issue or open a discussion
- C. To propose changes to the base repository
- D. To create a new repository based on an existing one
Answer: C,D
Explanation:
Forking a repository on GitHub is a common practice, especially when contributing to open-source projects or when you want to build on existing work. Here are the two main reasons for forking a repository:
B . To propose changes to the base repository:
One of the primary reasons for forking a repository is to make changes or improvements that you can later propose to the original repository (often called the "upstream" repository). This is typically done through a pull request. By forking the repository, you get your own copy of the project where you can freely experiment, make changes, and then propose those changes back to the original project.
C . To create a new repository based on an existing one:
Forking is also used to create a new repository that is a copy of an existing one. This allows you to work on the project independently of the original repository, effectively creating a new direction for the project or using it as a starting point for a different purpose. This is particularly useful for customization, experimentation, or when you want to build something different while still leveraging the existing codebase.
Explanation of Other Options:
A . To create an issue or open a discussion:
This is incorrect because creating an issue or opening a discussion can be done directly on the original repository without needing to fork it. Forking is unnecessary for these actions.
D . To create a new branch to develop a new feature:
While creating a new branch is related to development, it does not require a fork. Branches are typically created within the same repository to work on new features. Forking is used when you need an entirely separate copy of the repository.
Given this information, the correct answers are B and C.
Reference:
GitHub Documentation: Fork a repo
GitHub Documentation: About forks
NEW QUESTION # 18
Which of the following are advantages of saved replies?
(Each correct answer presents part of the solution. Choose two.)
- A. Saved replies are tied to a GitHub user's personal account.
- B. Saved replies will send auto notifications when a user is tagged to an issue.
- C. Saved replies are allocated at the enterprise level for all users.
- D. Saved replies allow you to create a reusable response to issues and pull requests.
Answer: A,D
Explanation:
Saved replies in GitHub are a feature that allows users to create and save templates of commonly used responses for issues and pull requests. This feature can significantly enhance productivity and ensure consistent communication.
Saved Replies Are Tied to a User's Personal Account:
Option A is correct because saved replies are specific to a user's GitHub account, meaning they are accessible to the user across all repositories they have access to.
Saved Replies Allow Reusable Responses:
Option C is correct because the primary purpose of saved replies is to allow users to create reusable responses for issues and pull requests, saving time and ensuring consistency.
Incorrect Options:
Option B is incorrect because saved replies are not allocated at the enterprise level; they are specific to individual user accounts.
Option D is incorrect because saved replies do not send auto notifications; they are manually inserted by the user when responding to issues or pull requests.
Reference:
GitHub Docs: Using Saved Replies
NEW QUESTION # 19
What qualifier finds issues that mention a certain user?
- A. mentioned:
- B. Smentioned:
- C. threads:
- D. mentions:
Answer: D
Explanation:
The qualifier mentions: is used in GitHub's search functionality to find issues that mention a certain user. For example, if you want to find all issues where a specific user is mentioned, you would use mentions:username. This helps in tracking where a user has been involved in discussions across issues or pull requests.
NEW QUESTION # 20
How can a user create a repository template, and what permissions are required?
- A. With Admin permissions, navigate to Repository settings and select Template Repository.
- B. With Maintain permissions, navigate to Repository settings and select Template Repository.
- C. With Maintain permissions, navigate to Organization settings, select the repository, and choose Template Repository.
- D. With Admin permissions, navigate to Organization settings, select the repository, and choose Template Repository.
Answer: A
Explanation:
Creating a repository template in GitHub requires specific steps and permissions:
Creating a Repository Template:
Option A is correct because a user with Admin permissions can navigate to the repository's settings and enable the "Template Repository" option. This allows other users to generate new repositories from this template, which includes all branches, tags, and file history.
Other Options:
Option B is incorrect because "Maintain" permissions do not allow the creation of repository templates, and the option is not found in Organization settings but in the repository settings.
Option C is incorrect because the "Template Repository" option is in the repository settings, not in Organization settings.
Option D is incorrect because "Maintain" permissions do not grant the ability to create a repository template.
Reference:
GitHub Docs: Creating a Template Repository
NEW QUESTION # 21
Which of the following is a primary goal of GitHub's community?
- A. Facilitating collaboration and creativity
- B. Exclusively supporting experienced developers
- C. Creating a competitive environment for developers
- D. Enforcing strict code quality standards
Answer: A
Explanation:
GitHub's community is centered around enabling developers to collaborate and innovate together. The platform provides tools and environments that foster open communication, sharing of ideas, and collective problem-solving.
Facilitating Collaboration and Creativity:
Option C is correct because GitHub is designed to be a collaborative platform where developers can work together on projects, share code, and contribute to open source initiatives, all in an environment that encourages creativity.
Incorrect Options:
Option A is incorrect because GitHub is inclusive of developers of all skill levels, not just experienced ones.
Option B is incorrect because GitHub is not about creating a competitive environment; rather, it focuses on collaboration.
Option D is incorrect because while code quality is important, enforcing strict code quality standards is not the primary goal of the GitHub community.
Reference:
GitHub Docs: Building a Strong Community
NEW QUESTION # 22
From the list of projects for an organization, how can a user identify a GitHub Projects template?
- A. Check the "show template" checkbox.
- B. Use the "is
" filter in the search text box. - C. Select the Templates tab.
- D. View the contents in the .github/projects folder.
Answer: C
Explanation:
In GitHub, when viewing the list of projects for an organization, a user can identify a GitHub Projects template by selecting the Templates tab. This tab specifically lists available templates that can be used to create new projects based on predefined structures and workflows.
NEW QUESTION # 23
As a GitHub user, where in the UI can you configure two-factor authentication (2FA) to further secure your account?
- A. Organization Settings -> Authentication Security -> 2FA
- B. Repository Settings -> Secrets and Variables -> 2FA
- C. Profile -> Account -> 2FA
- D. Settings -> Password and Authentication -> 2FA
Answer: D
Explanation:
As a GitHub user, you can configure two-factor authentication (2FA) to secure your account by navigating to Settings -> Password and Authentication -> 2FA. This section in the GitHub user interface allows you to set up and manage your 2FA methods, which provide an additional layer of security beyond just your password.
NEW QUESTION # 24
What should be done to locate an existing action that was provided by a GitHub-approved vendor?
(Each correct answer presents part of the solution. Choose two.)
- A. Install the GitHub App that was provided by the vendor.
- B. Search the GitHub Marketplace for Actions by the vendor.
- C. Confirm that the action has a verification badge.
- D. Search the vendor's website for a github.yaml index.
- E. Create a new workflow file.
- F. Add the vendor as an allowed Actions Source.
Answer: B,C
Explanation:
To locate an existing GitHub Action provided by a GitHub-approved vendor, you can use the following methods:
Verification Badge:
Option C is correct because actions provided by GitHub-approved vendors will typically have a verification badge. This badge indicates that the action is from a trusted source, giving users confidence in its security and reliability.
Search the GitHub Marketplace:
Option F is correct because GitHub Marketplace is the official location to find and install actions, including those provided by third-party vendors. You can search for actions by the vendor's name to find the specific one you need.
Incorrect Options:
Option A is not necessary to locate an existing action; creating a workflow file is for implementing the action, not locating it.
Option B is incorrect because searching the vendor's website for a github.yaml index is not a standard practice for finding actions.
Option D is incorrect because installing a GitHub App is unrelated to finding an existing action.
Option E is incorrect because adding a vendor as an allowed Actions Source is a configuration step for using the action, not for locating it.
Reference:
GitHub Marketplace: Verified Actions
NEW QUESTION # 25
If there are multiple README files, which of the following locations will be displayed first?
- A. Root
- B. /src
- C. .github
- D. /docs
Answer: A
Explanation:
When multiple README files exist in different locations within a GitHub repository, the README.md file located in the root directory of the repository will be displayed first by default. This file serves as the main documentation for the repository and is automatically rendered on the repository's home page.
Root Directory:
Option C is correct because the README.md file in the root directory is prioritized and displayed first on GitHub. This is the standard behavior for how GitHub presents documentation.
Incorrect Options:
Option A (.github) is incorrect because while a README.md file in the .github directory might be used for certain configurations, it is not the first to be displayed.
Option B (/src) is incorrect because the README.md in the src directory is not prioritized over the root.
Option D (/docs) is incorrect because documentation in the /docs folder is typically secondary to the root README.md.
Reference:
GitHub Docs: About READMEs
NEW QUESTION # 26
The difference between GitHub Desktop and github.com is that Desktop:
- A. Offers a graphical user interface.
- B. Is a self-hosted version of GitHub.
- C. Enables integration with office suite applications.
- D. Is a standalone software application.
- E. Is only available on Windows operating systems.
Answer: A
Explanation:
GitHub Desktop is a standalone application that provides a graphical user interface (GUI) for interacting with GitHub repositories, as opposed to the command-line or web-based interfaces available on github.com.
Graphical User Interface:
Option D is correct because GitHub Desktop offers a GUI, making it easier for users to manage repositories, perform commits, and handle other Git-related tasks without needing to use the command line.
Incorrect Options:
Option A is partially correct in that GitHub Desktop is a standalone application, but the key difference is the GUI.
Option B is incorrect because GitHub Desktop does not specifically enable integration with office suite applications.
Option C is incorrect because GitHub Desktop is available on both Windows and macOS.
Option E is incorrect because GitHub Desktop is not a self-hosted version of GitHub; it is a client application for accessing GitHub repositories.
Reference:
GitHub Docs: GitHub Desktop Documentation
NEW QUESTION # 27
Which of the following statements most accurately describes secret gists?
- A. Secret gists require GitHub Enterprise.
- B. Anyone with the URL for the gist can view the gist.
- C. Users with assigned access can view the gist.
- D. Anyone can see the gist from the gist Discover page.
Answer: B
Explanation:
Secret gists on GitHub are "unlisted" gists, meaning they are not publicly discoverable but can be viewed by anyone who has the URL.
Visibility of Secret Gists:
Option A is correct because secret gists can be viewed by anyone who has the direct URL, making them accessible yet unlisted.
Incorrect Options:
Option B is incorrect because secret gists do not require GitHub Enterprise; they are available on all GitHub accounts.
Option C is incorrect because secret gists do not appear on the gist Discover page.
Option D is incorrect because secret gists do not have an "assigned access" feature; access is determined by sharing the URL.
Reference:
GitHub Docs: About Gists
NEW QUESTION # 28
Which of the following is the best GitHub feature for long-form documentation for a project?
- A. Wikis
- B. Insights
- C. Pull Requests
- D. Projects
Answer: A
Explanation:
GitHub offers a variety of features for different aspects of project management and documentation. For long-form documentation, the best feature is Wikis. Wikis in GitHub allow you to create detailed, structured documentation that is easy to navigate and edit. Each repository in GitHub can have its own Wiki, which acts as a space for collaborators to maintain project documentation, guides, manuals, or any other long-form content.
Wikis are specifically designed to host extensive documentation in a way that is easy to reference and edit over time. They support Markdown, allowing you to format your documentation effectively. Unlike the other options, Wikis are explicitly intended for the purpose of long-form content, making them the best choice for this use case.
NEW QUESTION # 29
What folder is the definition files stored in when creating custom issue forms?
- A. .github/ISSUE_TEMPLATE
- B. .issues
- C. .issues/ISSUE_TEMPLATE
- D. .GitHub
Answer: A
Explanation:
When creating custom issue forms on GitHub, the definition files are stored in the .github/ISSUE_TEMPLATE folder. This directory is used to define issue templates and forms that help standardize the information collected when users open new issues in the repository. The .github folder is a special directory used for various repository configurations and workflows.
NEW QUESTION # 30
What is the difference between an organization member and an outside collaborator?
- A. Organization base permissions do not apply to outside collaborators.
- B. Outside collaborators do not consume paid licenses.
- C. Outside collaborators cannot be given the admin role on a repository.
- D. Two-factor authentication (2FA) is not required for outside collaborators.
Answer: A
Explanation:
In GitHub, an organization member is a user who has been added to an organization and is subject to the organization's base permissions and policies. An outside collaborator is a user who is not a member of the organization but has been granted access to one or more repositories within the organization.
Here's the difference between an organization member and an outside collaborator:
Organization Members:
Members are subject to the organization's base permissions, which apply across all repositories within the organization. These permissions might include read, write, or admin access, depending on what has been set as the default.
Members consume paid licenses if the organization is on a paid plan.
Members are required to have two-factor authentication (2FA) if the organization enforces it.
Outside Collaborators:
Outside collaborators do not have organization-wide permissions. They only have access to specific repositories to which they have been granted permission. This means organization base permissions do not apply to them (making option A correct).
Outside collaborators do not consume paid licenses. They are only counted toward the license if they are made organization members.
Outside collaborators can be granted any level of permission, including the admin role on specific repositories.
Two-factor authentication (2FA) can be enforced for outside collaborators at the repository level, depending on the organization's security settings.
Given this information, option A is the correct answer: "Organization base permissions do not apply to outside collaborators." Reference:
GitHub Documentation: Roles in an organization
GitHub Documentation: About outside collaborators
GitHub Documentation: Managing repository access for your organization
NEW QUESTION # 31
Which of the following best describes cloning a repository?
- A. It imports your source code into a new repository.
- B. It retrieves code updates from the remote repository.
- C. It creates a copy of the repository on GitHub.com.
- D. It creates a copy of the repository on your local machine.
Answer: D
Explanation:
Cloning a repository in GitHub refers to creating a copy of the repository on your local machine. This allows you to work on the project offline, make changes, and later push those changes back to the remote repository. It does not involve creating a copy on GitHub.com (which would be forking), retrieving updates (which would be pulling), or importing source code into a new repository (which is done differently).
NEW QUESTION # 32
What is a gist?
- A. Git repository
- B. Markdown document
- C. GitHub app
- D. GitHub Pages site
Answer: A
Explanation:
A gist on GitHub is essentially a Git repository, albeit a simplified one, designed for sharing snippets of code, notes, or other text content. Gists support version control and can be public or secret.
Gist as a Git Repository:
Option B is correct because each gist is a Git repository, meaning you can clone it, commit changes, and even fork it, just like any other Git repository.
Incorrect Options:
Option A is incorrect because a gist is not an app; it's a feature of GitHub that provides a simplified repository.
Option C is incorrect because while a gist may contain Markdown documents, it is fundamentally a repository that can hold various file types.
Option D is incorrect because GitHub Pages is a separate service for hosting websites, not related to gists.
Reference:
GitHub Docs: About Gists
NEW QUESTION # 33
While maintaining the gist history, which of the following is the most efficient way to create a public gist based on another user's gist?
- A. Create a new gist and copy the content from the existing gist.
- B. Fork the gist.
- C. Request to be added to the existing gist.
- D. Clone the gist.
Answer: B
Explanation:
Forking a gist is the most efficient way to create a public gist based on another user's gist while maintaining the history of the original gist. When you fork a gist, you create a new gist in your own account that retains a link to the original, allowing you to track changes and contribute back if desired.
Forking a Gist:
Option A is correct because forking is a straightforward way to create your own copy of another user's gist while preserving the history and making it easy to track updates.
Incorrect Options:
Option B is incorrect because creating a new gist and copying the content would not preserve the history or link back to the original gist.
Option C is incorrect because cloning is typically associated with repositories, not gists, and is more complex than forking for this purpose.
Option D is incorrect because requesting to be added to the existing gist is not a standard GitHub feature.
Reference:
GitHub Docs: Forking Gists
NEW QUESTION # 34
......
Get Ready to Pass the GH-900 exam with Microsoft Latest Practice Exam : https://www.braindumpsvce.com/GH-900_exam-dumps-torrent.html
Get Prepared for Your GH-900 Exam With Actual Microsoft Study Guide!: https://drive.google.com/open?id=1BQiarwHqS6fLQB-SAEqNI8yrUBdku5kt