GH-900 practice question 3 of 15
An employee needs to find all issues within organization “Avocado" containing text "404 error" and a "guacamole" label. Which of the following steps would be best to search for these results?
Full set: 144 questionsThis is the most efficient and accurate method. The query org:Avocado is:issue label:guacamole "404 error" uses specific search qualifiers to precisely target the required information in a single step. The org: qualifier scopes the search to the "Avocado" organization, is:issue filters for only issues, label: finds issues with the "guacamole" label, and "404 error" searches for that exact text string. This single-line query directly returns the desired results without needing further filtering or navigation.
B. This method is incorrect because it limits the search to a single repository, whereas the requirement is to search across the entire organization. It also omits the text search for "404 error".
C. While this method can eventually lead to the correct results, it is less efficient than option A. The initial query lacks the is:issue qualifier, returning results from code, pull requests, etc., which then requires an extra step to filter.
D. This option is incorrect as it describes navigating to the organization's settings to manage default repository labels, a function completely unrelated to searching for existing issues.
1. GitHub Docs
"About searching on GitHub." This document outlines the basic search syntax
including the use of quotes for exact phrase matching (e.g.
"404 error"). It also introduces the concept of using qualifiers to narrow searches.
Reference: See the section "Using qualifiers" and "Using quotes for phrases".
2. GitHub Docs
"Searching for issues and pull requests." This source explicitly details the qualifiers available for issue searches.
Reference: It confirms the use of is:issue to restrict results to issues and label:label-name to find issues with a specific label.
3. GitHub Docs
"Searching in repositories." This document explains how to scope a search to a specific user or organization.
Reference: It specifies the use of the org:ORGANIZATIONNAME qualifier to search within all repositories of a given organization.
Keep practicing
Take the free GH-900 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GH-900 practice questions
- Question 1What is the difference between an organization member and an outside collaborator?
- Question 2New open source contributors can receive funding from GitHub sponsors:
- Question 4How are commits related to pull requests?
- Question 5Where should a repository admin navigate to view pre-built visualizations from repository…
- Question 6Who can be assigned to an Issue or pull request? (Each answer presents a complete solutio…
- Question 7Which of the following is an Innersource development practice?
