Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Microsoft GitHub Advanced Security Exam GH-500 Exam Questions

Last updated: · 14 practice questions with answers and explanations

Page: 1 / 13 Total 125 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: Describe GitHub Security suites, features, and ecosystem

Skill tested: Select the security capability and reporting view that match organizational risk needs.

A software company has GitHub Advanced Security enabled for its private repositories. Its security leadership wants one portfolio view that identifies which repositories have critical code-scanning, secret-scanning, and Dependabot risks, so teams can focus remediation on the highest-impact projects. The company does not want to replace repository-level alert pages or export data into a separate dashboard. Which approach best meets the requirement?

Correct Answer: C. Use Security Overview to aggregate security risk across repositories and prioritize the affected repositories and alerts.
Explanation:

Security Overview provides organization- or enterprise-level visibility into security risks across repositories and supports prioritization using the available alert information. Repository alert pages remain useful for investigation, but do not provide the requested portfolio view. Dependency Review focuses on dependency changes in pull requests rather than aggregating all three alert categories. Campaigns help coordinate remediation for selected alerts; they are not a substitute for the continuously available portfolio overview. The audit log records events and is not a vulnerability dashboard.

Question 2

New Multiple answers

Topic: Describe GitHub Security suites, features, and ecosystem

Skill tested: Differentiate Code Security, Secret Protection, and supply chain capabilities by risk type.

An organization is mapping three recurring risks to GitHub Advanced Security capabilities. First, developers sometimes commit credentials that could be used against production services. Second, a code change introduces an exploitable dataflow vulnerability. Third, a vulnerable transitive package is included through the dependency tree. Teams want to route each risk to the capability that detects or helps manage it, without treating one capability as a complete replacement for the others. Which TWO mappings are accurate? Select TWO answers.

Correct Answer: A. Use Code Security, including code scanning, to identify security weaknesses in source code.; B. Use Secret Protection features such as secret scanning and push protection for exposed credentials.
Explanation:

Secret Protection addresses credentials and other supported secrets, including detection and prevention workflows such as push protection. Code Security includes code scanning capabilities that analyze source code for security vulnerabilities, including issues that may be represented through dataflow paths. Dependency and transitive-package risks are handled through supply chain capabilities such as the dependency graph, Dependabot alerts, and Dependency Review - not arbitrary source dataflow scanning. Secret scanning does not generally validate code vulnerabilities or serve as the principal vulnerable-dependency detector; credential validity checks, where supported, concern detected secrets rather than code scanning.

Question 3

New Single answer

Topic: Describe GitHub Security suites, features, and ecosystem

Skill tested: Use security campaigns to coordinate targeted remediation across selected alerts.

A platform security group has identified a set of similar, actionable code-scanning alerts across several repositories. A quarterly remediation push needs owners to work from a shared, bounded list, track progress, and create remediation pull requests where possible. The group does not want to close alerts automatically or create a permanent general-purpose reporting system. What is the most appropriate use of GitHub security campaigns?

Correct Answer: C. Create a campaign containing the selected alerts so teams can coordinate remediation and track campaign progress.
Explanation:

Security campaigns are intended to focus teams on selected security alerts and support coordinated remediation, including tracking progress and remediation pull requests when available. They do not automatically absorb every future alert simply because a policy file exists, and they are not a mechanism for suppressing findings. Suppressing alerts would hide or dismiss risk rather than remediate it. The audit log records relevant events but is not an alert-management campaign workflow. Keeping the campaign bounded to actionable alerts aligns with the stated quarterly effort.

Question 4

New Single answer

Topic: Configure and use Secret Protection (formerly secret scanning)

Skill tested: Apply repository and organization settings to enable secret detection and prevention.

A company wants secret scanning and push protection consistently enabled for repositories in a critical organization. Repository administrators must not be able to weaken the organization baseline, but an organization owner needs to manage exceptions for a small number of repositories after review. Which configuration strategy best fits this governance requirement?

Correct Answer: A. Set the organization-level Secret Protection policies and use the available repository-level controls and exceptions within those policies.
Explanation:

Organization-level Secret Protection settings provide a central way to establish coverage for repositories, while repository-level configuration and supported exceptions can accommodate reviewed cases. This is more governable than relying on individual repository administrators to enable protection consistently. Repository rulesets are not a substitute for the relevant Secret Protection controls, and they do not make organization-level configuration impossible. Validity checks can provide information about detected secrets where supported, but they do not replace push protection, which is the feature intended to block supported secret pushes.

Question 5

New Multiple answers

Topic: Configure and use Secret Protection (formerly secret scanning)

Skill tested: Distinguish push protection enforcement from alert investigation and secret validity information.

A development organization is rolling out protection against credentials committed to Git repositories. Its requirements are to block supported secrets before they enter repository history, retain an investigation workflow for secrets detected in existing content, and use provider validity information when available to prioritize response. The team understands that not every provider offers the same validation support. Which TWO statements correctly describe the implementation? Select TWO answers.

Correct Answer: D. Enable push protection to block supported secret patterns during a push, subject to the feature's supported behavior and any permitted bypass.; E. Use secret-scanning alerts to investigate detected secrets already present in repository content and manage their lifecycle.
Explanation:

Push protection is a preventive control for supported secret patterns at push time; it does not erase credentials already committed in history. Existing detections remain part of the secret-scanning alert lifecycle and should be investigated, remediated, and appropriately resolved. Validity information is not universally available for every provider or secret type, and it does not guarantee automatic revocation. Dismissing alerts is neither a prerequisite for push protection nor a valid response to confirmed exposed credentials. The organization should separately rotate or revoke real secrets and remove exposure where appropriate.

Question 6

New Single answer

Topic: Configure and use Secret Protection (formerly secret scanning)

Skill tested: Respond to a confirmed secret alert by containing exposure and resolving the alert appropriately.

A responder receives a secret-scanning alert for a production API token committed in a private repository. The provider confirms that the token is active, and application logs show no evidence of misuse so far. The repository team proposes closing the alert immediately because the repository is private and the token can be deleted in a follow-up commit. What should the responder do first?

Correct Answer: D. Revoke or rotate the exposed token with its provider, then investigate exposure and remediate the repository before resolving the alert.
Explanation:

A confirmed active production credential must be treated as compromised. The immediate containment step is to revoke or rotate it through the provider, followed by investigation and repository remediation; removing a value in a later commit does not remove it from earlier Git history. A private repository can still have exposure through collaborators, automation, forks, or other access paths, and absence of observed misuse does not make the token safe. Dismissing the alert or disabling scanning would conceal risk rather than remediate it.

Question 7

New Multiple answers

Topic: Configure and use supply chain security (formerly Dependabot/Dependency Review)

Skill tested: Interpret dependency graph and SBOM data for transitive dependency inventory.

A product security team must answer which components are present in each repository, including dependencies introduced transitively, and provide a machine-readable component inventory for an audit. The repositories use supported package ecosystems, but not every dependency is declared directly in a manifest. The team also wants to distinguish inventory generation from vulnerability detection and pre-merge policy enforcement. Which TWO actions are appropriate? Select TWO answers.

Correct Answer: A. Generate an SBOM from the repository's dependency information for a machine-readable component inventory.; E. Enable dependency graph data collection so GitHub can identify dependencies from supported manifests and lockfiles.
Explanation:

The dependency graph supplies dependency inventory from supported ecosystem files, including relationships represented by manifests and lockfiles, and can inform supply chain security features. An SBOM provides a machine-readable inventory that can be generated from available dependency information. Dependency Review evaluates dependency changes in pull requests; it is not the general-purpose permanent SBOM storage mechanism described in the distractor. Secret validity checks concern detected credentials, not package relationships. Coverage depends on supported formats and available dependency data, so neither the graph nor an SBOM should be treated as a guarantee of every dynamically obtained component.

Question 8

New Single answer

Topic: Configure and use supply chain security (formerly Dependabot/Dependency Review)

Skill tested: Configure Dependency Review as a pre-merge control for newly introduced vulnerable dependencies.

A regulated service wants to prevent pull requests from introducing dependencies with known vulnerabilities above an agreed severity threshold. Developers should still be able to review lower-risk dependency changes, and the organization wants the decision to occur before merge rather than only after an alert is created on the default branch. Which design is most appropriate?

Correct Answer: D. Add Dependency Review to the pull-request workflow and configure its policy to fail checks for dependency changes meeting the agreed criteria.
Explanation:

Dependency Review examines dependency changes introduced by a pull request and can be configured in a workflow to enforce a policy before merge, including failing the check when configured criteria are met. Dependabot alerts notify teams about vulnerable dependencies but do not, by themselves, constitute the requested pull-request gate. An SBOM generated after merge is an inventory artifact, not a pre-merge decision. Push protection addresses supported secrets, not vulnerable package versions. The agreed threshold should be encoded in the review policy so lower-risk changes can proceed.

Question 9

New Single answer

Topic: Configure and use supply chain security (formerly Dependabot/Dependency Review)

Skill tested: Choose Dependabot update configuration that respects versioning and controlled update scope.

A service team wants routine Dependabot updates for direct dependencies in a production application. It must keep updates grouped by ecosystem to reduce pull-request volume, avoid changing major versions automatically, and continue receiving security updates according to Dependabot's security-update behavior. Which configuration approach is best?

Correct Answer: C. Configure Dependabot version updates for the relevant ecosystem, use grouping rules, and constrain allowed update types to exclude version updates that include major changes.
Explanation:

Dependabot version updates are configured by ecosystem in the repository's Dependabot configuration, where update scope, grouping, and allowed update types can be managed. Excluding major version updates from routine version updates addresses the stated compatibility constraint without using an unrelated mechanism. Dependency Review evaluates proposed changes but does not create version-update pull requests. CODEOWNERS can establish review responsibility, not update grouping or version constraints. A ruleset rejecting versioned manifests would prevent normal dependency management rather than control automated updates.

Question 10

New Single answer

Topic: Configure and use Code Security (formerly Code Scanning with CodeQL)

Skill tested: Select a CodeQL workflow integration that scans code and uploads SARIF results.

An engineering organization uses GitHub Actions for most builds but has a legacy repository whose compilation and analysis must run on an external CI platform. Security findings from both environments need to appear as code-scanning alerts in GitHub, with source locations and rule metadata. Which implementation best satisfies the requirement?

Correct Answer: A. Use CodeQL analysis in GitHub Actions for the standard repositories and upload valid SARIF results from the external CI analysis to the legacy repository.
Explanation:

Code scanning results can be produced through GitHub Actions workflows or an external analysis process, with SARIF used to upload supported analysis results into GitHub's code-scanning experience. The SARIF must be valid and contain the relevant results and metadata; raw CI logs are not automatically converted into alerts. Dependency Review addresses dependency changes and does not substitute for CodeQL source analysis or produce CodeQL findings. Campaigns organize remediation of alerts that exist; they do not ingest build logs as code-scanning results.

Question 11

New Single answer

Topic: Configure and use Code Security (formerly Code Scanning with CodeQL)

Skill tested: Interpret CodeQL dataflow paths to locate a vulnerability's source and propagation.

A CodeQL alert identifies a potentially unsafe value flowing from an HTTP request parameter into a database query. A developer assumes the alert is a false positive because the database library parameterizes values at one call site, while the alert's trace shows several intermediate helper functions. Before changing the query or dismissing the finding, what is the best next step?

Correct Answer: C. Review the alert's dataflow path from source through intermediate steps to the reported sink, then verify the relevant sanitization or parameterization.
Explanation:

A CodeQL dataflow trace helps reviewers understand how potentially untrusted data travels from a source toward a sensitive sink, including intermediate operations. The developer should inspect the actual path and determine whether effective sanitization or parameterization breaks the dangerous flow in the relevant context. A successful workflow means analysis completed; it does not mean findings are resolved. Dataflow paths are not build-log artifacts, and dismissing an alert without verifying the security behavior would be premature. If the trace supports a genuine false positive, the team can then document and resolve it appropriately.

Question 12

New Multiple answers

Topic: Security operations: best practices, prioritization, and remediation

Skill tested: Prioritize security alerts using severity, exploitability context, and remediation impact.

A security operations team has hundreds of open alerts across business-critical repositories. Leadership asks for the first remediation wave to reduce meaningful risk without simply choosing the largest alert count or dismissing low-confidence findings. The team can use alert severity and repository context, and wants the resulting work to be actionable for engineers. Which TWO practices are most appropriate? Select TWO answers.

Correct Answer: B. Use a bounded remediation campaign to group selected alerts, assign ownership, and track progress.; D. Prioritize high-severity, actionable alerts in repositories with significant business exposure, using available exploitability and remediation context.
Explanation:

Effective prioritization combines severity with contextual factors such as repository importance, exploitability, and the availability of a practical fix; raw volume alone can obscure the highest-risk work. A bounded campaign turns selected remediation into owned, trackable work and supports progress management. Dismissing lower-severity alerts without analysis discards risk information. Likewise, opening a pull request does not establish that the issue is fixed: the change must be reviewed, merged as appropriate, and confirmed through subsequent analysis or alert resolution. These practices balance risk reduction with operational follow-through.

Question 13

New Single answer

Topic: Security operations: best practices, prioritization, and remediation

Skill tested: Automate only well-supported alert dispositions and preserve rationale for security decisions.

A central security team wants to reduce repetitive handling of alerts that have been verified as non-actionable under a documented engineering standard. The team must preserve a defensible rationale for audit and avoid suppressing new, unrelated findings. What is the safest operational approach?

Correct Answer: B. Use a narrowly scoped, reviewed automation or workflow for the verified alert condition, record the rationale, and retain human review for uncertain cases.
Explanation:

Automation can improve alert operations when its scope is precise, the disposition is supported by evidence, and the rationale is documented. A narrow rule reduces the chance of suppressing materially different findings, while human review handles uncertain cases. Broad dismissal by rule name can hide valid vulnerabilities and provides no audit-quality justification. Disabling scanning removes visibility rather than resolving noise. Acknowledgment is not remediation, and marking alerts fixed before confirming the correction undermines both security tracking and the accuracy of the alert lifecycle.

Question 14

New Single answer

Topic: GitHub Security suites administration

Skill tested: Apply enterprise and organization policy boundaries without overestimating repository controls.

An enterprise security administrator is rolling out security settings to multiple organizations. Enterprise leadership requires a consistent baseline, while organization owners need to manage settings within their delegated scope. Repository teams must not be able to weaken controls that enterprise policy makes mandatory. Which approach best reflects an appropriate administration model?

Correct Answer: A. Configure the relevant enterprise-level policies and use organization-level administration for settings that remain delegated, with repository controls bounded by those policies.
Explanation:

GitHub security administration supports controls at enterprise, organization, and repository scopes, with higher-level policy and delegation determining what lower-level administrators can manage. A central enterprise baseline is appropriate when consistency is mandatory, while organization owners can administer delegated settings within that boundary. Independent repository configuration does not meet the governance requirement. Granting enterprise-owner access broadly violates least privilege, and campaigns coordinate alert remediation rather than enforce configuration boundaries.