Free GH-500 sample questions
Each free GH-500 sample question below comes with the answer and an explanation. The set covers Dependabot alerts, CodeQL code scanning and secret scanning. Work through it to spot weak areas before you take the exam.
Try them in the simulator Same questions, with study, timed and flashcard modes.
Showing 10 of 20 free sample questions.
When reviewing a code scanning alert, a developer uses the 'Show paths' feature. What critical information does this feature provide for vulnerability analysis?
An organization has a policy to automatically dismiss any Dependabot alert with a 'low' or 'moderate' severity for which a patch is not yet available. The goal is to reduce noise while ensuring high-severity alerts are always visible. Which feature should be used to automate this process?
A team has configured a CodeQL workflow to run on a schedule every Monday. They also want the scan to run automatically whenever code is pushed to any branch whose name starts with `release/`. Which `on` key configuration in the workflow file is required to achieve this?
An organization's security policy requires a Software Bill of Materials (SBOM) to be generated for every production release. The SBOM must be in the SPDX format. Which GitHub feature natively supports the generation and export of this information?
Which statements accurately describe how GitHub Advanced Security (GHAS) features differ between public repositories on GitHub.com and private repositories with a GHAS license? (Select TWO)
A developer dismisses a code scanning alert, marking it as a 'false positive'. What is the long-term implication of this action for future scans?
A company wants to detect its own internal API key format, which follows the pattern `CORP-PROD-[32-character-alphanumeric-string]`. How can they configure secret scanning to find these specific keys?
A Dependabot security update pull request has been opened, but the automated tests in the CI pipeline are failing. The developer needs to make changes to the code to fix the incompatibility caused by the dependency update. What is the standard procedure for applying these fixes?
An organization wants to enforce a policy that all pull requests targeting the `main` branch MUST pass both the CodeQL analysis and the Dependency Review checks before they can be merged. Administrators must not be able to override this rule. What is the most robust way to enforce this policy? flowchart TD A[PR to main] --> B{Ruleset Applies?}; B -->|Yes| C{Required Checks}; C --> D[CodeQL Status Check]; C --> E[Dependency Review Check]; D --> F{All Pass?}; E --> F; F -->|Yes| G([Merge Allowed]); F -->|No| H([Merge Blocked]); B -->|No| I[No Enforcement];
10 more free samples are waiting
Create a free account to unlock the whole GH-500 sample bank, or get full access to all 232 practice questions in the simulator.