Github Foundations Practice Test

### What are the possible GitHub account types? (Select three.) > https://docs.github.com/en/get-started/learning-about-github/types-of-github-accounts - [x] Personal accounts - [x] Organization accounts - [x] Enterprise accounts - [ ] Shared accounts - [ ] Company accounts ### Which of these GitHub features serves the purpose of an adaptable spreadsheet, task board and a roadmap that integrates with issues and pull requests on GitHub to plan and track your work effectively? 1. [x] GitHub Project 1. [ ] GitHub Copilot 1. [ ] GitHub Repository 1. [ ] GitHub Organization ### How does the synchronization between GitHub projects and issues and pull requests work? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects#staying-up-to-date 1. [x] Updates to the issues and pull requests will be automatically reflected in GitHub Projects. This integration works both ways, so that when you change information about a pull request or issue in your project, the pull request or issue reflects that information. 1. [ ] Updates to the issues and pull requests will not be automatically reflected in GitHub Projects, it has to be triggered manually by the user. 1. [ ] Information synchronization only works in one direction - from project to issues and pull requests. Updates to issues and pull requests won't be automatically mirrored in GitHub Project items. 1. [ ] Information synchronization only works in one direction - from issues and pull requests to projects. Updates to Project items won't be automatically mirrored in issues and pull requests. ### Which of these is true regarding custom fields for items in GitHub Projects? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/learning-about-projects/about-projects#adding-metadata-to-your-items 1. [x] Custom fields enable the addition of metadata beyond the built-in options, such as target dates and iteration fields. 1. [ ] Custom fields are limited to textual information and cannot include numeric or date-related metadata. 1. [ ] Custom fields are exclusively for aesthetic modifications and do not add any meaningful metadata. 1. [ ] Custom fields are limited to predefined options and cannot include user-defined metadata. ### What are the different available options for adding issues and pull requests to a GitHub Project board? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-items-in-your-project/adding-items-to-your-project#adding-issues-and-pull-requests-to-a-project 1. [x] Individually, automatically, or in bulk. 1. [ ] Only manually, one at a time. 1. [ ] Only individually or in bulk 1. [ ] Only automatically using project workflows ### Which of these layouts are available in GitHub Projects? (Choose three.) > https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/changing-the-layout-of-a-view - [x] Table layout - [x] Board layout - [x] Roadmap layout - [ ] Scrum layout - [ ] Agile layout - [ ] Project layout ### Which GitHub Project layout would best serve as a Kanban board? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/customizing-views-in-your-project/customizing-the-board-layout#about-the-board-layout 1. [x] Board layout 1. [ ] Table layout 1. [ ] Roadmap layout 1. [ ] Agile layout ### Which of these workflows are built-in automations in GitHub Projects? (Choose two.) > https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/using-the-built-in-automations - [x] When issues or pull requests in your project are closed, their status is set to Done - [x] When pull requests in your project are merged, their status is set to Done. - [ ] When issues or pull requests are opened in your project, their status is set to Done. - [ ] When a new contributor is added to a repository, the unassigned issues are assigned to him. - [ ] When a GitHub Action is triggered, create a new item in your GitHub Project. ### What are the different options that allow you to automate operations in your GitHub Project? (Choose three.) > https://docs.github.com/en/issues/planning-and-tracking-with-projects/automating-your-project/ - [x] Project workflows - [x] GitHub GraphQL API - [x] GitHub Actions - [ ] GitHub Copilot - [ ] GitHub Charts - [ ] GitHub Dependabot - [ ] Project items ### What is the difference between GitHub projects and GitHub projects classic? > https://docs.github.com/en/issues/organizing-your-work-with-project-boards/managing-project-boards/about-project-boards 1. [x] GitHub Projects is a the new GitHub experience which offers a lot of new features and improvements over the older GitHub Projects classic. 1. [ ] GitHub Projects classic is a the new GitHub experience which offers a lot of new features and improvements over the older GitHub Projects. 1. [ ] GitHub Projects classic is simpler way to manage your GitHub Projects and is recommended for beginners. 1. [ ] GitHub Projects classic is the enhanced versions which in addition to GitHub Projects offers some pre-cooked templates such as roadmaps and sprints. ### What are the use cases for labels? > https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/managing-labels 1. [x] Categorizing issues and pull requests 1. [ ] Categorizing files in the repository 1. [ ] Assigning them to releases so that they are included in the release notes > You can't assign labels to releases 1. [ ] Assigning labels to repository contributors to indicate their role and permissions in the project > You can't assign labels to contributors ### Why would a repository owner want to use milestones? (Choose two.) > https://docs.github.com/en/issues/using-labels-and-milestones-to-track-work/about-milestones - [x] To associate issues and pull requests with specific project phases - [x] To have an overview of how much work is left to complete a project phase - [ ] To bring automation to the repository > That's what GitHub Actions is for - [ ] To communicate that the repository is in a stable state - [ ] To track the repository dependencies > That's what Dependency graph and Dependabot are for - [ ] To list the repository contributors ### How can you assign a person to an issue or pull request? > https://docs.github.com/en/issues/tracking-your-work-with-issues/assigning-issues-and-pull-requests-to-other-github-users 1. [x] By using the Assignees field in the sidebar 1. [ ] By adding a label with their GitHub username to that issue or pull request 1. [ ] By mentioning them in the issue or pull request description 1. [ ] It's not possible to assign a person to an issue or pull request. ### If you face yourself often writing the same set of comments on issues or pull requests, what GitHub feature would you use to save time? > https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/using-saved-replies 1. [x] Saved replies 1. [ ] Comment templates 1. [ ] Repository templates 1. [ ] Labels ### Which of these statements about `saved replies` are true? (Choose two.) > https://docs.github.com/en/get-started/writing-on-github/working-with-saved-replies/using-saved-replies - [x] You can create, edit and delete them in your GitHub account settings in the `Saved replies` section. - [x] Saved replies are comments that you can reuse in issues and pull requests. - [ ] When someone comments on your issue or pull request, you can save their reply and set a notification to remind yourself about responding to it later. - [ ] Saved replies are only available to repository owners which can setup automated replies to issues and pull requests. ### What are some actions you can do in regards to Repository Templates? (Choose two.) > https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template - [x] Create a repository template from an existing repository - [x] Create a new repository from a repository template - [ ] Create an organization from a repository template - [ ] Delete all repositories created from a repository template - [ ] Delete all repositories that do not use a repository template provided by your organization ### Which feature in GitHub Projects enables you to effortlessly generate graphs and charts for visualizing the current status and historical progression of your project? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/viewing-insights-from-your-project/about-insights-for-projects 1. [x] Project Insights 1. [ ] GitHub Actions 1. [ ] Milestones 1. [ ] Copilot Charts > There is no such thing as Copilot Charts. ### What is the name of GitHub's continuous integration and continuous delivery (CI/CD) platform? > https://docs.github.com/en/actions/learn-github-actions/understanding-github-actions 1. [x] GitHub Actions 1. [ ] GitHub Workflows 1. [ ] GitHub Pipelines 1. [ ] GitHub Projects ### Which of these is a common use case for GitHub Actions? > https://docs.github.com/en/actions/automating-builds-and-tests/about-continuous-integration 1. [x] Running automated tests prior to merging a pull request 1. [ ] Adding sponsorship button to your project 1. [ ] Large data processing and analytics 1. [ ] Training machine learning models ### GitHub Action workflows are triggered by events. Which of these are valid events that GitHub Actions support? (Choose two.) > https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#about-events-that-trigger-workflows - [x] A commit is pushed to a branch - [x] A pull request is opened - [ ] A change is made to the repository settings - [ ] A new vulnerability has been detected in a dependency > This is not a valid event that could trigger a workflow. It's a feature of Dependabot. - [ ] A new member has been added to the repository ### Where can you find publicly available GitHub Actions? > https://github.com/marketplace?type=actions 1. [x] GitHub Marketplace 1. [ ] GitHub Public Action Storage 1. [ ] GitHub private repositories 1. [ ] GitHub Actions Project Boards ### Which of these tools serves as an AI pair programmer that offers autocomplete-style suggestions as you code? > https://docs.github.com/en/copilot/quickstart#introduction 1. [x] GitHub Copilot 1. [ ] GitHub AI Aid 1. [ ] GitHub Partner 1. [ ] GitHub Assistant ### Is GitHub Copilot free to use? > https://docs.github.com/en/copilot/overview-of-github-copilot/about-github-copilot-individual#understanding-the-differences-between-copilot-individual-and-copilot-business 1. [ ] No 1. [ ] Yes 1. [x] Yes, if you are a student, teacher, or maintainer of a popular open source project 1. [ ] Yes, but only for individuals working on public repositories > There is a free trial. However GitHub Copilot is a paid feature even for Individuals. ### What are the differences between GitHub Copilot Individual and GitHub Copilot Business? > https://docs.github.com/en/copilot/overview-of-github-copilot 1. [x] GitHub Copilot Individual can only be used by personal accounts and GitHub Copilot Business is used by organizations and enterprises 1. [ ] GitHub Copilot Individual uses an AI model trained on public source code and GitHub Copilot Business uses an AI model trained on private source code 1. [ ] GitHub Copilot Individual is free and GitHub Copilot Business is a paid feature 1. [ ] GitHub Copilot Individual can only be used when working on public repositories and GitHub Copilot Business can be used when working on public and private repositories within an organization ### How can you start using GitHub Copilot after activating the GitHub Copilot subscription? > https://docs.github.com/en/copilot/using-github-copilot/getting-started-with-github-copilot 1. [x] Setup GitHub Copilot in one of the supported IDE's such as Visual Studio Code or JetBrains and start coding 1. [ ] GitHub Copilot will automatically start giving suggestions on pull requests and issues in your repository 1. [ ] You need to setup a GitHub Action that will setup GitHub Copilot on your repository 1. [ ] You need to edit the repository settings and enable GitHub Copilot for the repository ### What is a GitHub Codespace? > https://docs.github.com/en/codespaces/overview 1. [x] It's a preconfigured development environment specifically setup for a repository. It allows you immediately start writing code for a project without having to setup a local development environment. 1. [ ] A GitHub Codespace is an interactive holographic coding environment that required special hardware to use. 1. [ ] GitHub Codespace is an AI-powered coding tool that auto-generates near flawless code 1. [ ] GitHub Codespace is an annual GitHub hosted event where developers can meet and discuss coding topics. ### What GitHub feature allows the creation of preconfigured development environments where all necessary tools and dependencies to contribute to a repository are installed? > https://docs.github.com/en/codespaces/overview#benefits-of-github-codespaces 1. [x] GitHub Codespaces 1. [ ] GitHub Docker 1. [ ] GitHub Copilot 1. [ ] GitHub DevEnv ### What GitHub features allow repository contributors to work on simple code changes directly through the web browser? (Choose two.) > https://docs.github.com/en/codespaces/the-githubdev-web-based-editor - [x] GitHub Codespaces - [x] github.dev editor - [ ] GitHub Projects - [ ] GitHub Dependabot - [ ] GitHub Remote - [ ] GitHub Online ### What are the different possible lifecycle phases for a GitHub Codespace? > https://docs.github.com/en/codespaces/getting-started/understanding-the-codespace-lifecycle 1. [x] Create, Rebuild, Stop, Delete 1. [ ] Create, Delete 1. [ ] Create, Stop, Delete 1. [ ] Create, Rebuild, Delete ### If you stop your GitHub Codespace environment can you come back to the changes later if you haven't committed them? > https://docs.github.com/en/codespaces/getting-started/understanding-the-codespace-lifecycle#stopping-a-codespace 1. [x] Yes, that's the default behavior when stopping and then starting a GitHub Codespace 1. [ ] No, these changes will be lost. You need to commit them before stopping the Codespace. ### Which of these statements regarding GitHub Codespaces lifecycle are true? (Choose three.) > https://docs.github.com/en/codespaces/getting-started/understanding-the-codespace-lifecycle - [x] A Codespace's lifecycle begins when you create a Codespace and ends when you delete it. - [x] You can stop and restart a Codespace without losing the changes that you make to your project. - [x] You can disconnect and reconnect to an active Codespace without affecting its running processes. - [ ] You can stop and restart a Codespace without affecting its running processes. - [ ] If you create another Codespace on a branch which already had a Codespace running on it, the original Codespace will be deleted - [ ] If you close the browser tab in which your Codespace was running, the Codespace will automatically be stopped > Closing the browser tab does not stop the Codespace and the processes continue running. If you only closed the tab, the Codespace will stop after reaching the inactivity timeout period ### Your project requires appropriate hardware to run. Can you customize the amount of CPU cores that will be allocated to your GitHub Codespace environment? > https://docs.github.com/en/codespaces/customizing-your-codespace/changing-the-machine-type-for-your-codespace 1. [x] Yes, you can choose an alternative machine type either when you create a codespace or at any time after you've created a codespace. 1. [ ] No, GitHub Codespaces are hosted on Microsoft Azure and we have no control on what hardware they are running > GitHub Codespaces are indeed hosted on Microsoft Azure, but you can configure the machine type to use ### How can you customize the environment that is run in GitHub Codespaces? > https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/adding-a-dev-container-configuration/introduction-to-dev-containers 1. [x] By creating a `.devcontainer/devcontainer.json` configuration file 1. [ ] By creating a custom Dockerfile in the root of your repository 1. [ ] By creating a `.github/codespaces.yml` configuration file 1. [ ] By creating custom machine images with the repository installed ### What is a GitHub Codespace deep link? > https://docs.github.com/en/codespaces/setting-up-your-project-for-codespaces/setting-up-your-repository/facilitating-quick-creation-and-resumption-of-codespaces#configuring-more-options 1. [x] It's a link that points to a specific GitHub.com Page that allows you to create a new GitHub Codespace and select specific configuration 1. [ ] It's a link between the GitHub Codespace and the repository which keeps the Codespace in sync with the changes in the repository 1. [ ] It's a link to the most recent GitHub Codespace that was created for the repository 1. [ ] It's a link to the most recent GitHub Codespace that you have used in any repository ### Who should have 2 Factor Authentication enabled on GitHub? > https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication 1. [x] All GitHub users 1. [ ] It's not recommended to use 2FA on GitHub for anyone 1. [ ] GitHub Organization owners 1. [ ] GitHub Enterprise Server users ### What are Enterprise Managed Users? > https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/understanding-iam-for-enterprises/about-enterprise-managed-users#about-enterprise-managed-users 1. [x] It's a GitHub Enterprise feature that allows you to manage user access from an external identity provider such as Azure AD or Okta 1. [ ] It's a GitHub Enterprise support user that can be used to manage your Enterprise by GitHub Support once requested 1. [ ] It's a shared user account that can be used by multiple users in your Enterprise 1. [ ] It's an user account without access to GitHub web UI but is rather only used for automation tasks in your GitHub Enterprise ### What are the different permission levels for a repository owned by a personal account? (Choose two.) > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/permission-levels-for-a-personal-account-repository - [x] repository owner - [x] collaborator - [ ] billing manager - [ ] security manager - [ ] project owner ### Which of these is NOT a role in a GitHub Organization? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/permission-levels-for-a-personal-account-repository 1. [x] Organization architect 1. [ ] Organization owner 1. [ ] Organization member 1. [ ] Organization moderator 1. [ ] Billing manager 1. [ ] Security manager 1. [ ] GitHub App manager 1. [ ] Outside collaborator ### Can you disable the issues tab on a repository? > https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/disabling-issues 1. [x] Yes 1. [ ] No > Features such as issues, wikis or projects can be disabled on a repository in the repository settings ### Where can you disable repository features such as issues, wikis or projects on a repository that you own? > https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository 1. [x] In the repository settings 1. [ ] In the `.github/settings.yml` configuration file 1. [ ] These features cannot be disabled 1. [ ] In your account settings ### What are the different repository visibility options? > https://docs.github.com/en/enterprise-cloud@latest/repositories/managing-your-repositorys-settings-and-features/managing-repository-settings/setting-repository-visibility 1. [x] Private, Public and Internal (Enterprise only) 1. [ ] Personal, Public and Internal (Enterprise only) 1. [ ] Private and Public 1. [ ] Personal and Public ### What is the purpose of a `CODEOWNERS` file? > https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners 1. [x] The `CODEOWNERS` file allows you to define individuals or teams that are responsible for specific areas of the codebase or its entirety. 1. [ ] The `CODEOWNERS` file contains information about the software licensing fees and conditions under which the code can be used. 1. [ ] The `CODEOWNERS` file includes information about the code quality and the maintainability of the code. 1. [ ] The `CODEOWNERS` file contains contact details to the repository owners. ### How can you enforce status checks passing before merging a pull request to the `main` branch? > https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#about-branch-protection-settings 1. [x] By creating a branch protection rule 1. [ ] By using GitHub Actions 1. [ ] By running tests locally prior to pushing to the remote repository 1. [ ] By making the repository private ### Which of these actions will make sure that prior to any push to the `main` branch, the changes have been approved by at least two people? (Choose three.) > https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-protected-branches/about-protected-branches#require-pull-request-reviews-before-merging - [x] Create a branch protection rule for `main` branch - [x] On the branch protection rule, require a pull request before merging - [x] On the branch protection rule, require at least 2 approvals before merging a pull request - [ ] Create a deployment protection rule for `main` branch - [ ] On the deployment protection rule, require at least 2 approvals before merging a pull request - [ ] Setup a CODEOWNERS file in the repository - [ ] Enforce status checks are passing before merging a pull request to the `main` branch ### What can you find in the security tab of a repository? > https://docs.github.com/en/code-security/getting-started/securing-your-repository 1. [x] A security overview of that repository such as vulnerabilities in dependencies, code scanning results, and secret scanning alerts 1. [ ] A list of all the GitHub Issues that have been opened in the repository for security reasons 1. [ ] A list of all best practices that GitHub recommends for securing your software 1. [ ] Contact information to the security team at GitHub ### What is CodeQL? > https://codeql.github.com/ 1. [x] A code analysis tool 1. [ ] A programming language 1. [ ] A text editor 1. [ ] A version control system ### Which tool helps you keep the repository dependencies up to date? > https://docs.github.com/en/code-security/dependabot 1. [x] Dependabot 1. [ ] GitHub Copilot 1. [ ] CodeQL 1. [ ] GitHub Actions ### What are Repository Insights? > https://docs.github.com/en/repositories/viewing-activity-and-data-for-your-repository/about-repository-graphs 1. [x] It's a place where you can see data about the repository such as code frequency, list of the most active contributors and more. 1. [ ] Repository Insights is a feature that allows you to see the repository's secret and code scanning alerts. 1. [ ] It's a list of best practices to follow when administrating a repository. 1. [ ] It's a feature that allows you to see the repository's security overview. ### Who are repository collaborators? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository 1. [x] Collaborators are people who have been granted write access to a repository. 1. [ ] Collaborators are people who have made code contributions to a repository. > That's contributors. You can be a collaborator on a repository without having contributed to it. You can also contribute to a repository without being a collaborator, by forking the repository and submitting a pull request. 1. [ ] Collaborators are people who have funded a repository. > That's sponsors 1. [ ] Collaborators are people who have raised issues or pull requests on a repository. ### How can you work together with a friend of yours on a repository that you have created on your personal GitHub account? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-access-to-your-personal-repositories/inviting-collaborators-to-a-personal-repository 1. [x] Go to repository settings and invite him as a collaborator 1. [ ] Add him to `CODEOWNERS` file 1. [ ] It's not possible to work together on personal repositories. You can only do that for repositories owned by organizations. 1. [ ] Provide your friend your GitHub credentials ### What are GitHub teams? > https://docs.github.com/en/organizations/organizing-members-into-teams/about-teams 1. [x] It's a group of GitHub users from the same organization. 1. [ ] It's a version of Microsoft Teams for GitHub. 1. [ ] It's a way of managing access to personal GitHub repositories to many users at once. > Personal repositories cannot be shared with teams, only with individual collaborators. ### What is the role of an organization moderator? > https://docs.github.com/en/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization 1. [x] Moderators are organization members who, in addition to their permissions as members, are allowed to block and unblock non-member contributors, set interaction limits, and hide comments in public repositories owned by the organization. 1. [ ] Moderators are organization members who have complete access to the organization. > That's organization owners 1. [ ] Moderators are organization members who can manage the billing settings for your organization, such as payment information. > That's billing managers 1. [ ] Moderators are organization members who can view security alerts and manage settings for code security across your organization, as well as read permissions for all repositories in the organization. > That's security managers ### What is the role of an organization security manager? > https://docs.github.com/en/organizations/managing-peoples-access-to-your-organization-with-roles/roles-in-an-organization 1. [x] Security managers are organization members who can view security alerts and manage settings for code security across your organization, as well as read permissions for all repositories in the organization. 1. [ ] Security managers are organization members who, in addition to their permissions as members, are allowed to block and unblock non-member contributors, set interaction limits, and hide comments in public repositories owned by the organization. > That's moderators 1. [ ] Security managers are organization members who have complete access to the organization. > That's organization owners 1. [ ] Security managers are organization members who can manage the billing settings for your organization, such as payment information. > That's billing managers ### Which of these definitions best describes open source software? > https://opensource.com/resources/what-open-source 1. [x] It's software with source code that anyone can inspect, modify, and enhance. 1. [ ] It's free to use for any purposes as long as you sign the open source license. 1. [ ] It's free to use for any personal purposes as long as you don't make profit out of it. 1. [ ] It's software with source code that anyone can rely on. ### What is the GitHub Sponsors program? > https://docs.github.com/en/sponsors/getting-started-with-github-sponsors/about-github-sponsors 1. [x] It's a way to financially support the developers of the open source projects 1. [ ] It's a group of companies that fund GitHub 1. [ ] It's a program that helps people find a job in the tech industry 1. [ ] It's a program where highly skilled developers volunteer to help students learn how to use GitHub ### On your personal GitHub dashboard you received a notification that user `octocat` has created a new repository `octocat/my-repo`. Why did you receive that notification? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-personal-account-on-github/managing-user-account-settings/about-your-personal-dashboard#staying-updated-with-activity-from-the-community 1. [x] Because you are following the user `octocat` 1. [ ] Because you recently visited `octocat` user profile 1. [ ] Because you contributed to the `octocat/my-repo` repository 1. [ ] Because you starred the `octocat/my-repo` repository ### What are the effects of you following a user on GitHub? > https://docs.github.com/en/get-started/quickstart/be-social#following-people 1. [x] You will get notifications on your personal dashboard about their public activity. 1. [ ] That user will get notifications on their personal dashboard about your public activity. 1. [ ] You will get access to their private repositories once the follow request is accepted. 1. [ ] You can engage in private conversations with them using GitHub Chat. ### What is the GitHub Marketplace? > https://docs.github.com/en/apps/github-marketplace/github-marketplace-overview/about-github-marketplace-for-apps 1. [x] GitHub Marketplace is a place where developers can find tools that help build software right alongside their code. 1. [ ] GitHub Marketplace is a place where companies can find developers to hire. 1. [ ] GitHub Marketplace is a place where developers offer to sell ownership of their repositories. 1. [ ] GitHub Marketplace is a place where you can sponsor open-source developers on a subscription basis. > That is GitHub Sponsors ### What is InnerSource? > https://resources.github.com/innersource/what-is-innersource/ 1. [x] InnerSource refers to the practice of applying open source principles within an organization 1. [ ] InnerSource refers to the practice of applying open source principles in personal projects 1. [ ] InnerSource refers to the internal knowledge base of an organization about the project they are working on. 1. [ ] InnerSource is a tool that allows organizations to see what open source projects they are using in their code. ### Which of these is a practice that encourages collaboration, visibility and sharing of code among different teams within an organization? > https://resources.github.com/innersource/what-is-innersource/ 1. [x] InnerSource 1. [ ] OpenSource 1. [ ] Continuous Integration 1. [ ] Git Flow ### What is a fork in GitHub? > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/about-forks 1. [x] A fork is a personal copy of another user's repository that lives on your account. 1. [ ] A fork is the place where a branch splits off into at least two other branches. 1. [ ] A fork is the state of a repository when it is not up to date with the remote repository. 1. [ ] A fork is a branch that is not up to date with the default branch of the repository. ### Which of these can make a repository more discoverable? (Choose three.) > https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository - [x] A well-crafted collection of markdown documents like `README.md`, `CONTRIBUTING.md` and others. - [x] Giving the repository a descriptive name - [x] Setting up topics for the repository - [ ] Defining proper CI/CD pipelines - [ ] Covering the repository software with tests - [ ] Using a wide range of GitHub Apps and GitHub Actions ### How can you define guiding protocols for users intending to submit bug reports or propose new features in your repository so they know what information to fill-in? > https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/about-issue-and-pull-request-templates 1. [x] Create issue templates 1. [ ] Add labels to issues that they create 1. [ ] Set up GitHub Projects 1. [ ] Have an example issue in the repository that is easy to copy and is never closed ### What is a pull request template? > https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository 1. [x] Pull request template is a file that defines the default pull request structure that project contributors will automatically see when they open a pull request. 1. [ ] Pull request template is a pull request that is automatically generated when a new branch is created. 1. [ ] Pull request template is a pull request that is chosen by the repository owner for reference when creating new pull requests. 1. [ ] Pull request template is an example of how code changes should look like in a pull request in a given repository. ### Which of these statements best describes a version control system? > https://docs.github.com/en/get-started/using-git/about-git#about-version-control-and-git 1. [x] It's a system that tracks the history of changes made to a collection of files. 1. [ ] It's a system that leverages the git command line tool. 1. [ ] It's a system that allows you to create a local copy of a project's source code. 1. [ ] It's a system that allows tracking of what people install on their computers. ### What is the meaning of the word `distributed` in distributed version control system? > https://about.gitlab.com/topics/version-control/benefits-distributed-version-control-system/ 1. [x] It means that developers can have a full copy of the repository and its history on their local machine. 1. [ ] It means that tasks among the team members using the system are easily distributed. 1. [ ] The term refers to the peer-to-peer sharing of code files among users. 1. [ ] It means that the codebase is distributed across multiple servers for load balancing. ### Which of these best describes git? > https://docs.github.com/en/get-started/using-git/about-git#about-version-control-and-git 1. [x] Git is a distributed version control system. 1. [ ] Git is a centralized version control system. 1. [ ] Git is the product of GitHub that allows for version control. 1. [ ] Git is a file sharing system. ### Which of these statements best describes what GitHub is? > https://docs.github.com/en/get-started/using-git/about-git#how-github-works 1. [x] GitHub is a platform that uses Git as its core technology and adds features that make collaboration and code management easier. 1. [ ] GitHub is a distributed version control system with features that make collaboration on projects easy. 1. [ ] GitHub is a file sharing platform with features that make collaboration on projects easy using centralized version control. 1. [ ] GitHub is a modern CI/CD platform with features that help drive rapid product development. ### What is the relation between Git and GitHub? > https://docs.github.com/en/get-started/using-git/about-git 1. [x] Git is a distributed version control system and GitHub is a platform that uses Git as its core technology. 1. [ ] GitHub is a distributed version control system and Git is a platform that uses GitHub as its core technology. 1. [ ] Git is a file sharing system and GitHub is a platform that uses Git as its core technology. 1. [ ] GitHub is a file sharing system and Git is a platform that uses GitHub as its core technology. ### What is a repository in GitHub? > https://docs.github.com/en/repositories/creating-and-managing-repositories/about-repositories 1. [x] It's a place where you can store your code, your files, and each file's revision history. 1. [ ] It's a place where you can store your Docker images or NPM packages. 1. [ ] It's a visual code editor that allows you to edit your source code in the browser. 1. [ ] A repository in GitHub is a chat room where developers can discuss code-related issues. ### What is a git commit? > https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/about-commits 1. [x] A commit is a snapshot of a repository at a specific point in time. 1. [ ] A commit refers to a new or updated file in a repository. 1. [ ] A commit refers to the code changes made to a repository in a pull request. 1. [ ] A commit is human readable text that describes the changes made to a repository. ### Which git feature allows developers to concurrently work on the same codebase without causing conflicts with each other? > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-branches 1. [x] branch 1. [ ] commit 1. [ ] remote 1. [ ] working tree ### What is the GitHub Flow? > https://docs.github.com/en/get-started/quickstart/github-flow 1. [x] It refers to a branch-based workflow where developers create a branch for each new change they're working on, and then open pull requests to get their code reviewed, tested, and merged into the main branch. 1. [ ] It's a practice where every time a commit is pushed to the main branch, a new release is automatically created and deployed. 1. [ ] It's a practice where every time a commit is pushed to the main branch, a set of CI/CD pipelines are triggered to run tests and validate the code changes. 1. [ ] It refers to a one branch workflow where developers work on their features on the `master` branch, and then get their feature code reviewed, tested, and committed. ### What is a GitHub Pro plan? > https://docs.github.com/en/get-started/learning-about-github/githubs-plans#github-pro 1. [x] GitHub Pro is a paid plan for personal accounts that offers additional features in addition to the free plan. 1. [ ] GitHub Pro is a paid plan for organizations that offers additional features in addition to the free organizations plan. 1. [ ] GitHub Pro is a certification path at the end of which you become a GitHub Pro. 1. [ ] GitHub Pro is a paid plan for enterprises to self-host GitHub on their own servers. ### Is there a free version of GitHub for organizations? > https://docs.github.com/en/get-started/learning-about-github/githubs-plans#github-free-for-organizations 1. [x] Yes 1. [ ] No ### What are the different GitHub pricing plans for organization accounts? (Select three.) > https://github.com/pricing - [x] Free - [x] Team - [x] Enterprise - [ ] Pro - [ ] Personal - [ ] Business - [ ] Advanced ### Which GitHub pricing plan offers self-hosted deployment of GitHub? > https://docs.github.com/en/[email protected]/admin/overview/about-github-enterprise-server 1. [x] Enterprise 1. [ ] Pro 1. [ ] Team 1. [ ] Free 1. [ ] All of them 1. [ ] None of them ### Under which GitHub pricing plan can you create an unlimited number of public repositories? > https://github.com/pricing 1. [x] All of them 1. [ ] Enterprise 1. [ ] Pro 1. [ ] Team 1. [ ] Team and Enterprise 1. [ ] Free ### What are the different deployment options for GitHub Enterprise? (Select two.) > https://docs.github.com/en/enterprise-cloud@latest/admin/overview/about-github-for-enterprises#about-deployment-options - [x] GitHub Enterprise Cloud - [x] GitHub Enterprise Server - [ ] GitHub Enterprise Pro - [ ] GitHub Enterprise Team - [ ] GitHub Enterprise Free - [ ] GitHub Enterprise Advanced ### Which of these statements about GitHub Enterprise deployment options are true? (Select two.) > https://docs.github.com/en/enterprise-cloud@latest/admin/overview/about-github-for-enterprises#about-deployment-options - [x] GitHub Enterprise Cloud is a set of advanced functionality on GitHub.com - [x] GitHub Enterprise Server is a self-hosted platform that runs on the company's infrastructure - [ ] GitHub Enterprise Server is a set of advanced functionality on GitHub.com - [ ] GitHub Enterprise Cloud is a cloud hosted platform that runs on the company's cloud infrastructure - [ ] GitHub Enterprise Cloud is a self-hosted platform that runs on the company's infrastructure ### What are pinned repositories on GitHub? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/pinning-items-to-your-profile 1. [x] Pinned repositories are repositories that you have pinned to the top of your GitHub profile. 1. [ ] Pinned repositories are repositories that GitHub promotes. There are new pinned repositories each month. 1. [ ] Pinned repositories are repositories that have been temporarily or indefinitely suspended by GitHub. 1. [ ] Pinned repositories are repositories that have been marked as favorites by GitHub users. ### Which of these files can customize your GitHub profile? > https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/customizing-your-profile/managing-your-profile-readme 1. [x] a profile `README.md` file 1. [ ] a profile `CONTRIBUTING.md` file 1. [ ] profile is not customizable through files but through the account settings ### What language is used to write comments on GitHub issues and pull requests? > https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax 1. [x] Markdown 1. [ ] HTML 1. [ ] AsciiDoc 1. [ ] reStructuredText ### What are GitHub's slash commands? > https://docs.github.com/en/issues/tracking-your-work-with-issues/about-slash-commands 1. [x] It's a way to quickly insert complex Markdown into your pull request or issue comments and descriptions. 1. [ ] It's a way of automating GitHub Actions. 1. [ ] It's an another name for the GitHub CLI. 1. [ ] It's a way to quickly fix code formatting issues in your pull request's code changes. ### How does GitHub help people that want to write proper issue and pull request comments but don't know Markdown syntax? > https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/about-writing-and-formatting-on-github#text-formatting-toolbar 1. [x] There is a text formatting toolbar on issue and pull request comment forms which generates Markdown for you. 1. [ ] By providing a Markdown cheat sheet. 1. [ ] GitHub automatically converts HTML to Markdown in issue and pull request comments. 1. [ ] GitHub pull requests and issues don't support Markdown. ### What is GitHub Desktop? > https://docs.github.com/en/desktop 1. [x] It's a GUI Application for working with Git and GitHub on your computer. 1. [ ] It's a self hosted version of GitHub that you can install on your own servers or personal computer. 1. [ ] It's a GitHub pricing plan for personal accounts that offers additional features in addition to the free plan. 1. [ ] It's an online editor that allows you to work on your repository in the browser. ### What is GitHub Mobile? > https://docs.github.com/en/get-started/using-github/github-mobile 1. [x] It's a mobile app for iOS and Android that allows you to work with GitHub from your phone. 1. [ ] It's a service that allows you to test your mobile apps on real devices. 1. [ ] It's a GitHub data transfer service for petabytes of data where a GitHub owned car will drive to your location and transfer the data to your local network. 1. [ ] It's a GitHub telemetry service that allows you to track your users' activity on your website or mobile app. ### How can you link a pull request to an issue? (Choose two.) > https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue - [x] Manually from either the pull request or the issue view. - [x] By using a keyword in the pull request description and referencing the issue number. - [ ] By using a keyword in the pull request description and referencing the issue title. - [ ] By including the issue number in the code changes. - [ ] By including the issue number in the commit message. ### What improvement do issue forms bring over issue templates? > https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms 1. [x] Issue forms allow for users to be prompted for information when creating an issue and then have that information automatically added to the issue. 1. [ ] There is no such thing as issue forms in GitHub 1. [ ] Issue form is a feature that automatically closes issues after a certain period of time, providing a more efficient issue management compared to issue templates. 1. [ ] Issue form is a tool for creating issues that only contain form fields for title and description, simplifying the process but not necessarily improving the information quality compared to issue templates. ### Which of these is a repository feature that is used as a community forum to have conversations, ask questions, post announcements and share ideas? > https://docs.github.com/en/discussions/quickstart#introduction 1. [x] Discussions 1. [ ] Wikis 1. [ ] Gists 1. [ ] Pull requests ### What is the effect of adding a line `Closes #11` to the pull request's description? > https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests#linking-a-pull-request-to-an-issue 1. [x] Once that pull request is merged, the issue #11 will be closed automatically. 1. [ ] Once that pull request is merged, the pull request #11 will be deleted automatically. 1. [ ] Once that pull request is merged, the #11th branch will be deleted automatically. 1. [ ] That pull request will be automatically merged once the issue #11 is closed. 1. [ ] That pull request will be automatically merged on the 11th of that month. ### In GitHub a proposal to merge a set of changes from one branch into another branch is called a: > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests 1. [x] Pull Request 1. [ ] Gist 1. [ ] Issue 1. [ ] Commit 1. [ ] A merge branch ### You want to merge changes from branch `feature-a` into `main` and you are creating a pull request. Which branch should be the `base` branch and which branch should be the `compare` branch? > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-comparing-branches-in-pull-requests 1. [x] `main` is the base branch and `feature-a` is the compare branch. 1. [ ] `feature-a` is the base branch and `main` is the compare branch. ### What are draft pull requests? > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests#draft-pull-requests 1. [x] Draft pull requests are pull requests that are not ready to be reviewed yet. 1. [ ] Draft pull requests are pull requests that have already been reviewed but not merged. 1. [ ] Draft pull requests are pull requests that have already been reviewed but not approved. 1. [ ] Draft pull requests are pull requests are like issue templates but for pull requests. ### What are the possible statuses for a pull request review? (Choose three.) > https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/about-pull-request-reviews#about-pull-request-reviews - [x] Comment - [x] Approve - [x] Request Changes - [ ] Close - [ ] Deny - [ ] Applaud ### Which of these statements about the differences of issues and discussions is true? > https://docs.github.com/en/discussions/quickstart 1. [x] GitHub Discussions are for conversations that need to be transparent and accessible but do not need to be tracked on a project board and are not related to code, unlike GitHub Issues. 1. [ ] GitHub Issues are for conversations that need to be transparent and accessible but do not need to be tracked on a project board and are not related to code, unlike GitHub Discussions. ### Which of the GitHub features best serves as a simple way to share small code snippets with others? > https://docs.github.com/en/get-started/writing-on-github/editing-and-sharing-content-with-gists/creating-gists 1. [x] Gists 1. [ ] Wikis 1. [ ] Issues 1. [ ] Projects ### What are GitHub Wikis? > https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis 1. [x] Wikis is repository feature for hosting documentation. 1. [ ] Wikis is the official GitHub documentation. 1. [ ] Wikis is a feature for hosting code snippets. > That's Gists 1. [ ] Wikis is a place where you hold the project's `README.md` file. ### What are the two available options when you no longer need to use a Project? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/closing-and-deleting-your-projects 1. [ ] Delete and archive 1. [x] Close and delete 1. [ ] Archive and close 1. [ ] Deactivate and archive ### Can you change a gist from public to secret after creating it? > https://docs.github.com/en/get-started/writing-on-github/editing-and-sharing-content-with-gists/creating-gists 1. [ ] Yes 1. [x] No > After creating a gist, you cannot convert it from public to secret. ### What happens when you choose to close a Project? > https://docs.github.com/en/issues/planning-and-tracking-with-projects/managing-your-project/closing-and-deleting-your-projects 1. [ ] The project is permanently removed from the platform 1. [x] The content is retained and you have the ability to reopen it later. 1. [ ] Associated values and insights data are deleted 1. [ ] The Project is moved to a separate folder ### If there are multiple Readme.md files in a GitHub repository, what is the priority order to show them? > https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-readmes 1. [ ] Root directory, `.docs` directory, `.github` directory 1. [ ] `.docs` directory, Root directory, `.github` directory 1. [x] `.github` directory, Root directory, `.docs` directory 1. [ ] `.docs` directory, `.github` directory, Root directory ### Which of the following Git commands allow you to create a new branch and start working on it in one line? (Select two.) > https://git-scm.com/docs/git-switch - [x] git checkout -b `<new_branch_name>` - [ ] git branch -c `<new_branch_name>` - [x] git switch -c `<new_branch_name>` - [ ] git merge -m `<new_branch_name>` - [ ] git switch -m `<new_branch_name>` - [ ] git checkout -m `<new_branch_name>` ### If a GitHub Discussion is converted into an Issue and the issue is closed or referred to using its corresponding # number, will the discussion be modified? > https://docs.github.com/en/issues/tracking-your-work-with-issues/creating-an-issue#creating-an-issue-from-discussion 1. [x] No 1. [ ] Yes > When you "convert" a discussion into an Issue it essentially creates a new issue that is soft linked to the discussion and pre-fills the issue information. There isn't a bigger connection between them. ### Which information can be found in the Pulse section in the Insights tab of a repository? (Choose three) > https://docs.github.com/en/repositories/viewing-activity-and-data-for-your-repository/using-pulse-to-view-a-summary-of-repository-activity - [x] Pull requests open/merged ratio - [x] Summary of repository activity - [ ] Amount of code line additions and deletions - [ ] List of issue discussions - [x] List of unresolved conversations - [ ] Amount of forks of the repo ### What are the different levels of GitHub organizational hierarchy? (Choose three.) > https://learn.microsoft.com/en-us/training/modules/github-introduction-administration/2-what-is-github-administration - [x] Team level - [x] Organization level - [ ] Personal level > GitHub Personal is a type of account and not an organizational hierarchy on GitHub. - [ ] Pro level > GitHub Pro is a type of account and not an organizational hierarchy on GitHub. - [x] Enterprise level ### Who can setup billing or assign billing managers for an organization? (Select three.) > Official GitHub documentation: https://docs.github.com/en/organizations/managing-peoples-access-to-your-organization-with-roles/adding-a-billing-manager-to-your-organization, Microsoft Learn study guide: https://learn.microsoft.com/en-us/training/modules/github-introduction-administration/2-what-is-github-administration - [ ] Owner of the repository - [ ] Team maintainer at the team level - [ ] Admin in at the team level - [x] Billing managers at the organization level - [x] Owner at the organization level - [x] Owner at the enterprise level ### What is one of the main benefits for using a Personal Access Token (PAT) instead of a standard username and password for GitHub authentication? > https://learn.microsoft.com/en-us/training/modules/github-introduction-administration/3-how-github-authentication-works 1. [ ] PATs can be managed by the organization and enterprise. > PAT's as the name suggests, are personal. Organizations and Enterprises can manage other forms of authentication, such as LDAP, SAML, and SSH keys. 1. [ ] PAT is an extra layer of security used when logging into websites or apps. With PAT, users have to sign in with their username and password and provide another form of authentication that only they have access to. > This is a description of multi-factor or two-factor authentication. 1. [x] PAT can be used for authentication to GitHub when using the GitHub API or the command line. Users generate a token via the GitHub's settings option, and tie the token permissions to a repository or organization. 1. [ ] PAT lets you authenticate GitHub Enterprise Server against your existing accounts and centrally manage repository access. > This is a description of LDAP's benefits for GitHub, not PAT. ### What are the different forms of two-factor or multi-factor authentication supported by GitHub? (Choose five.) > https://docs.github.com/en/authentication/securing-your-account-with-two-factor-authentication-2fa/accessing-github-using-two-factor-authentication - [x] Passkey - [x] Text message - [ ] Phone call > While text messages are supported in some countries, phone calls are not - [ ] Email - [x] Security key - [x] GitHub mobile - [x] Time-based one-time password (TOTP) ### What are the different GitHub pricing plans for personal accounts? (Select two) > https://docs.github.com/en/get-started/learning-about-github/githubs-plans - [x] Free - [ ] Team - [ ] Enterprise - [x] Pro - [ ] Personal - [ ] Business - [ ] Advanced ### What is/are the common GitHub pricing plan(s) for both personal and organization accounts? > https://docs.github.com/en/get-started/learning-about-github/githubs-plans 1. [x] Free 1. [ ] Team 1. [ ] Enterprise 1. [ ] Pro 1. [ ] Personal 1. [ ] Business 1. [ ] Advanced ### What syntax is used in GitHub Markdown to create a task list? > https://learn.microsoft.com/en-us/training/modules/communicate-using-markdown/2-what-is-markdown 1. [x] `- [ ] and - [x]` 1. [ ] `# TODO: and # DONE:` 1. [ ] `// TODO: and // DONE:` 1. [ ] `<task> and <done>` ### Which Markdown element is not correctly paired with its syntax? > https://learn.microsoft.com/en-us/training/modules/communicate-using-markdown/2-what-is-markdown 1. [ ] Heading - `# Heading` 1. [ ] Bold text - `**bold**` 1. [x] Inline code - `'''code'''` 1. [ ] Hyperlink - `[title](https://)` ### What feature is unique to GitHub Desktop compared to github.com? > GitHub Desktop provides a graphical interface for visualizing branch histories, which is unique compared to the website > - https://docs.github.com/en/desktop/making-changes-in-a-branch/viewing-the-branch-history-in-github-desktop > - https://docs.github.com/en/repositories/viewing-activity-and-data-for-your-repository/using-the-activity-view-to-see-changes-to-a-repository 1. [ ] Clone repositories to local machine 1. [ ] Create new repositories 1. [ ] View repository insights 1. [x] Visualize branch histories in a graphical interface ### Which of the following actions cannot be performed directly from GitHub Desktop? > Managing GitHub Actions is not a feature available in GitHub Desktop and must be done via github.com or CI/CD integration > - https://docs.github.com/en/actions/quickstart#prerequisites 1. [ ] Stashing changes 1. [x] Managing GitHub Actions 1. [ ] Switching between branches 1. [ ] Committing changes

Found this practice test useful?

Leave a ⭐ on the repository and consider giving back to the community by:

  • contributing one or more mock exam questions (takes minutes)