View Full Microsoft GH-900 Exam Dumps and Practice Test Dumps
Question 1
What is the primary purpose of version control?
- Track and manage changes to files over time
- Automatically deploy every application update
- Replace all project documentation with source code
- Prevent multiple developers from accessing repositories
Correct Answer: 1
Explanation:
Version control is designed to record changes made to files so teams can understand how a project evolved. Git is a distributed version control system that allows users to create commits representing specific points in a project’s history. Developers can compare revisions, restore earlier versions, create branches, and collaborate without losing previous work. Version control also provides a structured way to investigate when and why changes were introduced. GitHub builds collaboration features around Git repositories, but Git itself provides the underlying version-control capabilities. Therefore, tracking and managing file changes over time is the fundamental purpose of version control.
Question 2
Which statement correctly distinguishes Git from GitHub?
- Git provides hosted repositories, while GitHub provides local commits
- Git is version control software, while GitHub is a collaboration platform
- Git manages organizations, while GitHub creates branches locally
- Git is a web application, while GitHub is a command-line utility
Correct Answer: 2
Explanation:
Git and GitHub are related but serve different roles. Git is a distributed version control system that runs locally and manages repositories, branches, commits, merges, and other version-control operations. GitHub is a cloud-based platform that hosts Git repositories and provides collaboration capabilities such as pull requests, issues, discussions, code review, project management, and repository administration. A developer can use Git without GitHub, such as when working with a local repository. Similarly, GitHub relies heavily on Git concepts but adds services and collaboration features around them. Understanding this distinction is fundamental when learning GitHub because the two technologies are complementary rather than interchangeable.
Question 3
What does a Git commit represent?
- A permanent deletion of the repository
- A remote server configuration
- A recorded set of changes in repository history
- A request to merge two unrelated repositories
Correct Answer: 3
Explanation:
A Git commit records a snapshot of changes within a repository’s history. It normally contains information such as the author, timestamp, message, parent commit reference, and the state of tracked files associated with that point in history. Commits allow developers to understand how the project changed and provide identifiable points that can be compared or revisited later. A commit is not the same as pushing changes to GitHub. A developer can create commits locally and push them to a remote repository afterward. This separation between local history and remote synchronization is one of the important concepts behind Git’s distributed design.
Question 4
Which GitHub feature is designed for proposing and reviewing code changes?
- Repository templates
- GitHub Discussions
- GitHub Pages
- Pull requests
Correct Answer: 4
Explanation:
Pull requests provide a structured way to propose changes and have them reviewed before they are incorporated into a target branch. A pull request can show differences between branches, allow reviewers to leave comments, support discussions about individual changes, and display automated checks. Teams commonly use pull requests as part of GitHub Flow because they create a controlled collaboration point between contributors and maintainers. Repository templates help create repositories, Discussions support broader conversations, and GitHub Pages publishes web content. None of those features is specifically designed around the review and integration workflow that pull requests provide.
Question 5
What is a Git branch primarily used for?
- Creating an independent line of development
- Storing encrypted repository credentials
- Publishing documentation as a website
- Registering a GitHub organization
Correct Answer: 1
Explanation:
A Git branch provides an independent line of development within a repository. Developers can create a branch to work on a feature, correction, experiment, or other change without directly modifying the main development line. Once the work is ready, it can be reviewed and potentially merged into another branch. Branches are lightweight references to commits rather than complete copies of an entire repository. This makes them useful for parallel development and collaboration. GitHub extends the branch concept with pull requests, branch protection, and other repository controls. Using branches helps teams isolate changes while maintaining a shared project history.
Question 6
Which file commonly explains the purpose and basic usage of a repository?
- SECURITY.md
- README.md
- CODEOWNERS
- LICENSE
Correct Answer: 2
Explanation:
A README.md file commonly provides an introduction to a repository and explains what the project does and how people can use or contribute to it. It can contain headings, descriptions, installation instructions, examples, configuration guidance, and other project information. GitHub renders Markdown files directly in repository interfaces, making README content easy for visitors to discover. SECURITY.md has a security-reporting purpose, CODEOWNERS identifies responsible reviewers for certain paths, and LICENSE communicates legal usage terms. Although repositories can contain many documentation files, README.md is generally the primary starting point for understanding a project’s purpose and basic usage.
Question 7
What is the purpose of a CODEOWNERS file?
- Define repository billing contacts
- Configure GitHub Actions runner machines
- Specify people or teams responsible for reviewing paths
- Store credentials for protected environments
Correct Answer: 3
Explanation:
A CODEOWNERS file identifies users or teams that are responsible for reviewing changes affecting particular files or directories. When configured correctly, GitHub can use this information to request reviews automatically for matching pull requests. This is particularly useful in larger repositories where different teams own different components. CODEOWNERS does not function as a credentials store, billing configuration, or runner-management file. Its purpose is related to code ownership and review responsibility. Organizations can combine CODEOWNERS with branch protection or repository rules so that changes to important areas receive review from the appropriate maintainers before they can be merged.
Question 8
Which GitHub feature provides a place for long-form community conversations?
- Releases
- Projects
- Discussions
- Codespaces
Correct Answer: 3
Explanation:
GitHub Discussions provides a space for community-oriented conversations that do not necessarily belong in issues or pull requests. Teams and open-source communities can use Discussions for questions, ideas, announcements, polls, feedback, and broader conversations. Issues are generally more focused on tracking specific work, problems, or tasks, while pull requests concentrate on proposed code changes. Releases communicate versions of software, and Codespaces provides a development environment. Discussions therefore fill an important communication role by allowing participants to exchange information without forcing every conversation into a task-tracking or code-review workflow.
Question 9
What is the main purpose of a GitHub repository?
- Store and organize a project’s files and development history
- Provide only temporary storage for deleted accounts
- Replace every external cloud-storage service
- Limit a project to a single immutable version
Correct Answer: 1
Explanation:
A GitHub repository stores a project’s files together with its Git-based development history and related collaboration resources. Depending on configuration, a repository can contain source code, documentation, issues, pull requests, branches, releases, workflows, security information, and other project assets. Repositories can be public or private according to the selected visibility and organizational policies. They are not simply temporary file-storage locations and do not restrict projects to one immutable version. The repository model gives teams a central location for managing project content and coordinating development while retaining a historical record of changes.
Question 10
Which file communicates the legal terms under which project code may be used?
- CONTRIBUTING.md
- LICENSE
- README.md
- SECURITY.md
Correct Answer: 2
Explanation:
A LICENSE file communicates the legal terms governing how software may be used, modified, distributed, or otherwise handled. Different open-source licenses establish different permissions and conditions, so selecting and clearly publishing an appropriate license can be important for project maintainers and users. CONTRIBUTING.md generally explains how people can contribute to a project, README.md introduces the project and its usage, and SECURITY.md can describe how security vulnerabilities should be reported. GitHub repositories may contain all of these files because they serve different purposes. The LICENSE file specifically addresses the legal framework associated with the project’s code.
Question 11
What is a GitHub fork?
- A temporary pull request review session
- A deleted branch restored from history
- A compressed repository backup
- A copy of a repository under another account or organization
Correct Answer: 4
Explanation:
A fork is a copy of a repository created under another user’s account or organization. Forks are commonly used when someone wants to work on a project without having direct write access to the original repository. The contributor can make changes in the fork and later propose them to the upstream repository through a pull request. This model is especially common in open-source projects. A fork is different from simply creating a branch because the fork establishes a separate repository boundary. The original repository remains distinct while the fork provides an independent space for development and experimentation.
Question 12
What does Markdown primarily provide on GitHub?
- A programming language for Git commands
- A database format for repository metadata
- A lightweight way to format readable content
- A replacement for repository permissions
Correct Answer: 3
Explanation:
Markdown is a lightweight markup language used to format readable text. GitHub supports Markdown in many areas, including README files, issues, pull requests, discussions, and other documentation-oriented content. Users can create headings, lists, links, emphasis, code blocks, tables, and other structures without relying on complex document editors. Markdown does not replace Git commands or repository permissions. Its purpose is communication and presentation. Because GitHub renders Markdown directly in many collaboration areas, understanding basic Markdown helps users write clearer project documentation, issue descriptions, review comments, and community discussions.
Question 13
Which GitHub option helps users create repositories from a predefined structure?
- Repository template
- Audit log
- GitHub Mobile
- Security overview
Correct Answer: 1
Explanation:
A repository template provides a predefined starting structure that can be used when creating new repositories. Templates are useful when organizations or teams repeatedly create projects that share common files, directories, documentation, configurations, or workflows. Instead of rebuilding the same structure manually, users can create a repository from the template and then adapt it for the new project. An audit log records administrative activity, GitHub Mobile provides mobile access to GitHub functionality, and the security overview presents security-related information. Templates therefore focus on consistency and faster project initialization rather than administration or security monitoring.
Question 14
What is the purpose of GitHub Mobile?
- Manage Git objects without using a repository
- Access GitHub collaboration features from mobile devices
- Convert Git repositories into virtual machines
- Replace all GitHub organization settings
Correct Answer: 2
Explanation:
GitHub Mobile provides access to GitHub collaboration capabilities from supported mobile devices. Users can interact with notifications, review pull requests, respond to issues, and perform other supported activities while away from a desktop environment. It is designed to complement GitHub’s web and development experiences rather than replace Git itself or all administrative interfaces. GitHub Mobile does not turn repositories into virtual machines or eliminate organization settings. Its value comes from allowing users to stay connected with project activity and collaboration workflows when they are working from a mobile device.
Question 15
What is the main purpose of GitHub Desktop?
- Host repositories without any Git service
- Provide a graphical interface for Git workflows
- Replace every GitHub repository permission
- Convert Markdown files into executable programs
Correct Answer: 2
Explanation:
GitHub Desktop provides a graphical interface for common Git workflows. It can help users clone repositories, create branches, review changes, make commits, synchronize with remote repositories, and manage other everyday version-control tasks without relying exclusively on command-line commands. It is especially useful for users who prefer a visual workflow or are becoming familiar with Git concepts. GitHub Desktop does not replace repository permissions or transform Markdown into executable applications. The application works with Git repositories and can connect users to GitHub-based collaboration while presenting many operations through a desktop interface.
Question 16
What does GitHub Marketplace primarily offer?
- Physical hardware for software teams
- Private replacements for Git itself
- Apps and actions that extend GitHub capabilities
- Guaranteed hosting for every public repository
Correct Answer: 3
Explanation:
GitHub Marketplace provides a catalog of applications and GitHub Actions that can extend or integrate with GitHub workflows. Organizations and developers can discover tools for areas such as project management, continuous integration, security, code quality, deployment, and other development needs. Marketplace offerings can connect with repositories or automate particular tasks depending on their capabilities and permissions. Marketplace is not a hardware store, a replacement for Git, or a guarantee of repository hosting. Its purpose is to help GitHub users discover integrations and automation tools that can supplement the platform’s built-in functionality.
Question 17
Which GitHub concept allows teams to apply open-source practices internally?
- InnerSource
- GitHub Pages
- Repository archiving
- GitHub Releases
Correct Answer: 1
Explanation:
InnerSource applies open-source development principles within an organization’s internal environment. Teams can make selected projects discoverable to internal contributors and encourage practices such as shared ownership, transparent collaboration, contribution through pull requests, and peer review. The approach can help organizations reduce isolated development and make reusable knowledge or code easier to discover across teams. InnerSource does not mean that the project is automatically made publicly available. GitHub Pages focuses on publishing websites, Releases organize published software versions, and repository archiving changes a repository’s active state. InnerSource specifically describes internal collaboration using open-source-inspired development practices.
Question 18
What is the purpose of a repository star on GitHub?
- Grant the user write permission
- Copy the repository into a new organization
- Enable mandatory pull-request approval
- Mark the repository as something the user wants to follow or revisit
Correct Answer: 4
Explanation:
A GitHub star allows a user to mark a repository as interesting or useful for future reference. Starring does not grant write permissions, create a fork, or impose review requirements. It provides a lightweight way for users to keep track of repositories they want to revisit and can also contribute to repository visibility through GitHub’s discovery mechanisms. A star should therefore be understood as an interest or bookmarking-style signal rather than an administrative permission. Repository access remains controlled by visibility, roles, organization policies, and other authorization mechanisms.
Question 19
Which GitHub capability helps users discover repository activity and development trends?
- Repository Insights
- GitHub Codespaces
- GitHub Mobile
- GitHub Sponsors
Correct Answer: 1
Explanation:
Repository Insights provides information that can help users understand activity and development patterns associated with a repository. Depending on the available features and permissions, insights can expose information about areas such as contributors, traffic, commits, and other repository activity. This information can help maintainers understand how a project is being used and how development is progressing. Codespaces focuses on cloud development environments, GitHub Mobile provides mobile access, and GitHub Sponsors supports funding relationships. Insights is therefore the capability most directly associated with examining repository-level activity and metrics.
Question 20
What is the purpose of following a GitHub user or organization?
- Automatically grant repository administrator access
- Receive updates about relevant activity
- Copy all repositories into the follower’s account
- Convert private repositories into public projects
Correct Answer: 2
Explanation:
Following a GitHub user or organization allows a user to stay informed about relevant activity associated with that account. It does not change repository permissions, copy repositories, or alter repository visibility. Following is primarily a discovery and notification-oriented feature that helps users keep track of activity from people or organizations they find relevant. Access to private repositories remains controlled separately through permissions and authorization. Similarly, copying repositories requires mechanisms such as forking or other repository operations. Understanding the distinction between following and access control is important when navigating GitHub’s social and collaboration features.