
Current GH-500 Exam Dumps [2026] Complete Microsoft Exam Smoothly
GH-500 Premium PDF & Test Engine Files with 77 Questions & Answers
NEW QUESTION # 23
The autobuild step in the CodeQL workflow has failed. What should you do?
- A. Use CodeQL, which implicitly detects the supported languages in your code base.
- B. Compile the source code.
- C. Remove specific build steps.
- D. Remove the autobuild step from your code scanning workflow and add specific build steps.
Answer: D
Explanation:
If autobuild fails (which attempts to automatically detect how to build your project), you should disable it in your workflow and replace it with explicit build commands, using steps like run: make or run: ./gradlew build.
This ensures CodeQL can still extract and analyze the code correctly.
NEW QUESTION # 24
Which details do you have to provide to create a custom pattern for secret scanning? (Each answer presents part of the solution. Choose two.)
- A. The secret format
- B. Additional match requirements for the secret format
- C. The name of the pattern
- D. A list of repositories to scan
Answer: A,C
Explanation:
When defining a custom pattern for secret scanning, two key fields are required:
Name of the pattern: A unique label to identify the pattern
Secret format: A regular expression that defines what the secret looks like (e.g., token format) You can optionally specify additional match requirements (like required context keywords), but they're not mandatory. Listing repositories is also not part of the required fields during pattern creation.
NEW QUESTION # 25
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. Dependency graph enabled at the organization level for all new private repositories
- B. Read-only access to all the repository's files
- C. Read-only access to the dependency manifest and lock files for a repository
- D. Write access to the dependency manifest and lock files for an enterprise
Answer: A,C
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.
NEW QUESTION # 26
Which of the following information can be found in a repository's Security tab?
- A. Two-factor authentication (2FA) options
- B. GHAS settings
- C. Access management
- D. Number of alerts per GHAS feature
Answer: D
Explanation:
The Security tab in a GitHub repository provides a central location for viewing security-related information, especially when GitHub Advanced Security is enabled. The following can be accessed:
Number of alerts related to:
Code scanning
Secret scanning
Dependency (Dependabot) alerts
Summary and visibility into open, closed, and dismissed security issues.
It does not show 2FA options, access control settings, or configuration panels for GHAS itself. Those belong to account or organization-level settings.
NEW QUESTION # 27
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 security advisories reported on GitHub
- B. In the dependency graph
- C. In the National Vulnerability Database
- D. In manifest and lock files
Answer: A,C
Explanation:
Comprehensive and Detailed Explanation:
Dependabot alerts are generated based on data from various sources:
National Vulnerability Database (NVD): A comprehensive repository of known vulnerabilities, which GitHub integrates into its advisory database.
GitHub Docs
Security Advisories Reported on GitHub: GitHub allows maintainers and security researchers to report and discuss vulnerabilities, which are then included in the advisory database.
The dependency graph and manifest/lock files are tools used by GitHub to determine which dependencies are present in a repository but are not sources of vulnerability disclosures themselves.
NEW QUESTION # 28
What does a CodeQL database of your repository contain?
- A. A representation of all of the source code
- B. Build commands for C/C++, C#, and Java
- C. A build of the code and extracted data
- D. A build for Go projects to set up the project
Answer: C
Explanation:
GitHub
Agentic AI for AppSec Teams
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
NEW QUESTION # 29
If notification and alert recipients are not customized, which users receive notifications about new Dependabot alerts in an affected repository?
- A. Users with Admin privileges to the repository
- B. Users with Write permissions to the repository
- C. Users with Read permissions to the repository
- D. Users with Maintain privileges to the repository
Answer: B
Explanation:
By default, users with Write, Maintain, or Admin permissions will receive notifications for new Dependabot alerts. However, Write permission is the minimum level needed to be automatically notified. Users with only Read access do not receive alerts unless added explicitly.
NEW QUESTION # 30
Assuming there is no custom Dependabot behavior configured, where possible, what does Dependabot do after sending an alert about a vulnerable dependency in a repository?
- A. Scans repositories for vulnerable dependencies on a schedule and adds those files to a manifest
- B. Creates a pull request to upgrade the vulnerable dependency to the minimum possible secure version
- C. Scans any push to all branches and generates an alert for each vulnerable repository
- D. Constructs a graph of all the repository's dependencies and public dependents for the default branch
Answer: B
Explanation:
After generating an alert for a vulnerable dependency, Dependabot automatically attempts to create a pull request to upgrade that dependency to the minimum required secure version-if a fix is available and compatible with your project.
This automated PR helps teams fix vulnerabilities quickly with minimal manual intervention. You can also configure update behaviors using dependabot.yml, but in the default state, PR creation is automatic.
NEW QUESTION # 31
Assuming that notification settings and Dependabot alert recipients have not been customized, which user account setting should you use to get an alert when a vulnerability is detected in one of your repositories?
- A. Enable all in existing repositories
- B. Enable all for Dependabot alerts
- C. Enable all for Dependency graph
- D. Enable by default for new public repositories
Answer: B
Explanation:
To ensure you're notified whenever a vulnerability is detected via Dependabot, you must enable alerts for Dependabot in your personal notification settings. This applies to both new and existing repositories. It ensures you get timely alerts about security vulnerabilities.
The dependency graph must be enabled for scanning, but does not send alerts itself.
NEW QUESTION # 32
What happens when you enable secret scanning on a private repository?
- A. GitHub performs a read-only analysis on the repository.
- B. Dependency review, secret scanning, and code scanning are enabled.
- C. Repository administrators can view Dependabot alerts.
- D. Your team is subscribed to security alerts.
Answer: A
Explanation:
When secret scanning is enabled on a private repository, GitHub performs a read-only analysis of the repository's contents. This includes the entire Git history and files to identify strings that match known secret patterns or custom-defined patterns.
GitHub does not alter the repository, and enabling secret scanning does not automatically enable code scanning or dependency review - each must be configured separately.
NEW QUESTION # 33
What is the first step you should take to fix an alert in secret scanning?
- A. Revoke the alert if the secret is still valid.
- B. Remove the secret in a commit to the main branch.
- C. Update your dependencies.
- D. Archive the repository.
Answer: A
Explanation:
The first step when you receive a secret scanning alert is to revoke the secret if it is still valid. This ensures the secret can no longer be used maliciously. Only after revoking it should you proceed to remove it from the code history and apply other mitigation steps.
Simply deleting the secret from the code does not remove the risk if it hasn't been revoked - especially since it may already be exposed in commit history.
NEW QUESTION # 34
Which of the following Watch settings could you use to get Dependabot alert notifications? (Each answer presents part of the solution. Choose two.)
- A. The All Activity setting
- B. The Custom setting
- C. The Ignore setting
- D. The Participating and @mentions setting
Answer: A,B
Explanation:
Comprehensive and Detailed Explanation:
To receive Dependabot alert notifications for a repository, you can utilize the following Watch settings:
Custom setting: Allows you to tailor your notifications, enabling you to subscribe specifically to security alerts, including those from Dependabot.
All Activity setting: Subscribes you to all notifications for the repository, encompassing issues, pull requests, and security alerts like those from Dependabot.
The Participating and @mentions setting limits notifications to conversations you're directly involved in or mentioned, which may not include security alerts. The Ignore setting unsubscribes you from all notifications, including critical security alerts.
GitHub Docs
+1
GitHub Docs
+1
NEW QUESTION # 35
A secret scanning alert should be closed as "used in tests" when a secret is:
- A. In a test file.
- B. Not a secret in the production environment.
- C. In the readme.md file.
- D. Solely used for tests.
Answer: D
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 its purpose is purely for testing.
NEW QUESTION # 36
Which of the following features helps to prioritize secret scanning alerts that present an immediate risk?
- A. Secret validation
- B. Push protection
- C. Non-provider patterns
- D. Custom pattern dry runs
Answer: A
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.
NEW QUESTION # 37
When configuring code scanning with CodeQL, what are your options for specifying additional queries? (Each answer presents part of the solution. Choose two.)
- A. Packs
- B. Scope
- C. Queries
- D. github/codeql
Answer: A,C
Explanation:
You can customize CodeQL scanning by including additional query packs or by specifying individual queries:
Packs: These are reusable collections of CodeQL queries bundled into a single package.
Queries: You can point to specific files or directories containing .ql queries to include in the analysis.
github/codeql refers to a pack by name but is not a method or field. Scope is not a valid field used for configuration in this context.
NEW QUESTION # 38
Which CodeQL query suite provides queries of lower severity than the default query suite?
- A. security-extended
- B. github/codeql/cpp/ql/src@main
- C. github/codeql-go/ql/src@main
Answer: A
Explanation:
The security-extended query suite includes additional CodeQL queries that detect lower severity issues than those in the default security-and-quality suite.
It's often used when projects want broader visibility into code hygiene and potential weak spots beyond critical vulnerabilities.
The other options listed are paths to language packs, not query suites themselves.
NEW QUESTION # 39
What does code scanning do?
- A. It analyzes a GitHub repository to find security vulnerabilities
- B. It prevents code pushes with vulnerabilities as a pre-receive hook
- C. It contacts maintainers to ask them to create security advisories if a vulnerability is found
- D. It scans your entire Git history on branches present in your GitHub repository for any secrets
Answer: A
Explanation:
Code scanning is a static analysis feature that examines your source code to identify security vulnerabilities and coding errors. It runs either on every push, pull request, or a scheduled time depending on the workflow configuration.
It does not automatically contact maintainers, scan full Git history, or block pushes unless explicitly configured to do so.
NEW QUESTION # 40
Where can you view code scanning results from CodeQL analysis?
- A. The repository's code scanning alerts
- B. At Security advisories
- C. A CodeQL database
- D. A CodeQL query pack
Answer: A
Explanation:
All results from CodeQL analysis appear under the repository's code scanning alerts tab. This section is part of the Security tab and provides a list of all current, fixed, and dismissed alerts found by CodeQL.
A CodeQL database is used internally during scanning but does not display results. Query packs contain rules, not results. Security advisories are for published vulnerabilities, not per-repo findings.
NEW QUESTION # 41
......
Microsoft GH-500 Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
| Topic 4 |
|
| Topic 5 |
|
GH-500 Premium Files Practice Valid Exam Dumps Question: https://www.examprepaway.com/Microsoft/braindumps.GH-500.ete.file.html
Get 100% Real GH-500 Accurate & Verified Answers As Seen in the Real Exam!: https://drive.google.com/open?id=1InkhNKiAwjneXp_sJGQNjbGiBl_DDeJm