GitHub Advanced Security GH-500 Exam Dumps & Practice Test
GitHub Advanced Security Questions 56–60 (page: 13)

Updated On: 16-Nov-2026

You have a GitHub repository named Repo1 that runs CodeQL code scanning. Repo1 contains both Java and Kotlin source code. Repo1 generates additional source files during compilation.
Recent alerts indicate that Kotlin files cannot be processed without a build.
You need to ensure that CodeQL analyzes both the Java files and the Kotlin files and includes the generated source files in the CodeQL database.
What should you do?

  1. Set the CodeQL build mode to none.
  2. Set the CodeQL build mode to autobuild.
  3. Set the CodeQL build mode to manual.
  4. Add Kotlin to the CodeQL languages list.

Answer(s): D

Explanation:

To fix this issue, you must switch your CodeQL workflow execution configuration from using the default "none" build mode to a manual build step configuration. For repositories that mix Java and Kotlin alongside dynamic code generation during compilation, explicit build commands ensure CodeQL intercepts the compilation process to catalog the generated source files and analyze the Kotlin files completely.
Update the CodeQL Initialization Language Matrix
Ensure CodeQL treats both languages as unified by specifying java-kotlin inside your initialization step.
Update the languages parameter in the github/codeql-action/init step.Use java-kotlin instead of java to instruct the extractor to capture both source formats.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: 'java-kotlin'
# Optional: explicitly tell CodeQL not to run default build-mode none build-mode: 'manual'


Reference:

https://docs.github.com/en/code-security/reference/code-scanning/troubleshoot-analysis-errors/kotlin-detected-in-no-build



What kind of repository permissions do you need to request a Common Vulnerabilities and Exposures (CVE) identification number for a security advisory?

  1. Maintain
  2. Write
  3. Triage
  4. Admin

Answer(s): D

Explanation:

Anyone with admin permissions to a security advisory can request a CVE identification number.


Reference:

https://docs.github.com/en/code-security/security-advisories/working-with-repository-security-advisories/about-repository-security-advisories



Which of the following tasks can be performed by a security team as a proactive measure to help address secret scanning alerts? Each answer presents a complete solution. (Choose two.)

  1. Enable system for cross-domain identity management (SCIM) provisioning for the enterprise.
  2. Document alternatives to storing secrets in the source code.
  3. Dismiss alerts that are older than 90 days.
  4. Configure a webhook to monitor for secret scanning alert events.

Answer(s): D

Explanation:

[D] Integrate Secret Scanning into the Development Lifecycle:
*-> Pre-commit hooks:
Implement pre-commit hooks in version control systems to scan code for secrets before they are even committed.
[B] Implement a Comprehensive Secret Scanning Policy:
Define Secrets: Clearly define what constitutes a secret within your organization.
Scanning Scope: Specify which environments and repositories need to be scanned and how often. Roles and Responsibilities: Define roles and responsibilities for managing secret scanning and remediation.
Incorrect:
[A] You can manage the lifecycle of your enterprise's user accounts from your identity provider (IdP) using System for Cross-domain Identity Management (SCIM).


Reference:

https://soteri.io/blog/secret-scanning-tools-for-the-sdlc



DRAG DROP (Drag and Drop is not supported)
You have a GitHub Enterprise Server instance named Server1 that contains multiple private repositories across six organizations. Server1 uses GitHub Advanced Security.
You need to enable code scanning on Server1. The solution must ensure that the organizations can enable code scanning at the organization or repository level.
Which three commands should you run in sequence? To answer, move the appropriate commands from the list of commands to the answer area and arrange them in the correct order.
Note: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select.
Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:




To enable code scanning on a GitHub Enterprise Server instance while allowing individual organizations to manage it at their own discretion, the following three commands must be run in sequence via SSH: ghe-config app.minio.enabled true ghe-config app.code-scanning.enabled true ghe-config-apply
Step 1: Run ghe-config app.minio.enabled true ghe-config app.minio.enabled true — Code scanning relies on an internal MinIO storage service to hold analysis data and CodeQL results. This command activates that prerequisite backend service.
Step 2: Run ghe-config app.code-scanning.enabled true ghe-config app.code-scanning.enabled true — This enables the overall code scanning capability at the appliance level. By doing this without explicitly overriding or forcing an enterprise-wide enforcement policy, organizations and individual repositories retain the rights to enable or disable it as needed.
Step 3: Run ghe-config-apply
Apply the configurations to the server appliance ghe-config-apply — This final command must be run to actively apply, initialize, and reload the server configuration with the new settings.


Reference:

https://docs.github.com/en/enterprise-server@3.21/code-security/how-tos/secure-at-scale/configure-enterprise -security/establish-complete-coverage/enabling-github-advanced-security-for-your-enterprise



Which of the following pre-defined roles is required to manage code scanning alerts in a repository?

  1. Maintain
  2. View
  3. Read
  4. Triage

Answer(s): C

Explanation:

Access requirements for security features
In this section, you can find the access required for security features, such as GitHub Advanced Security features.

Note: Repository roles for organizations
You can give organization members, outside collaborators, and teams of people different levels of access to repositories owned by an organization by assigning them to roles. Choose the role that best fits each person or team's function in your project without giving people more access to the project than they need.
From least access to most access, the roles for an organization repository are:
Read: Recommended for non-code contributors who want to view or discuss your project
Triage: Recommended for contributors who need to proactively manage issues, discussions, and pull requests without write access
Write: Recommended for contributors who actively push to your project
Maintain: Recommended for project managers who need to manage the repository without access to sensitive or destructive actions
Admin: Recommended for people who need full access to the project, including sensitive and destructive actions like managing security or deleting a repository
Note:


Reference:

https://docs.github.com/en/organizations/managing-user-access-to-your-organizations-repositories/managing-r epository-roles/repository-roles-for-an-organization



Viewing page 13 of 27
Viewing questions 56 - 60 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!