Free GH-500 sample questions

Real questions from the GitHub Advanced Security practice bank, with the correct answer and an explanation for each one. No junk, no filler.

Try them in the simulator Same questions, with study, timed and flashcard modes.

Showing 10 of 20 free sample questions.

Question 1Choose one

A security engineer is troubleshooting a CodeQL workflow for a compiled language (Java) that runs successfully on pushes to the `main` branch but fails consistently on pull requests from feature branches. The error occurs during the `Initialize CodeQL` step. The workflow is triggered by `on: [push, pull_request]`. What is the most probable reason for this discrepancy?

Question 2Choose one

True or False: When secret scanning push protection is enabled for a repository, a user with admin permissions can push a commit containing a detected secret without bypassing the protection.

Question 3Choose one

An organization wants to enforce a policy where all pull requests targeting the `main` branch must have a successful CodeQL analysis and a successful Dependency Review check before they can be merged. No administrator should be able to override this requirement. What is the most effective way to implement this strict enforcement?

Question 4Choose one

A developer working on a public open-source project receives a Dependabot alert for a high-severity vulnerability in a transitive dependency. However, there is no direct patch available for the vulnerable package yet. What is the most appropriate first step for the developer to take?

Question 5Choose one

A company uses a proprietary, internally-developed static analysis tool that generates security reports in a custom JSON format. They want to integrate these results into the GitHub Security tab alongside findings from CodeQL. What is the correct sequence of steps to achieve this?

Question 6Choose one

What is the primary difference between how CodeQL analyzes a compiled language like C# and an interpreted language like Python?

Question 7Choose one

The Security Overview dashboard provides a high-level view of an organization's security posture. Which information is available on this dashboard?

Question 8Choose one

A security team is reviewing a recent surge of secret scanning alerts. They notice many alerts are for secrets that have already been revoked. To improve their response efficiency, they want to prioritize alerts for secrets that are confirmed to be active. Which feature should they use?

Question 9Choose one

A software development team is building a new application and wants to ensure that they are not using any dependencies with known security vulnerabilities from the very beginning. Which GHAS feature should be configured to provide feedback directly within a pull request about the security impact of adding or updating dependencies?

Question 10Choose one

When reviewing a code scanning alert, a developer uses the 'Show paths' feature. What critical information does this feature provide for vulnerability analysis?

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.

Create account