GitHub Advanced Security (GH-500) · Domain 5 · 18% of exam

Security operations: best practices, prioritization, and remediation

Drill 20 practice questions focused entirely on Security operations: best practices, prioritization, and remediation for the GitHub GH-500 exam. Tap an answer for instant feedback and a full explanation — no sign-up, always free.

Verified answer20 questions
Question 1 of 20

Your security team wants to automatically dismiss Dependabot alerts for a category of vulnerabilities that leadership has formally accepted as low-risk in your environment. Regulators later require proof that each dismissal was intentional, attributable, and reviewable. Which combination of practices BEST satisfies both the operational goal and the auditability requirement?

Reviewed for accuracy · Report an issue
Question 2 of 20

A security manager at a fintech company is closing out a large backlog of Code Scanning alerts across 40 repositories. Several hundred alerts share the same CWE and originate from a deprecated internal library that is being fully removed next sprint. Leadership requires that any mass dismissal leave a clear, auditable record explaining the business justification, and that the alerts do NOT silently reappear if the deprecated code is temporarily reintroduced during the migration. Which approach best satisfies both the scale and the governance requirements?

Reviewed for accuracy · Report an issue
Question 3 of 20

A security lead at a large organization wants to launch a security campaign to drive down the most impactful code scanning alerts across dozens of repositories. Leadership has directed the team to focus first on alerts that are both easiest to attribute to a responsible engineer and most likely to be actively dangerous in production. Which approach best aligns campaign scope with these priorities?

Reviewed for accuracy · Report an issue
Question 4 of 20

A security manager at a large organization launches a security campaign targeting 340 high-severity SQL injection alerts spread across 60 repositories. She wants to hold each development team accountable by giving them a shared context, a due date, and direct visibility into which alerts they own, so progress can be tracked centrally in Security Overview. Which combination of campaign configuration steps best achieves this goal?

Reviewed for accuracy · Report an issue
Question 5 of 20

A security engineer fixed a CodeQL SQL-injection alert three months ago; the alert moved to 'Fixed' after the default branch was rescanned. This week a developer reverted part of that refactor in a new commit, reintroducing the vulnerable data-flow pattern on the default branch. Assuming CodeQL analysis runs on pushes to the default branch, what happens to the alert tracking, and what is the recommended remediation practice?

Reviewed for accuracy · Report an issue
Question 6 of 20

A developer receives a CodeQL code scanning alert for a SQL injection vulnerability on the default branch. They create a feature branch, refactor the code to use parameterized queries, and open a pull request. After the PR's CodeQL analysis completes with no findings on the changed code, the developer wants to confirm the original alert will be properly closed. Which statement correctly describes what happens to the alert as it moves through the remediation workflow?

Reviewed for accuracy · Report an issue
Question 7 of 20

A security engineer at a fintech company is building a remediation runbook. She needs to document the correct end-to-end handling for two different alert types. For a Dependabot alert flagging a vulnerable transitive dependency (with a fix version available), the runbook must specify the primary remediation action that GitHub can automate. For a CodeQL alert flagging a SQL injection in first-party code, the runbook must specify who owns the fix. Which pairing correctly reflects how each remediation workflow operates?

Reviewed for accuracy · Report an issue
Question 8 of 20

A platform security team wants to enforce a consistent remediation SLA across 40 repositories: any open code scanning alert with a security severity of 'critical' or 'high' must block deployment to production, while medium and low alerts should only generate warnings. They also need the enforcement to survive when individual repository admins try to loosen their local branch protection settings. Which approach best meets these requirements at scale?

Reviewed for accuracy · Report an issue
Question 9 of 20

A security engineer is triaging the code scanning alert backlog for a critical payment service. Two open CodeQL alerts compete for immediate attention: Alert 1 is tagged with a security-severity score of 9.1 (Critical) but has a low occurrence count, while Alert 2 shows a code-scanning severity of 'error' but carries no security-severity metadata because it comes from a code-quality query. The team's remediation ruleset gates merges based on security-severity thresholds. Which alert should the engineer prioritize for remediation first, and why?

Reviewed for accuracy · Report an issue
Question 10 of 20

A large platform team shares a monorepo across three feature squads. A CodeQL scan surfaces a high-severity SQL injection alert in a module that all three squads modify. The security manager wants a single accountable owner to drive remediation while still allowing other engineers to comment, share findings, and track the discussion directly on the alert. Which approach best supports this collaboration model using native GitHub code scanning capabilities?

Reviewed for accuracy · Report an issue
Question 11 of 20

A security team runs a remediation campaign and wants accurate metrics on how many code scanning alerts were genuinely resolved through code changes versus those that were triaged away without a fix. During the campaign, engineers merge PRs that remove the vulnerable code paths, and reviewers also dismiss several alerts they judge to be false positives. When the security lead reviews the code scanning results after the next default-branch scan, how will these two categories of alerts be distinguished in the alert list?

Reviewed for accuracy · Report an issue
Question 12 of 20

Your security team has enabled push protection and pre-merge CodeQL analysis on a critical microservice repository. A developer opens a pull request from a feature branch, and CodeQL flags a new SQL injection alert in the PR check. The developer argues the alert should not block the merge because 'the code isn't on the default branch yet, so it's not a real exposure.' As the security lead defining the org's shift-left enforcement strategy, which response best reflects correct preventive security practice?

Reviewed for accuracy · Report an issue
Question 13 of 20

A security architect at a fintech company wants CodeQL analysis to reflect the organization's elevated risk tolerance for injection and cryptographic weaknesses, while suppressing noisy maintainability-related alerts that developers routinely ignore. The team already runs default setup across 200 repositories but finds the standard query set produces too many low-value results and misses some deeper security patterns. Which approach best tailors detection to the organization's risk profile without abandoning centralized management?

Reviewed for accuracy · Report an issue
Question 14 of 20

You are a security manager for an organization with 40 repositories. Leadership wants a consistent, enforced policy: any pull request that introduces a new code scanning alert of 'critical' or 'high' security severity must be blocked from merging across all repositories, without requiring each repository admin to configure branch protection individually. You also want the enforcement to apply automatically to newly created repositories. Which approach best satisfies these requirements?

Reviewed for accuracy · Report an issue
Question 15 of 20

A platform team maintains an internal npm package consumed by twelve product repositories across your organization. A newly published GHSA reveals a high-severity prototype-pollution flaw in a third-party dependency that the platform package pulls in transitively. Leadership wants a single, coordinated remediation effort that gives each product team visibility into their own affected repositories, tracks progress against a shared deadline, and avoids twelve independent, uncoordinated fixes. Which approach best meets these requirements using GitHub Advanced Security capabilities?

Reviewed for accuracy · Report an issue
Question 16 of 20

A platform security lead wants to enforce a single organization-wide policy that (1) blocks pull requests introducing code scanning alerts of 'high' security severity or above, and (2) prevents merges when Dependabot detects a 'critical' vulnerability in a new dependency. They want this enforced consistently across dozens of repositories without configuring each repo individually. Which GitHub capability best achieves this cross-suite enforcement from a single point of control?

Reviewed for accuracy · Report an issue
Question 17 of 20

A security engineer is documenting the remediation workflow for a Dependabot alert. The alert references GHSA-abcd-1234-wxyz, which in turn maps to CVE-2024-99999 and is categorized under CWE-89. A junior teammate asks how these three identifiers relate to each other so the team can write accurate remediation notes. Which explanation correctly describes the relationship among GHSA, CVE, and CWE in this context?

Reviewed for accuracy · Report an issue
Question 18 of 20

You maintain a popular open-source library on GitHub. A security researcher privately reports a remote code execution vulnerability affecting your project. As the maintainer, you want to develop and test a fix collaboratively with a few trusted contributors before any details become public, then publish coordinated disclosure with a proper identifier. Which GitHub Security Advisory workflow best supports this goal?

Reviewed for accuracy · Report an issue
Question 19 of 20

Your organization's dependency scanning has raised several Dependabot alerts across multiple repositories, all linked to a single GitHub Security Advisory (GHSA). Three days later, a security engineer notices that the upstream advisory has been marked as 'Withdrawn' in the GitHub Advisory Database, with a note that the vulnerability report was determined to be invalid. Some teams have already started upgrading the dependency. What is the most appropriate remediation-workflow response?

Reviewed for accuracy · Report an issue
Question 20 of 20

A platform security engineer wants to strengthen preventive security so that newly introduced vulnerabilities in application code are caught before they reach the default branch. Developers currently rely on a nightly scheduled CodeQL scan that reports findings a day after merge. The team complains that vulnerabilities are only discovered once they are already in main, forcing costly follow-up remediation. Which change best shifts detection left for code-level vulnerabilities?

Reviewed for accuracy · Report an issue

More GH-500 practice

Keep going with the other GitHub Advanced Security (GH-500) domains, or take a full timed mock exam.

← Back to GH-500 overview