Browse Certification Practice Tests by Exam Family

GitHub GH-500 Cheat Sheet: Advanced Security

Review GitHub Advanced Security (GH-500) secret scanning, dependency review, CodeQL, code scanning, remediation, and governance traps before practicing in IT Mastery.

GH-500 tests whether you can match the security signal to the right GitHub Advanced Security feature and response. Use this cheat sheet to separate secret scanning, dependency risk, code scanning, CodeQL, remediation, and enterprise governance before practice.

Use this with practice. Review the GHAS control map, then take the free GH-500 diagnostic or open the full Advanced Security route in IT Mastery.

Try GH-500 on Web Free GH-500 diagnostic

Exam snapshot

FieldDetail
VendorGitHub
Credential nameGitHub Advanced Security
Exam codeGH-500
Level shown by Microsoft LearnIntermediate
Exam time shown by Microsoft Learn100 minutes
IT Mastery statusLive GH-500 practice available

Domain map

DomainWeightWhat to knowCommon trap
GHAS features and functionality10%Feature boundaries, alerts, security overview, and repository/organization scopeTreating every finding as a CodeQL issue
Secret scanning10%Detection, push protection, validity checks, revocation, and alert triageClosing an alert before rotating or revoking exposed credentials
Dependency management15%Dependabot alerts, dependency review, vulnerable versions, and merge riskConfusing pull-request review with post-merge alert triage
Code scanning15%Setup, alerts, SARIF, third-party tools, and result managementExpecting code scanning to detect secrets or dependency CVEs
CodeQL20%Languages, query packs, build modes, workflow permissions, and analysis scopeIgnoring build mode or language setup when analysis fails
GHAS best practices20%Triage, remediation, false positives, metrics, rollout, and corrective measuresDismissing findings without evidence or owner review
Enterprise configuration10%Enterprise enablement, policies, repositories, organizations, and governanceApplying settings at the wrong scope

Must-know distinctions

DistinctionHow to decide
Secret scanning vs code scanningSecret scanning detects exposed credentials; code scanning detects code patterns and vulnerabilities.
Dependabot alert vs dependency reviewDependabot alerts track known vulnerable dependencies; dependency review checks pull-request dependency changes before merge.
CodeQL default setup vs advanced setupDefault setup is simpler; advanced setup is used when custom build, languages, queries, or workflow control are needed.
SARIF upload vs CodeQL analysisSARIF upload imports scanner results; CodeQL analysis runs GitHub’s semantic analysis.
Push protection vs alert triagePush protection blocks secrets before commit; alert triage handles findings already detected.
Dismissal vs remediationDismiss only with a valid reason; remediation removes, rotates, upgrades, or fixes the underlying risk.
Repository setting vs enterprise policyRepository settings affect one repo; enterprise policy can govern many organizations and repositories.

High-yield checklist

  • Identify the finding type before choosing the tool.
  • Rotate or revoke exposed secrets before treating the alert as resolved.
  • Use dependency review to catch risky dependency changes in a pull request.
  • Use Dependabot alerts and updates for known vulnerable dependencies already in the dependency graph.
  • Confirm CodeQL language, build mode, query suite, and workflow permissions.
  • Use security-events: write when a workflow must upload code scanning results.
  • Use SARIF when a third-party scanner should publish results into GitHub code scanning.
  • Triage findings by severity, exploitability, exposure, and ownership.
  • Track governance through ownership, enforcement, exception handling, and reporting.
  • Avoid broad dismissals that hide real risk.

Common traps

  • Replacing secret scanning with code scanning or dependency review.
  • Treating a detected secret as safe because the repository is private.
  • Enabling a tool without defining alert owners and triage workflow.
  • Blocking all merges without considering severity, scope, and exception policy.
  • Ignoring generated code, build steps, or language setup in CodeQL questions.
  • Dismissing alerts because they are noisy instead of tuning scope or patterns.

Practice strategy

Take the free GH-500 diagnostic and classify every miss by signal: secret, dependency, code pattern, CodeQL setup, or governance. Then drill the matching feature page. GH-500 practice should improve response judgment: what happened, which feature saw it, what the first safe action is, and what evidence closes the loop.

Official source

Revised on Monday, May 25, 2026