
Pass Your Next GH-900 Certification Exam Easily & Hassle Free
Free Microsoft GH-900 Exam Question Practice Exams
NEW QUESTION # 14
How can a user create a repository template, and what permissions are required?
- A. With Admin permissions, navigate to Organization settings, select the repository, and choose 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 Repository settings and select Template Repository.
Answer: D
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 # 15
What is the primary purpose of creating a new branch in the GitHub flow?
- A. To create a backup of the main branch
- B. To experiment with new features or fixes
- C. To incorporate changes from a review
- D. To capture information about an issue
Answer: B
Explanation:
In GitHub Flow, creating a new branch is a key step in the development process that allows for isolated development of new features or fixes without affecting the main codebase.
Experimenting with New Features or Fixes:
Option C is correct. The primary purpose of creating a new branch in the GitHub flow is to provide a safe space to experiment with new features or fixes. This allows developers to work on changes independently and only merge them into the main branch after they have been reviewed and approved.
Incorrect Options:
Option A (To create a backup of the main branch) is incorrect because branches are not typically used for backups; they are for active development.
Option B (To capture information about an issue) is incorrect because issues are tracked separately; branches are for code changes.
Option D (To incorporate changes from a review) is incorrect because incorporating changes is done during the pull request process, not when creating a branch.
Reference:
GitHub Docs: GitHub Flow
NEW QUESTION # 16
Pull requests can only be created between two branches that are:
- A. The same.
- B. Authored by different users.
- C. Authored by the same user.
- D. Different.
Answer: D
Explanation:
Pull requests are created to propose changes from one branch to another. These branches must be different; otherwise, there would be no changes to propose. Typically, pull requests are made from a feature or topic branch to a main branch (such as main or master), allowing for code review and integration before the changes are merged.
NEW QUESTION # 17
Which of the following options can a user do from a discussion post?
- A. Add the discussion to README
- B. Archive the discussion
- C. Duplicate the discussion
- D. Create an issue from the discussion
Answer: D
Explanation:
From a discussion post on GitHub, a user can Create an issue from the discussion. This feature allows users to turn a discussion into an actionable item by creating an issue directly from the discussion thread. This is particularly useful when a conversation identifies a bug, task, or enhancement that needs to be tracked in the repository.
NEW QUESTION # 18
Which of the following two-factor authentication (2FA) methods can you use to secure a GitHub account?
(Each answer presents a complete solution. Choose three.)
- A. Security questions
- B. Authenticator app
- C. Security keys
- D. GitHub mobile
- E. Single sign-on
Answer: B,C,D
Explanation:
The following two-factor authentication (2FA) methods can be used to secure a GitHub account:
A . Authenticator app: You can use an authenticator app (like Google Authenticator or Authy) to generate time-based one-time passwords (TOTP) for logging in.
C . GitHub mobile: The GitHub mobile app can also be used to receive 2FA codes, adding convenience for users who prefer to manage everything from their mobile devices.
D . Security keys: Physical security keys (such as YubiKeys) can be used as a strong form of 2FA, requiring physical access to the key to authenticate.
Security questions and Single sign-on (SSO) are not considered 2FA methods in the context of GitHub account security.
NEW QUESTION # 19
As a user, which of the following default labels is used to indicate that a maintainer needs assistance on an issue or pull request?
- A. Documentation
- B. Help wanted
- C. Enhancement
- D. Question
Answer: B
Explanation:
In GitHub, labels are used to categorize issues and pull requests, and certain default labels are provided to help manage tasks:
Help Wanted Label:
Option C is correct. The "Help wanted" label is used to indicate that the maintainer of the repository needs assistance on a particular issue or pull request. This label helps in attracting contributors who might be interested in helping with specific tasks.
Other Options:
Option A ("Enhancement") is incorrect because it indicates a request for a new feature or improvement rather than a call for help.
Option B ("Question") is incorrect because it is used to flag issues or pull requests that seek clarification or additional information, not necessarily requiring assistance.
Option D ("Documentation") is incorrect because it labels issues or PRs related to documentation, not for seeking help.
Reference:
GitHub Docs: Using Labels
NEW QUESTION # 20
What are three valid states for a file in a git repository?
(Each correct answer presents part of the solution. Choose three.)
- A. Committed
- B. Modified
- C. Uncommitted
- D. Staged
- E. Tracked
Answer: A,B,D
Explanation:
In a Git repository, a file can be in one of the following three valid states:
Committed: The file is saved in the local repository. It is part of the permanent history of the project.
Modified: The file has been changed but not yet staged or committed. It is in the working directory.
Staged: The file has been marked to be included in the next commit. It is in the staging area, ready to be committed.
These states represent the typical lifecycle of a file as it moves through the process of being edited, reviewed, and saved in Git.
NEW QUESTION # 21
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 allow you to create a reusable response to issues and pull requests.
- C. Saved replies are allocated at the enterprise level for all users.
- D. Saved replies will send auto notifications when a user is tagged to an issue.
Answer: A,B
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 # 22
What are some scenarios that can automatically subscribe you to conversations on GitHub?
(Each answer presents a complete solution. Choose three.)
- A. Opening a pull request or issue
- B. Commenting on a thread
- C. Being added as a repo admin
- D. Pushing a commit to the default branch
- E. Being assigned to an issue or pull request
Answer: A,B,E
Explanation:
On GitHub, certain actions automatically subscribe you to conversations so that you receive notifications about further activity in that thread.
Opening a Pull Request or Issue:
Option C is correct because when you open a pull request or issue, you are automatically subscribed to the conversation and will receive notifications for any updates.
Commenting on a Thread:
Option D is correct because commenting on an issue or pull request automatically subscribes you to that thread, ensuring you are notified of further comments or changes.
Being Assigned to an Issue or Pull Request:
Option E is correct because when you are assigned to an issue or pull request, you are automatically subscribed to notifications related to it.
Incorrect Options:
Option A is incorrect because pushing a commit to the default branch does not automatically subscribe you to conversations.
Option B is incorrect because being added as a repo admin does not automatically subscribe you to specific conversations unless you engage with them.
Reference:
GitHub Docs: Subscribing to Notifications
NEW QUESTION # 23
Which of the following is an Innersource development practice?
- A. Making all repositories publicly accessible
- B. Sharing code between teams within the organization
- C. Adopting open source code into the organization
- D. Removing open source code from the organization
Answer: B
Explanation:
Innersource is a development practice where an organization adopts open-source development methodologies within its own internal environment. The primary goal of innersource is to break down silos and encourage collaboration across different teams within the organization.
Sharing Code Between Teams:
Option B is correct because innersource involves sharing code between teams within the organization, similar to how open-source communities share code across the public domain. This practice fosters collaboration, improves code quality, and allows for reuse of code, reducing duplication of efforts.
Incorrect Options:
Option A is incorrect because adopting open-source code into the organization is related to using open-source software, not specifically to innersource practices.
Option C is incorrect because removing open-source code from the organization is contrary to the principles of both open source and innersource.
Option D is incorrect because making all repositories publicly accessible refers to open source, not innersource. Innersource typically involves keeping code internal to the organization.
Reference:
GitHub Docs: What is Innersource?
Innersource Commons: The Basics
NEW QUESTION # 24
What are the defining features of Git?
- A. Sequential version control, cloud-based hosting service, and being designed for collaboration on large projects
- B. Distributed version control, open source software, and being designed for handling projects of any size with efficiency
- C. Centralized version control, proprietary software, and being designed for small projects
- D. Low-cost local branching, convenient staging areas, multiple workflows, and being designed for managing small projects
Answer: B
Explanation:
Git is a widely-used version control system that has several defining features:
Distributed Version Control:
Git is a distributed version control system, meaning that every developer has a full copy of the entire repository, including its history, on their local machine. This enables greater flexibility, as work can be done offline and each user has access to the full project history.
Open Source Software:
Git is open-source, meaning its source code is freely available for use, modification, and distribution. This fosters a large community of users and contributors who continuously improve the software.
Efficiency with Large Projects:
Git is designed to handle projects of any size with speed and efficiency. It can manage large codebases and many contributors without significant performance degradation, making it suitable for everything from small personal projects to large, complex software systems.
Incorrect Options:
Option B is incorrect because Git is not a sequential version control system, nor is it inherently tied to cloud-based services. GitHub, GitLab, and other platforms offer cloud hosting for Git repositories, but Git itself is a version control tool.
Option C is incorrect because Git is not limited to small projects; it is designed to scale efficiently, and the other features mentioned are only partial descriptions of Git's capabilities.
Option D is incorrect because Git is not a centralized version control system; it is distributed. Additionally, Git is open-source, not proprietary, and is used for projects of all sizes.
Reference:
Pro Git Book: What is Git?
Git Documentation: Distributed Version Control
GitHub Docs: Understanding the Git Workflow
NEW QUESTION # 25
What is the primary purpose of creating a new branch in the GitHub flow?
- A. To create a backup of the main branch
- B. To experiment with new features or fixes
- C. To incorporate changes from a review
- D. To capture information about an issue
Answer: B
Explanation:
In GitHub Flow, creating a new branch is a key step in the development process that allows for isolated development of new features or fixes without affecting the main codebase.
Experimenting with New Features or Fixes:
Option C is correct. The primary purpose of creating a new branch in the GitHub flow is to provide a safe space to experiment with new features or fixes. This allows developers to work on changes independently and only merge them into the main branch after they have been reviewed and approved.
Incorrect Options:
Option A (To create a backup of the main branch) is incorrect because branches are not typically used for backups; they are for active development.
Option B (To capture information about an issue) is incorrect because issues are tracked separately; branches are for code changes.
Option D (To incorporate changes from a review) is incorrect because incorporating changes is done during the pull request process, not when creating a branch.
Reference:
GitHub Docs: GitHub Flow
NEW QUESTION # 26
What are two recommended ways of improving the discoverability of a repository?
(Each answer presents a complete solution. Choose two.)
- A. Create a README file describing the repository.
- B. Add topics to classify the repository.
- C. Register the repository with GitHub search.
- D. Add labels to categorize the repository.
Answer: A,B
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.
NEW QUESTION # 27
Which of the following GitHub syntax formats is consistent with the associated text?
- A. 1. This is an ordered list
- B. <!-- This is a comment -->
- C. This is a link
- D. * This is a heading
- E. This is bolded text
Answer: B
Explanation:
GitHub supports various syntax formats that align with Markdown and HTML conventions. Here's a breakdown of the provided options:
Comment Syntax:
Option C is correct. The syntax <!-- This is a comment --> is used in Markdown files to insert comments. These comments will not be rendered in the final output, making them useful for adding notes or instructions within the code or documentation.
Incorrect Options:
Option A (* This is a heading) is incorrect because an asterisk (*) denotes an unordered list item, not a heading. A heading in Markdown is typically created with one or more hash symbols (#).
Option B (This is a link) is incorrect because this is plain text and not the syntax for creating a link. The correct syntax would be [This is a link](URL).
Option D (This is bolded text) is incorrect because this is plain text, not the correct Markdown syntax for bold text, which should be **This is bolded text** or __This is bolded text__.
Option E (1. This is an ordered list) is incorrect as it does represent an ordered list item, but it was not the syntax format asked about in the question. The question specifically focuses on matching associated text with syntax, where only the comment option is correct.
Reference:
GitHub Flavored Markdown (GFM)
GitHub Docs: Basic writing and formatting syntax
NEW QUESTION # 28
As a GitHub user, where in the UI can you configure two-factor authentication (2FA) to further secure your account?
- A. Settings -> Password and Authentication -> 2FA
- B. Repository Settings -> Secrets and Variables -> 2FA
- C. Profile -> Account -> 2FA
- D. Organization Settings -> Authentication Security -> 2FA
Answer: A
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 # 29
From the list of projects for an organization, how can a user identify a GitHub Projects template?
- A. Use the "is
" filter in the search text box. - B. View the contents in the .github/projects folder.
- C. Check the "show template" checkbox.
- D. Select the Templates tab.
Answer: D
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 # 30
Which of the following best describes cloning a repository?
- A. It creates a copy of the repository on GitHub.com.
- B. It retrieves code updates from the remote repository.
- C. It creates a copy of the repository on your local machine.
- D. It imports your source code into a new repository.
Answer: C
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 # 31
Which of the following statements most accurately describes secret gists?
- A. Anyone with the URL for the gist can view the gist.
- B. Secret gists require GitHub Enterprise.
- C. Users with assigned access can view the gist.
- D. Anyone can see the gist from the gist Discover page.
Answer: A
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 # 32
Which of the following is the purpose of a GitHub repository?
- A. To provide a cloud-based hosting service for project documentation, providing a secure and centralized location for file storage
- B. To provide a folder that stores project files, including documentation, on your local machine
- C. To provide a collaborative space where developers can share and manage code files, track changes, and store revision history
- D. To provide a version control system designed for small projects, offering simple tools for organizing files on your laptop
Answer: C
Explanation:
A GitHub repository serves as a collaborative space where developers can share and manage code files, track changes, and store revision history. It is much more than just a folder or simple tool; it is a comprehensive version control system that allows teams to collaborate effectively on codebases. Repositories enable developers to work together, manage contributions, review code, and maintain a complete history of every change made to the project.
NEW QUESTION # 33
Which of the following options is available as a default Discussion category?
- A. Bug report
- B. Security concern
- C. Show and tell
- D. Daily check-in
Answer: C
Explanation:
In GitHub Discussions, several default categories are provided to help organize conversations within a project. One of the default categories is Show and tell. This category is designed for users to showcase their work, share progress, or discuss achievements with the community. The other options listed (Bug report, Daily check-in, Security concern) are not default categories but could be custom categories created by the repository maintainers.
NEW QUESTION # 34
Which of the following is a key characteristic of GitHub Projects?
- A. Ability to import Gantt charts from Microsoft Project
- B. Ability to visualize the commit history
- C. Ability to create and customize multiple views
- D. Ability to enforce required fields
Answer: C
Explanation:
GitHub Projects is a flexible and powerful tool for project management that allows users to manage their work with ease. One of the key characteristics of GitHub Projects is the ability to create and customize multiple views. This feature enables teams to tailor the project management experience to their specific workflow needs, offering various ways to visualize tasks, issues, and work items.
Custom Views: You can set up different views like Kanban boards, tables, or timelines, and apply filters to show only what is relevant for a particular aspect of the project. This customization allows teams to organize their work in a way that best suits their processes, making it a highly adaptable project management tool.
Other options, such as visualizing commit history (which would fall under the 'Insights' feature), importing Gantt charts (which GitHub Projects does not natively support), or enforcing required fields (which might relate to form-based tools but not to GitHub Projects specifically), do not align with the key characteristics of GitHub Projects.
NEW QUESTION # 35
Which of the following are included as pre-defined repository roles?
(Each answer presents a complete solution. Choose three.)
- A. Security
- B. Delete
- C. Triage
- D. View
- E. Maintain
- F. Write
Answer: C,E,F
Explanation:
GitHub provides several pre-defined repository roles that determine the level of access and permissions a user has within a repository. The roles that are included by default are:
Triage: Allows users to manage issues and pull requests without write access to the code.
Maintain: Provides more extensive access, including managing settings, but without full administrative control.
Write: Grants permission to push changes and manage issues and pull requests.
Roles like "Security" and "Delete" are not standard pre-defined roles, and "View" is generally referred to as "Read" in GitHub's permission structure.
NEW QUESTION # 36
Which of the following are available statuses of a pull request?
(Each answer presents a complete solution. Choose four.)
- A. Open
- B. Merged
- C. Rebasing
- D. Modified
- E. Draft
- F. Closed
Answer: A,B,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 # 37
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 # 38
......
Microsoft GH-900 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
Ace GH-900 Certification with 77 Actual Questions: https://www.dumpsreview.com/GH-900-exam-dumps-review.html
PASS Microsoft GH-900 EXAM WITH UPDATED DUMPS: https://drive.google.com/open?id=1Vm6-xr4GikgC-z55-KyfWMGIIYzMBTp1

