Free GitHub FoundationsPractice Test
Test your knowledge with 20 free practice questions for the AZURE-5 exam. Get instant feedback and see if you are ready for the real exam.
Test Overview
Free Practice Questions
Try these GitHub Foundations sample questions for free - no signup required
What is the primary difference between Git and GitHub?
A developer wants to create a personal copy of a public repository on GitHub to experiment with changes without affecting the original project. Which GitHub feature should they use?
Which Git command is used to save changes from your working directory to the local repository with a descriptive message?
A development team wants to propose changes to a repository they don't have write access to. After forking the repository and making changes, what should they create to suggest their changes be merged into the original repository?
What is the purpose of a .gitignore file in a Git repository?
A developer has made several commits to their local branch and wants to upload these changes to the remote GitHub repository. Which command should they use?
Your team is working on a new feature. You want to create an isolated environment to develop this feature without affecting the main codebase. What Git concept should you use?
A team member has created a pull request. As a reviewer, you notice a minor issue in one line of code. What GitHub feature allows you to suggest a specific change that the author can directly apply?
You need to track and manage bugs, feature requests, and tasks for your GitHub project. Which GitHub feature is specifically designed for this purpose?
A development team wants to automatically run tests every time code is pushed to their GitHub repository. Which GitHub feature should they configure?
You accidentally committed sensitive credentials to your repository. You've removed them in a new commit, but they still exist in the Git history. What is the best practice to handle this situation?
Your team wants to ensure that all pull requests are reviewed by at least two team members before merging to the main branch. Which GitHub feature should you configure?
A developer is working on a feature branch and wants to incorporate the latest changes from the main branch before submitting a pull request. Which approach is recommended to maintain a clean commit history?
An organization wants to provide different levels of repository access to team members. A user needs to manage repository settings, add collaborators, and manage webhooks, but should not be able to delete the repository. Which repository permission level is most appropriate?
You need to reference a specific commit in an issue discussion to show when a bug was introduced. What is the correct way to reference a commit in a GitHub issue?
A large enterprise needs to manage multiple teams across dozens of repositories with centralized billing, security policies, and SSO authentication. Which GitHub offering is most appropriate?
During a code review, you notice that a pull request includes commits from multiple unrelated features mixed together. The individual commits have unclear messages like 'fix', 'update', and 'changes'. What is the best practice to address this before merging?
Your team uses GitHub Actions for CI/CD. A workflow needs to access secrets like API keys. Where should these secrets be stored to be securely used by GitHub Actions workflows?
A team is experiencing merge conflicts frequently when multiple developers work on the same files. The conflicts are time-consuming to resolve. Which practices would best help reduce merge conflicts?
An open-source project maintainer wants to automate the process of labeling issues based on their content, assigning issues to team members based on expertise, and running security scans on pull requests. Which GitHub feature provides this extensibility?
Want more practice?
Access the full practice exam with detailed explanations
Ready for More Practice?
Access our full practice exam with 500+ questions, detailed explanations, and performance tracking to ensure you pass the GitHub Foundations exam.