
GitHubAdvanced Security (GH-500)
Domain 4Objective 4
Optimize and Automate Code Security Operations GH-500 Practice Questions (Page 1)
Part of the Configure and use Code Security (formerly Code Scanning with CodeQL) domain, which accounts for 10-15% of the GH-500 exam.
12questions here
3free pages
5concepts
10-15%of the exam
Questions 1–5
- 1
A CodeQL scan for a C++ project fails with the error: 'The build step failed because the build command was not found.' The project uses a custom build script located in the repository. What is the most likely cause and fix?
Select an answer first - 2
A team wants to customize CodeQL analysis for a Kotlin project. They want to exclude certain packages from the analysis to reduce noise. What is the best way to achieve this?
Select an answer first - 3
A development team uses CodeQL code scanning on a large Java monorepo. The default analysis takes over an hour and frequently times out. They want to reduce scan time while still covering the most critical code paths. They decide to run the scan only on pull requests that modify files in the core modules. Which configuration change should they make?
Select an answer first - 4
A security team wants to enforce a custom set of CodeQL queries for all repositories in their organization. They have created a private query pack and want to ensure it runs alongside the default security queries. What is the most maintainable way to configure this?
Select an answer first - 5
In a GitHub Actions workflow that runs CodeQL, which file is used to define custom queries or query packs for the analysis?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by GitHub. “GH-500” is a trademark of its owner, used for identification only.