As a GitHub user, where in the UI can you configure two-factor authentication (2FA) to further secure your account?
Answer : D
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.
=================
What steps must you follow to use GitHub Copilot?
(Each correct answer presents part of the solution. Choose two.)
Answer : A, B
Which of the following types of charts can a user create to get GitHub Projects insights? (Each answer presents a complete solution. Choose two.)
Answer : C, E
What is the purpose of GitHub Sponsors?
Answer : D
GitHub Sponsors is a program designed to provide a platform for developers and companies to financially support open-source projects and their maintainers.
Financial Support for Open Source Projects:
Option D is correct because the main purpose of GitHub Sponsors is to allow members of the developer community, including individuals and organizations, to financially support open-source projects and maintainers. This helps sustain open-source development by providing developers with the resources they need to continue their work.
Incorrect Options:
Option A is incorrect because GitHub Sponsors is not based on project popularity (e.g., stars); it is based on voluntary contributions.
Option B is incorrect because while GitHub provides the platform, the purpose of GitHub Sponsors is not for GitHub itself to fund projects, but to enable the broader community to do so.
Option C is incorrect because GitHub Sponsors is not a marketplace for purchasing software but a platform for supporting developers.
GitHub Docs: GitHub Sponsors
=================
How are commits related to pull requests?
Answer : A
Commits and pull requests (PRs) are fundamental concepts in Git and GitHub workflows, particularly in collaborative software development.
Commits:
Commits are individual changes or updates made to the codebase. Each commit is identified by a unique SHA-1 hash and typically includes a commit message describing the changes.
Commits are made to a specific branch in the repository. The branch could be the main branch, or more commonly, a feature branch created for specific work or a feature.
Pull Requests (PRs):
A pull request is a mechanism for developers to notify team members that a branch is ready to be merged into another branch, usually the main branch.
PRs are used to review code, discuss changes, and make improvements before the branch is merged into the target branch.
Relationship Between Commits and PRs:
Option A is correct because commits are made on a branch, and this branch can have a pull request associated with it. The pull request tracks the branch's commits and allows for code review before merging into the target branch.
Commits can be added to the branch both before and after the pull request is created. Any new commits pushed to the branch are automatically included in the pull request.
Incorrect Options:
Option B is incorrect because commits can be made both before and after a pull request is created.
Option C is incorrect because it suggests that commits can only be made before a pull request is created, which is not true.
Option D is incorrect because commits are not made on a pull request; they are made on a branch. The pull request links a branch to another branch (e.g., feature branch to the main branch).
GitHub Documentation: About Pull Requests
GitHub Docs: Understanding the GitHub Flow
Git Documentation: Git Basics - Getting a Git Repository
=================
For which of the following does GitHub provide hosted runners?
Answer : B
Which of the following attributes are on the Milestone page? (Each correct answer presents a complete solution. Choose two.)
Answer : A, B