Medium GH-900 practice questions
Applied — put a concept to work in a realistic situation. 120 medium questions available — no sign-up, always free.
A technical writer needs to add a new file named docs/setup.md to a repository directly on GitHub.com. They do not have Git installed and want to create the file, place it in the docs folder, and commit it entirely through the browser. Which approach lets them accomplish this?
A developer is fixing a bug tracked in issue #42. They open a pull request with the fix and want the issue to close automatically the moment the pull request is merged into the default branch, without any manual follow-up. What should they do?
A maintainer needs to make several experimental changes to a documentation site over the next week. The main branch is used for automatic production deployments and must always remain stable and releasable. What is the recommended way to organize this work so production is never disrupted while the changes are in progress?
Your team's CI pipeline occasionally fails, but developers have been merging pull requests into the main branch anyway, breaking the deployment. As a repository admin, which branch protection rule setting should you enable to prevent pull requests from being merged until all CI tests pass?
Your team wants pull requests that modify files in the /api directory to automatically request a review from the backend team, while changes to the /docs directory should request the documentation team. Which repository file should you configure to achieve this automatic reviewer assignment?
Your team maintains a public repository. A new maintainer asks where in the repository they should document the supported versions and the process external researchers should follow to privately report a discovered vulnerability. Which file should hold this information?
A new developer joins your team and needs to start contributing to a large web application. Their personal laptop is underpowered and lacks the runtime, dependencies, and tooling the project requires. You want them to begin writing, running, and debugging the full application within minutes, from their browser, without installing anything locally. Which GitHub feature best meets this need?
A development team frequently onboards new contributors who spend hours installing the correct Node.js version, extensions, and dependencies before they can build the project. The team wants every developer to open a cloud-based environment that is already configured identically, defined in a file stored in the repository. Which GitHub feature and configuration should they use?
A development team uses GitHub Codespaces for a Python project. New team members report that they must manually install the same VS Code extensions and Python linter every time they create a new codespace. The lead wants these tools installed automatically whenever anyone opens a codespace for the repository. What should the team configure?
Your team maintains a large monorepo where creating a new Codespace takes over ten minutes because dependencies must be installed and the project must be compiled each time. New contributors are frustrated by the long wait before they can start coding. Which Codespaces capability should you configure to reduce this startup time?
A developer needs to open a repository in the browser, install project dependencies, run the test suite, and interactively debug the application before pushing changes. They want to avoid setting up anything on their local machine. Which GitHub tool should they use?
A developer on your team is saving their work in a Git repository and asks what a commit actually captures. When they run 'git commit', what does Git record?
An open-source project maintainer notices that many first-time contributors are opening pull requests that don't follow the project's coding style, skip required tests, and use inconsistent commit formats. The maintainer wants a single file in the repository that clearly documents how people should contribute so this guidance appears automatically when someone opens a pull request or issue. Which file should the maintainer add?
Your open-source project uses GitHub Discussions with a 'Q&A' category. A community member posts a question about how to configure a plugin, and several people reply. One reply from a maintainer fully solves the problem. As a maintainer, what is the recommended way to help future visitors quickly find the resolution within that discussion?
Your team uses a GitHub Project to plan an upcoming release. During a brainstorming session, you added several quick draft items directly on the project board so you wouldn't lose the ideas. One of those draft items, 'Add dark mode toggle,' has now been fully scoped and needs to be assigned to a developer, tracked in a specific repository, and referenced from a pull request. What should you do with the draft item?
A repository maintainer notices that one open issue has grown into a lengthy back-and-forth where community members are debating the general direction of a feature, rather than reporting a specific, actionable bug. The maintainer wants to keep the actionable tracking work separate from the broader community conversation. Which action best fits GitHub's intended collaboration model?
A developer wants GitHub Copilot to take a high-level request like 'add input validation across all the API endpoints,' then autonomously plan the work, edit multiple files, run the test suite, and iterate on any failures until the task is complete—all from within their editor. Which GitHub Copilot capability is designed for this kind of multi-step, autonomous workflow?
A developer on your team wants to delegate a well-defined bug fix to an AI teammate. They plan to assign a GitHub issue directly to Copilot so it can work autonomously in the background, create a branch, implement the changes, and open a pull request for human review without the developer actively driving each step in their editor. Which GitHub Copilot capability is designed for this delegation workflow?
A software company with 40 developers wants to adopt GitHub Copilot. The engineering manager needs to centrally purchase and assign seats to team members, revoke access when someone leaves, and enforce a policy that blocks suggestions matching public code. Which GitHub Copilot plan best fits these requirements?
Your company is evaluating GitHub Copilot for its 40 developers. Leadership requires that the plan include organization-wide policy management for enabling or disabling public code suggestions and provides IP indemnity for suggestions accepted by developers. They do not need the organization-grounded chat (Copilot Spaces) or documentation-grounded features that the Enterprise tier adds. Which Copilot plan best fits these requirements?
A developer is using GitHub Copilot Chat in their IDE to draft a complex refactoring plan. They want to compare responses from a couple of different large language models to see which produces the clearest reasoning before committing to an approach. Which Copilot capability allows them to do this?
A product team uses a GitHub Project (the new Projects experience) to track work across multiple repositories. The project manager wants to see all items visually organized into columns representing 'To Do', 'In Progress', and 'Done', and wants to drag items between these columns to update their state. Which combination should the project manager configure to achieve this?
A developer on your team complains that they are missing important updates on repositories they contribute to. They currently receive no email notifications and only check the GitHub web interface sporadically. They want GitHub to email them whenever there is activity on threads they are participating in, while still keeping notifications visible in the web inbox. Where should they go to enable email delivery for their participating notifications?
A development team practices regular repository maintenance. After a feature branch's pull request has been reviewed, approved, and merged into main, the team lead wants to keep the branch list tidy and reduce clutter for other contributors. What is the recommended maintenance action to take with the merged feature branch?
You maintain a Node.js project on GitHub and want to see which open-source packages your repository depends on, along with alerts when any of them contain known security vulnerabilities. Which repository feature should you use?