GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 11–15 (page: 4)

Updated On: 16-Nov-2026

What is the minimum role needed in order to view the secret scanning alerts list within the Security tab of a repository?

  1. Read
  2. Write
  3. repository owner
  4. Admin

Answer(s): C

Explanation:

Viewing and filtering alerts from secret scanning
Who can use this feature?
Repository owners, organization owners, security managers, and users with the admin role
Note: About the secret scanning alerts page
When you enable secret scanning for a repository or push commits to a repository with secret scanning enabled, GitHub scans the contents for secrets that match patterns defined by service providers.
When secret scanning detects a secret, GitHub generates an alert. GitHub displays an alert in the Security tab of the repository.


Reference:

https://docs.github.com/en/code-security/secret-scanning/managing-alerts-from-secret-scanning/viewing-alerts



Which of the following is the best way to dispose of a compromised secret?

  1. Create a new secret.
  2. Revoke the secret.
  3. Update any services that use the secret.
  4. Remove the secret from the code base.

Answer(s): B

Explanation:

Remediating a leaked secret in your repository
Revoke the secret
It is not sufficient to simply remove the secret from your codebase. The most important remediation step is revoking the secret with the secret's provider. By revoking the secret, you drastically reduce the potential for the secret to be exploited.
Note:
You should consider any leaked secret to be immediately compromised and it is essential that you undertake proper remediation steps, such as revoking the secret. Simply removing the secret from the codebase, pushing a new commit, or deleting and recreating the repository do not prevent the secret from being exploited.


Reference:

https://docs.github.com/en/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/re mediating-a-leaked-secret



Which of the following secret scanning features can verify whether a secret is still active?

  1. branch protection
  2. validity checks
  3. push protection
  4. custom patterns

Answer(s): B

Explanation:

Performing validity checks
Validity checks help you prioritize alerts by telling you which secrets are active or inactive.


Reference:

https://docs.github.com/en/code-security/secret-scanning/introduction/about-secret-scanning



Using advanced setup, which code scanning configuration would help detect vulnerabilities before they are added to a shared branch?

  1. on:
    workflow_dispatch:
  2. on:
    pull_request:
  3. on:
    issues:
  4. on:
    schedule:

Answer(s): B

Explanation:

Code scanning merge protection prevents a pull request from merging into a protected branch if it contains security issues or if required code scanning tools are missing or incomplete. This feature, configured using GitHub Rulesets>>, acts as a safeguard, blocking merges until all code scanning alerts are addressed to a defined severity level and the analysis is complete.
Code Scanning Configuration: You configure code scanning tools (like CodeQL) in your repository to run automatically on pull requests using the pull_request: event trigger.
Incorrect:
[Not A]
workflow_dispatch is a GitHub Actions trigger that allows users to manually start a workflow on demand, offering flexibility for tasks like deployments or testing that don't need to run automatically on every code change. This trigger can be configured with custom inputs to provide different parameters for each manual run, giving users more control over when and how specific workflows are executed.


Reference:

https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/custo mizing-your-advanced-setup-for-code-scanning



You have a GitHub Enterprise subscription that contains multiple organizations. Each organization contains repositories that use GitHub Advanced Security.
You need to manage code security and analysis policies across all the organizations. The solution must ensure that the organization owners can manage repository membership and day-to-day collaboration within their respective organization.
What should you configure?

  1. repository branch protection rules for each repository
  2. organization-level repository rules for each organization
  3. enterprise policies for code security and analysis
  4. repository rulesets for each repository

Answer(s): C

Explanation:

To achieve this, you should configure code security and analysis policies at the GitHub Enterprise account level while assigning members the Organization Owner role within their respective organizations.
Enforcing these settings at the Enterprise level overrides lower-level changes. This allows you to globally control GitHub Advanced Security (GHAS) policies while delegating membership and daily operations to individual organization administrators.


Reference:

https://docs.github.com/en/enterprise-server@3.20/organizations/collaborating-with-groups-in-organizations/ab out-organizations



Viewing page 4 of 27
Viewing questions 11 - 15 out of 127 questions


Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!