GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 1–5 (page: 2)

Updated On: 16-Nov-2026

A secret scanning alert should be closed as “used in tests” when a secret is:

  1. in a test file.
  2. solely used for tests.
  3. in the readme.md file.
  4. not a secret in the production environment.

Answer(s): B

Explanation:

If a secret is intentionally used in a test environment and poses no real-world security risk, you may close the alert with the reason"used in tests". This helps reduce noise and clarify that the alert was reviewed and accepted as non-critical.
Just being in a test file isn't enough unless itspurpose is purely for testing.


Reference:

https://docs.github.com/en/enterprise-server@3.13/code-security/code-scanning/creating-an-advanced-setup-f or-code-scanning/codeql-code-scanning-for-compiled-languages



What happens when you enable secret scanning on a private repository?

  1. Repository administrators can view Dependabot alerts.
  2. Dependency review, secret scanning, and code scanning are enabled.
  3. Your team is subscribed to security alerts.
  4. GitHub performs a read-only analysis on the repository.

Answer(s): A

Explanation:

GitHub secret scanning detects and alerts on sensitive data exposure, such as API keys and credentials, in your code repositories. Use it to protect your secrets, ensure secure and compliant development practices, and reduce the risk of data breaches and unauthorized access.
GitHub has scanned public repositories for secrets (like API keys and tokens) for several years. Secret scanning protects our partners and our customers from unauthorized use of the services protected by those secrets. Just this month, 8% of active GitHub repositories committed a secret that was caught by secret scanning.
At GitHub Satellite, we announced secret scanning for private repositories, part of GitHub Advanced Security. We’re bringing the same lightning-fast scanning engine and broad set of 24 partners (including all the major cloud providers and many common SaaS providers) to your private repository, so you can catch secrets as soon as they’re checked in. Repository admins will be notified about any commit that contains a secret, and can quickly view all detected secrets in the repo’s Security tab.


Reference:

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



Which of the following statements best describes secret scanning push protection?

  1. Buttons for sensitive actions in the GitHub UI are disabled.
  2. Commits that contain secrets are blocked before code is added to the repository.
  3. Users need to reply to a 2FA challenge before any push events.
  4. Secret scanning alerts must be closed before a branch can be merged into the repository.

Answer(s): B

Explanation:

Secret scanning push protection is a security feature that prevents sensitive information like API keys or tokens from being pushed to a repository in the first place. It works by proactively scanning code during the push process and blocking any attempts to commit secrets. This differs from regular secret scanning, which only detects secrets after they have been committed.


Reference:

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



What is a security policy?

  1. a security alert issued to a community in response to a vulnerability
  2. a file in a GitHub repository that provides instructions to users about how to report a security vulnerability
  3. an alert about dependencies that are known to contain security vulnerabilities
  4. an automatic detection of security vulnerabilities and coding errors in new or modified code

Answer(s): B

Explanation:

Adding a security policy to your repository
You can give instructions for how to report a security vulnerability in your project by adding a security policy to your repository.
About security policies
To give people instructions for reporting security vulnerabilities in your project, you can add a SECURITY.md file to your repository's root, docs, or .github folder. Adding this file to this part(s) of your repository automatically creates a row with a description where people can review it.
When someone creates an issue in your repository, they will see a link to your project's security policy.


Reference:

https://docs.github.com/en/code-security/getting-started/adding-a-security-policy-to-your-repository



Which of the following information can be found in a repository’s Security tab?

  1. number of alerts per GHAS feature
  2. GHAS settings
  3. access management
  4. two-factor authentication (2FA) options

Answer(s): A

Explanation:

You can find security alerts from Dependabot, Secret scanning, and Code scanning under your repository's Security tab. Security alerts for a repository are visible to people with write, maintain, or admin access to the repository and, when the repository is owned by an organization, organization owners.


Reference:

https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-security-and-analysis-settings-for-your-repository



Viewing page 2 of 27
Viewing questions 1 - 5 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!