GH-500 Practice Test
GitHub Advanced Security
GH-500 tests whether you can actually run GitHub Advanced Security in production β secret scanning and push protection, dependency and supply chain risk, CodeQL code scanning, and enterprise governance β not just recognize the feature names.
Our 500 scenario-based questions cover the full GH-500 blueprint across six domains: describing GitHub Security suites and their architecture (Security Overview, prevention-first vs. gate-based strategies, security campaigns), configuring and using Secret Protection (push protection, validity checks, custom secret patterns, delegated bypass policies), configuring and using supply chain security (dependency graph, SBOMs, EPSS-based prioritization, Dependency Review), configuring and using Code Security (CodeQL vs. third-party scanning, SARIF ingestion, autofix, matrix scan configuration), security operations best practices (CVE/CWE context, campaign-based remediation, cross-suite rulesets), and GitHub Security suites administration (enterprise rollout, default configurations, roles and permissions, automation APIs). Every question is grounded against live GitHub Docs, including the July 2026 GHAS terminology refresh (Secret Protection, Code Security, Supply Chain Security).
Start Free Practice β 40 QuestionsNo credit card required. Upgrade to full 500 questions for $19.99 when ready.
Is this for you?
This is NOT for you if:
GH-500 Exam Details
What to expect on exam day
Questions
40
Duration
100 minutes
Passing Score
700
Exam Cost
$99
Exam Domains Covered
Master all topics tested on the GH-500 exam
Describe GitHub Security suites, features, and ecosystem
Configure and use Secret Protection (formerly secret scanning)
Configure and use supply chain security (formerly Dependabot/Dependency Review)
Configure and use Code Security (formerly Code Scanning with CodeQL)
Security operations: best practices, prioritization, and remediation
GitHub Security suites administration
Test Yourself Right Now
Try 5 real practice questions β no signup needed
5 Free GH-500 Questions
See how ready you are for the GH-500 exam. Each question includes a detailed explanation so you learn as you go.
Sample GH-500 Practice Questions
10 real questions from the free GH-500bank. Pick an answer in your head, then open βShow answerβ for the explanation.
1. A security manager at a large enterprise needs to identify the ten repositories with the highest count of unresolved critical code-scanning alerts, across an organization of 900 repositories, so remediation effort can be prioritized this sprint. Which approach best satisfies this need using GitHub Security suites?
- A. Use the organization Security overview repository-level view, sorted and filtered by alert severity and count
- B. Manually open each repository's Security tab and record alert counts in a spreadsheet
- C. Export the dependency graph for each repository and cross-reference it against a CVE database
- D. Ask each repository maintainer to self-report their alert counts in a survey
Show answer
Correct answer: A
The Security overview repository-level view is purpose-built for this: it aggregates alert data across the organization and can be filtered and sorted by severity, letting a security manager quickly surface the highest-risk repositories at scale. Manually checking 900 repositories or relying on self-reported surveys does not scale and is error-prone. The dependency graph only covers dependency data, not code-scanning alerts.
2. A private repository within a GitHub Enterprise Cloud organization has not purchased Code Security. A contributor pushes a commit that introduces a SQL injection vulnerability. What happens?
- A. The push is automatically blocked because SQL injection is detected by GitHub regardless of licensing
- B. A Dependabot alert is raised because the vulnerability originates from a dependency
- C. No code-scanning alert is generated, because CodeQL analysis on private repositories requires a Code Security license
- D. A secret scanning alert is raised, since SQL injection risk is treated as a leaked-credential pattern
Show answer
Correct answer: C
Code scanning with CodeQL on private repositories is part of the licensed Code Security product; without that license, no static-analysis alert will be generated for the introduced vulnerability. Pushes are not blocked purely because a vulnerability pattern exists (push protection targets secrets, not general code flaws). A SQL injection bug in first-party code is not a Dependabot (dependency) alert, and it has nothing to do with secret scanning, which looks for credential-shaped strings.
3. Within a single repository, where would a developer go to see all currently open secret scanning, code scanning, and Dependabot alerts for that repository in one place?
- A. The repository's Insights tab
- B. The repository's Security tab
- C. The repository's Settings tab
- D. The repository's Pull requests tab
Show answer
Correct answer: B
The repository-level Security tab consolidates secret scanning, code scanning, and Dependabot alerts for that specific repository into one navigable location. Insights reports on activity metrics, Settings configures repository options (including which security features are enabled, but not the alerts themselves), and Pull requests only surfaces alerts inline on the diff of a specific PR.
4. Which of the following best describes a "prevention-first" security posture?
- A. Stopping risky changes as early as possible in the developer workflow, ideally before they are even committed
- B. Relying exclusively on a single annual audit to catch issues
- C. Reviewing security after a production incident has already occurred
- D. Requiring a change advisory board meeting before each deployment
Show answer
Correct answer: A
Prevention-first means intercepting risk as early as possible, ideally before a change is even committed, which is the philosophy behind controls like push protection. A single annual audit, post-incident-only review, and a change advisory board gate are all later-stage or reactive approaches, not prevention-first ones.
5. What is the primary purpose of a security campaign in GitHub?
- A. To schedule automated dependency version bumps on a fixed cadence
- B. To group and collaboratively remediate a related set of security alerts at scale
- C. To generate a compliance certificate for auditors
- D. To automatically merge pull requests that pass their required checks
Show answer
Correct answer: B
A security campaign groups a related set of alerts and coordinates developers to remediate them collaboratively, reducing security debt at scale. It does not schedule dependency bumps on its own, generate compliance certificates, or auto-merge pull requests, each of which is a different, unrelated capability.
Show 5 more questions
6. A security engineer needs to prevent a contributor from accidentally publishing an API key in a commit before it ever reaches the remote repository. Which GitHub Security suite is primarily responsible for this capability?
- A. Secret Protection
- B. Code Security
- C. Supply chain security (Dependabot and dependency review)
- D. GitHub Copilot code review
Show answer
Correct answer: A
Secret Protection includes push protection, which scans commits as they are pushed and blocks the push if a high-confidence secret is detected, stopping the exposure before it reaches the repository. Code Security focuses on finding vulnerabilities in first-party code through static analysis, not on blocking credential pushes. Supply chain security addresses risk in third-party dependencies, not developer-authored secrets. Copilot code review offers AI suggestions on pull requests but is not the mechanism that blocks a secret at push time.
7. A team wants to design a secure SDLC on GitHub such that a secret introduced locally is caught before it leaves the developer's machine, rather than only after it reaches GitHub. Which statement correctly describes what GitHub-native push protection can and cannot do here?
- A. Push protection continuously scans a developer's entire local filesystem for secrets, independent of any Git commit or push operation
- B. Push protection is evaluated at the point code is merged into the repository's default branch, not at any earlier stage of the workflow
- C. Push protection has no relationship to local development, since it is a purely server-side feature with no client-side counterpart
- D. Push protection evaluates commits at git push; a client-side check can flag a secret before it leaves the machine, but the GitHub-hosted feature acts once the push reaches GitHub
Show answer
Correct answer: D
Push protection's primary enforcement point is the push to GitHub, where it evaluates the pushed commits for recognizable secrets; GitHub also offers a client-side check so teams can catch the same class of issue before the push leaves the developer's machine, but the GitHub-hosted feature itself acts at push time, not via continuous local filesystem scanning. It is not restricted to only evaluating after a merge to the default branch, and it is not unrelated to local development, since it directly shapes what a developer can push.
8. A security architect is designing rollout order for a company that has never used any GitHub Advanced Security features and has a history of credentials being committed accidentally. Budget allows enabling only one suite this quarter, with the second suite planned for next quarter. Which rollout order best matches a risk-based, prevention-first rationale?
- A. Enable Secret Protection first, since the company's demonstrated highest-likelihood risk is credential exposure, then add Code Security next quarter
- B. Enable Code Security first, since vulnerabilities are inherently a higher risk than leaked secrets in any organization
- C. Enable both simultaneously regardless of budget, since rollout order has no bearing on outcomes here
- D. Enable neither, and rely solely on manual code review until both suites are affordable
Show answer
Correct answer: A
A risk-based rollout should target the organization's demonstrated highest-likelihood risk first; since the company has a documented history of accidental credential leaks, Secret Protection addresses that specific, already-observed risk immediately, with Code Security following once budget allows. Claiming vulnerabilities are universally higher risk ignores the company's actual risk profile, and both "enable simultaneously regardless of budget" and "rely solely on manual review" ignore the stated budget constraint and the demonstrated benefit of enabling automated controls sooner.
9. What is the primary purpose of the Security overview page at the organization level?
- A. To display a list of open pull requests awaiting code review
- B. To manage billing seats for GitHub Copilot
- C. To configure branch protection rules for individual repositories
- D. To give a consolidated view of security feature enablement and alert counts across repositories
Show answer
Correct answer: D
Security overview exists to aggregate enablement status and alert data across many repositories, so a team does not need to inspect each repository separately. It is not a pull-request tool, a Copilot billing screen, or a per-repository branch protection editor, each of which serves an unrelated purpose.
10. An enterprise owner rolling out Advanced Security to 50 newly onboarded repositories wants to confirm, without opening each repository, that Secret Protection was actually enabled successfully everywhere the rollout script targeted. Which is the most reliable way to confirm this?
- A. Check the enablement column for each repository in the enterprise-level Security overview
- B. Assume the rollout succeeded because the script exited with status code 0
- C. Ask each repository's contributors to manually report whether they see a Security tab
- D. Wait for the first secret scanning alert to appear as implicit proof of enablement
Show answer
Correct answer: A
The enterprise-level Security overview explicitly reports enablement state per repository, giving a direct and reliable confirmation across all 50 repositories in one place. A successful script exit code does not guarantee the API calls had the intended effect, contributor self-reports are unreliable and slow, and waiting for an alert to appear is not proof of enablement, a repository could be enabled and simply have no secrets to detect yet.
GH-500 study resources
Why Practice with MSCertQuiz?
Microsoft Learn teaches concepts. We prepare you for the actual exam.
Deep coverage of the July 2026 GHAS terminology refresh β Secret Protection, Code Security, and Supply Chain Security replacing the old secret scanning / CodeQL / Dependabot names β so you're studying against current exam language, not outdated docs
Real triage and prioritization scenarios: validity checks and high-confidence secret alerting, EPSS-based supply chain scoring, and campaign-based bulk remediation β the operational judgment calls that separate practitioners from feature-list memorizers
Enterprise-governance content most free question banks skip entirely: organization-level security configurations, delegated bypass policies, default configuration inheritance, and large-scale automation via APIs
Every question verified against a live-fetched GitHub Docs page before it ships, so content stays accurate as GHAS features and terminology keep evolving
Not sure if you're ready for the GH-500 exam?
Take the free GH-500 Readiness Check βWhat Our Users Say
βThe Secret Protection and push protection questions were exactly what tripped me up when our org first rolled out GHAS. Practicing scenario after scenario here made the validity-checks and bypass-policy details click before exam day.β
Rosa T.
GH-500 Certified
βI triage security alerts weekly but had never thought carefully about EPSS scoring or campaign-based remediation at scale. The supply-chain domain filled real gaps in my knowledge. Passed on my first attempt.β
Kwame M.
Security Engineer
βThe enterprise-administration questions on default configuration inheritance and delegated bypass were much closer to real governance decisions than anything else I tried. The explanations actually taught the reasoning, not just the answer.β
Fiona L.
Passed GH-500 first try
Choose Your Plan
Start free, upgrade when you're ready to get serious
Free
Good for exploring the platform
- 40 practice questions
- Practice mode only
- Progress tracking
- No exam simulation mode
GH-500 Full Access
Best if your exam is in the next 2-4 weeks
- 500 practice questions
- Practice & Exam modes
- Detailed explanations
- Lifetime access
7-day money-back guarantee
Pro β All Certs
Best if you're planning multiple Microsoft exams
- ALL certifications included
- Unlimited questions
- New certs added free
- Cancel anytime
Save 30% vs buying individually
Your GH-500Exam Won't Wait
Candidates who complete at least 2 full mock exams pass at significantly higher rates than those who only study passively.
Don't risk $99 on the real exam without testing yourself first.
Start Free Practice NowNo credit card required β’ 40 free questions β’ Upgrade for $19.99 when ready
Official Microsoft Resources
Our practice questions are aligned with official Microsoft exam objectives. We recommend studying with Microsoft Learn first, then using MSCertQuiz to test your readiness.
View Official GH-500 Exam DetailsGH-500 Frequently Asked Questions
Everything you need to know about the GH-500 GitHub Advanced certification
What is GH-500?
How much does the GH-500 exam cost and how long is it?
What is the passing score for GH-500?
What topics are covered on GH-500?
How hard is GH-500?
How long should I study for GH-500?
What are the prerequisites for GH-500?
Who should take GH-500?
Also Preparing For
Candidates studying GH-500 often prepare for these certifications next.