Practice GitHub Administrator GH-500 exam. Online Exam Practice Tests with detailed explanations! Pass GH-500 with confidence!
GH-500 - GitHub Advanced Security Practice Tests 2026 | DumpsFree
NEW QUESTION # 33
Where in the repository can you give additional users access to secret scanning alerts?
- A. Insights
- B. Security
- C. Secrets
- D. Settings
Answer: D
Explanation:
To grant specific users access to view and manage secret scanning alerts, you do this via the Settings tab of the repository. From there, under the "Code security and analysis" section, you can add individuals or teams with roles such as security manager.
The Security tab only displays alerts; access control is handled in Settings.
NEW QUESTION # 34
What are Dependabot security updates?
- A. Automated pull requests to update the manifest to the latest version of the dependency
- B. Compatibility scores to let you know whether updating a dependency could cause breaking changes to your project
- C. Automated pull requests that help you update dependencies that have known vulnerabilities
- D. Automated pull requests that keep your dependencies updated, even when they don't have any vulnerabilities
Answer: C
Explanation:
Dependabot security updates are automated pull requests triggered when GitHub detects a vulnerability in a dependency listed in your manifest or lockfile. These PRs upgrade the dependency to the minimum safe version that fixes the vulnerability.
This is separate from regular updates (which keep versions current even if not vulnerable).
NEW QUESTION # 35
When using CodeQL, what extension stores query suite definitions?
- A. .yml
- B. .qls
- C. .ql
- D. .qll
Answer: B
Explanation:
About creating CodeQL query suites
CodeQL query suites provide a way of selecting queries, based on their filename, location on disk or in a CodeQL pack, or metadata properties. Create query suites for the queries that you want to frequently use in your CodeQL analyses.
Query suites allow you to pass multiple queries to CodeQL without having to specify the path to each query file individually. Query suite definitions are stored in YAML files with the extension .qls. A suite definition is a sequence of instructions, where each instruction is a YAML mapping with (usually) a single key. The instructions are executed in the order they appear in the query suite definition. After all the instructions in the suite definition have been executed, the result is a set of selected queries.
NEW QUESTION # 36
Assuming that notification and alert recipients are not customized, what does GitHub do when it identifies a vulnerable dependency in a repository where Dependabot alerts are enabled? (Each answer presents part of the solution. Choose two.)
- A. It notifies the repository administrators about the new alert.
- B. It generates Dependabot alerts by default for all private repositories.
- C. It consults with a security service and conducts a thorough vulnerability review.
- D. It generates a Dependabot alert and displays it on the Security tab for the repository.
Answer: A,D
Explanation:
When GitHub identifies a vulnerable dependency in a repository with Dependabot alerts enabled, it performs the following actions:
[A] Geneates a Dependabot alert: The alert is displayed on the repository's Security tab, providing details about the vulnerability and affected dependency.
[D] Notifies repository maintainers: By default, GitHub notifies users with write, maintain, or admin permissions about new Dependabot alerts.
These actions ensure that responsible parties are informed promptly to address the vulnerability.
NEW QUESTION # 37
How do I configure a webhook to monitor key scan alert events? What are the steps of this operation?
- A. Document alternatives to storing secrets in the source code.
- B. Enable system for cross-domain identity management (SCIM) provisioning for the enterprise.
- C. Configure a webhook to monitor for secret scanning alert events.
- D. Dismiss alerts that are older than 90 days.
Answer: A,C
Explanation:
To proactively address secret scanning:
Webhooks can be configured to listen for secret scanning events. This allows automation, logging, or alerting in real-time when secrets are detected.
Documenting secure development practices (like using environment variables or secret managers) helps reduce the likelihood of developers committing secrets in the first place.
Dismissal based on age is not a best practice without triage. SCIM deals with user provisioning, not scanning alerts.
NEW QUESTION # 38
You are a maintainer of a repository and Dependabot notifies you of a vulnerability. Where could the vulnerability have been disclosed? Each answer presents part of the solution. (Choose two.)
- A. in the dependency graph
- B. in manifest and lock files
- C. in security advisories reported on GitHub
- D. in the National Vulnerability Database
Answer: B,C
Explanation:
C: GitHub may send Dependabot alerts to repositories affected by a vulnerability disclosed by a recently published GitHub security advisory.
D: The Dependabot security updates feature is available for repositories where you have enabled the dependency graph and Dependabot alerts. You will see a Dependabot alert for every vulnerable dependency identified in your full dependency graph. However, security updates are triggered only for dependencies that are specified in a manifest or lock file.
NEW QUESTION # 39
You have a GitHub organization on GitHub Team that has GitHub Secret Protection enabled. The organization includes a team named Group1 and a repository named Repo1. Repo1 has secret scanning push protection enabled and an organization-level custom security configuration applied.
Developers who are NOT members of Group1 can request a delegated bypass when push protection blocks a commit.
You need to ensure that only the Group1 members can approve or deny push protection bypass requests for Repo1.
What should you do in Repo1?
- A. Set Bypass privileges to Specific actors, and then choose only Group1.
- B. Create a custom security configuration and enable Prevent direct alert dismissals for code scanning.
- C. In the organization-level custom security configuration, set Bypass privileges to Repository administrators.
- D. Configure delegated bypass and specify Group1 as the reviewers.
Answer: C
Explanation:
To restrict push protection bypass approvals to a specific team, you must configure the delegated bypass list within the organization-level custom security configuration. Because an organization- level custom security configuration is applied to the repository, the local repository settings for delegated bypass are automatically locked and overridden.
Reference:
https://docs.github.com/en/[email protected]/code-security/how-tos/secure-your-secrets/manage-bypass-requests/enabling-delegated-bypass-for-push-protection
NEW QUESTION # 40
Secret scanning will scan:
- A. a continuous integration system.
- B. any Git repository.
- C. the GitHub repository.
- D. external services.
Answer: C
Explanation:
Secret scanning automatically scans your repository's contents for sensitive data, such as API keys, passwords, tokens, and other secrets. It looks for patterns and heuristics that match known types of secrets.
Secret scanning is available for the following repository types:
Public repositories on GitHub.com
Organization-owned repositories on GitHub Team with GitHub Secret Protection enabled
NEW QUESTION # 41
What is the exportable SBOM format created by the dependency graph on GitHub?
- A. SWID.
- B. SPDX.
- C. CycloneDX.
- D. All of the above.
Answer: D
NEW QUESTION # 42
When does Dependabot alert you of a vulnerability in your software development process?
- A. when a pull request adding a vulnerable dependency is opened
- B. as soon as a pull request is opened by a contributor
- C. when Dependabot opens a pull request to update a vulnerable dependency
- D. as soon as a vulnerable dependency is detected
Answer: D
Explanation:
Dependabot alerts are generated as soon as GitHub detects a known vulnerability in one of your dependencies. GitHub does this by analyzing your repository's dependency graph and matching it against vulnerabilities listed in the GitHub Advisory Database. Once a match is found, the system raises an alert automatically without waiting for a PR or manual action.
This allows organizations to proactively mitigate vulnerabilities as early as possible, based on real-time detection.
NEW QUESTION # 43
Assuming that no custom Dependabot behavior is configured, who has the ability to merge a pull request created via Dependabot security updates?
- A. a repository member of an enterprise organization
- B. an enterprise administrator
- C. a user who has read access to the repository
- D. a user who has write access to the repository
Answer: D
Explanation:
Managing pull requests for dependency updates
You manage pull requests raised by Dependabot in much the same way as other pull requests, but there are some extra options.
Who can use this feature?
Users with write access
NEW QUESTION # 44
Which syntax in a query suite tells CodeQL to look for one or more specified .ql files?
- A. query
- B. qls
- C. qlpack
Answer: A
Explanation:
Locating queries to add to a query suite
When creating a query suite, you first need to specify the locations of the queries that you want to select. You can define the location of one or more queries using:
A query instruction: Tells CodeQL to look for one or more specified .ql files:
- query: <path-to-query>
The argument must be one or more file paths, relative to the CodeQL pack containing the suite definition.
NEW QUESTION # 45
Who can fix a code scanning alert on a private repository?
- A. Users who have the security manager role within the repository
- B. Users who have the Triage role within the repository
- C. Users who have Read permissions within the repository
- D. Users who have Write access to the repository
Answer: D
Explanation:
Comprehensive and Detailed Explanation:
In private repositories, users with write access can fix code scanning alerts. They can do this by committing changes that address the issues identified by the code scanning tools. This level of access ensures that only trusted contributors can modify the code to resolve potential security vulnerabilities.
GitHub Docs
Users with read or triage roles do not have the necessary permissions to make code changes, and the security manager role is primarily focused on managing security settings rather than directly modifying code.
Reference:
GitHub Docs
NEW QUESTION # 46
Hotspot Question
You have a GitHub Enterprise Cloud Organization that uses GitHub Advanced Security and runs CodeQL code scanning on pull requests (PRs).
You discover that a specific CodeQL alert is a false positive and must be closed without changing the code.
You need to dismiss the alert as a false positive result and add a dismissal comment.
How should you complete the GitHub CLI command? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Answer:
Explanation:
Explanation:
Box 1: Gh
gh is the core executable command for the GitHub CLI tool. All GitHub CLI commands start with gh followed by the specific extension or API flag.
Box 2: ${owner}/${repo}
{owner}/{repo} represents the repository path required by the GitHub REST API endpoint. For an enterprise cloud organization, {owner} is your GitHub Organization name and {repo} is the specific repository name where the alert resides (e.g., my-org/my-application).
Reference:
https://cve.akaoma.com/cve-2023-3883
NEW QUESTION # 47
In a private repository, what minimum requirements does GitHub need to generate a dependency graph? (Each answer presents part of the solution. Choose two.)
- A. write access to the dependency manifest and lock files for an enterprise
- B. dependency graph enabled at the organization level for all new private repositories
- C. read-only access to all the repository's files
- D. read-only access to the dependency manifest and lock files for a repository
Answer: B,D
Explanation:
Configuring the dependency graph
[D] To generate a dependency graph, GitHub needs read-only access to the dependency manifest and lock files for a repository.
[B] Enabling and disabling the dependency graph
Repository administrators can enable or disable the dependency graph for all repositories owned by your user account, regardless of their visibility.
When the dependency graph is first enabled, any manifest and lock files for supported ecosystems are parsed immediately. The graph is usually populated within minutes but this may take longer for repositories with many dependencies. Once enabled, the graph is automatically updated with every push to the repository and every push to other repositories in the graph.
NEW QUESTION # 48
......
Get instant access to GH-500 practice exam questions: https://drive.google.com/open?id=1r9oATuMDXGEqUSbNCTYh9gmR0E7dpJ6d
The best GH-500 exam study material and preparation tool is here: https://www.dumpsfree.com/GH-500-valid-exam.html