Free GitHub Advanced Security Exam Braindumps
GitHub Advanced Security GHAS Questions 26–30 (page: 7)

Updated On: 10-Feb-2026

­ [Configure and Use Secret Scanning]

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

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

Answer(s): A

Explanation:

Comprehensive and Detailed Explanation;
Secret scanning push protection is a proactive feature that scans for secrets in your code during the push process. If a secret is detected, the push is blocked, preventing the secret from being added to the repository. This helps prevent accidental exposure of sensitive information.

GitHub Docs


Reference:

GitHub Docs ­ About push protection



­ [Configure and Use Dependency Management]

In a private repository, what minimum requirements does GitHub need to generate a dependency graph? (Each answer presents part of the solution. Choose two.)

  1. Read-only access to all the repository's files
  2. Dependency graph enabled at the organization level for all new private repositories
  3. Write access to the dependency manifest and lock files for an enterprise
  4. Read-only access to the dependency manifest and lock files for a repository

Answer(s): B,D

Explanation:

Comprehensive and Detailed Explanation;
To generate a dependency graph for a private repository, GitHub requires:

Dependency graph enabled: The repository must have the dependency graph feature enabled. This can be configured at the organization level to apply to all new private repositories.

Access to manifest and lock files: GitHub needs read-only access to the repository's dependency manifest and lock files (e.g., package.json, requirements.txt) to identify and map dependencies.


Reference:

GitHub Docs ­ About the dependency graph



­ [Use Code Scanning with CodeQL]

What does a CodeQL database of your repository contain?

  1. A build for Go projects to set up the project
  2. A build of the code and extracted data
  3. Build commands for C/C++, C#, and Java
  4. A representation of all of the source code
    GitHub
    Agentic AI for AppSec Teams

Answer(s): B

Explanation:

Comprehensive and Detailed Explanation;
A CodeQL database contains a representation of your codebase, including the build of the code and extracted data. This database is used to run CodeQL queries to analyze your code for potential vulnerabilities and errors.

GitHub Docs


Reference:

GitHub Docs ­ Preparing your code for CodeQL analysis



­ [Use Code Scanning with CodeQL]

When using CodeQL, how does extraction for compiled languages work?

  1. By generating one language at a time
  2. By resolving dependencies to give an accurate representation of the codebase
  3. By monitoring the normal build process
  4. By running directly on the source code

Answer(s): C

Explanation:

For compiled languages, CodeQL performs extraction by monitoring the normal build process. This means it watches your usual build commands (like make, javac, or dotnet build) and extracts the relevant data from the actual build steps being executed. CodeQL uses this information to construct a semantic database of the application.

This approach ensures that CodeQL captures a precise, real-world representation of the code and its behavior as it is compiled, including platform-specific configurations or conditional logic used during build.


Reference:

GitHub Docs ­ CodeQL for compiled languages



­ [Configure and Use Secret Scanning]

Which of the following features helps to prioritize secret scanning alerts that present an immediate risk?

  1. Non-provider patterns
  2. Push protection
  3. Custom pattern dry runs
  4. Secret validation

Answer(s): D

Explanation:

Secret validation checks whether a secret found in your repository is still valid and active with the issuing provider (e.g., AWS, GitHub, Stripe). If a secret is confirmed to be active, the alert is marked as verified, which means it's considered a high-priority issue because it presents an immediate security risk.

This helps teams respond faster to valid, exploitable secrets rather than wasting time on expired or fake tokens.


Reference:

GitHub Docs ­ Secret validation in secret scanning



Viewing page 7 of 16
Viewing questions 31 - 35 out of 75 questions


Post your Comments and Discuss GitHub GitHub Advanced Security exam prep with other Community members:

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