HOTSPOT (Drag and Drop is not supported)You have a GitHub Enterprise Cloud Organization that uses GitHub Code Security.You need to create a security campaign to remediate cross-site scripting (XSS) vulnerabilities identified by code scanning. The campaign must meet the following requirements:-Include only alerts that support automatic remediation.-Include only alerts associated with cross-site scripting (CWE-79).-Enable eligible security administrators to manage and track the campaign.How should you configure the campaign? To answer, select the appropriate options in the answer area.Note: Each correct selection is worth one point.Hot Area:
Answer(s): A
Box 1: cwe:79 autofix:supportedTo target code scanning alerts for your security campaign that specifically associate with cross-site scripting (CWE-79) and support automatic remediation via Copilot Autofix, you should use the following alert selection filter string:To narrow your security campaign to exactly what you need, use the following syntax in the search/filter bar: cwe:79 autofix:supportedBox 2: Select organization owners or security managers as campaign managers.To configure campaign managers for a security campaign in a GitHub Enterprise Cloud Organization, you must grant the eligible administrators either the Organization Owner role or the Security Manager role. Only users assigned to these specific roles have the mandatory, organization-wide administrative privileges required to create, manage, and track security campaigns.
https://docs.github.com/en/code-security/tutorials/secure-your-organization/best-practice-fix-alerts-at-scale https://docs.github.com/en/enterprise-cloud@latest/code-security/tutorials/secure-your-organization/best-practi ce-fix-alerts-at-scale
Which security feature shows a vulnerable dependency in a pull request?
Configuring the dependency review actionYou can use the dependency review action to catch vulnerabilities before they are added to your project.About the dependency review actionThe "dependency review action" refers to the specific action that can report on differences in a pull request within the GitHub Actions context, and add enforcement mechanisms to the GitHub Actions workflow.The dependency review action scans your pull requests for dependency changes and raises an error if any new dependencies have known vulnerabilities. The action is supported by an API endpoint that compares the dependencies between two revisions and reports any differences.
https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/confi guring-the-dependency-review-action
Which of the following dependencies could trigger a Dependabot alert? Each answer presents a complete solution. (Choose two.)
Answer(s): B,D
[B]A Dependabot direct dependency is a package or library that your project explicitly lists and requires in its manifest file (like package.json or Gemfile). Dependabot specifically focuses on these direct dependencies, creating automated pull requests to update them to newer, more secure, or stable versions, helping to keep your project's dependencies up-to-date and prevent security vulnerabilities.[D]Direct dependencies may have their own dependencies, which are referred to as transitive dependencies or indirect dependencies.Locked Files and DependenciesA locked file in software development is a file that records the exact versions of all dependencies (both direct and transitive) used in a project at a specific point in time. It acts as a snapshot of the dependency graph, ensuring that the project builds consistently with the same versions across different environments.
https://docs.github.com/en/code-security/dependabot/dependabot-alerts/about-dependabot-alerts https://www.arnica.io/blog/direct-vs-transitive-dependencies-navigating-package-management-in-software-com position-analysis-sca
As a repository owner, you want to receive specific notifications, including security alerts, for an individual repository. Which repository notification setting should you use?
Using the Custom setting allows you to subscribe to specific event types, such as Dependabot alerts or vulnerability notifications, without being overwhelmed by all repository activity. This is essential for repository maintainers who need fine-grained control over what kinds of events trigger notifications.This setting is configurable per repository and allows users to stay aware of critical issues while minimizing notification noise.Note: Configuring your watch settings for an individual repositoryYou can choose whether to watch or unwatch an individual repository. You can also choose to only be notified of certain event types such as issues, pull requests, releases, security alerts, or discussions (if enabled for the repository), or completely ignore an individual repository.1.On GitHub, navigate to the main page of the repository.2. In the upper-right corner, select the "Watch" drop-down menu, then click a watch option.If you want to further customize notifications, click Custom, then select specific events that you want to be notified of, such as Issues or Pull Requests, in addition to participating and @mentions.For example, if you select "Issues", you will be notified about, and subscribed to, updates on every issue (including those that existed prior to you selecting this option) in the repository. If you're @mentioned in a pull request in this repository, you'll receive notifications for that too, and you'll be subscribed to updates on that specific pull request, in addition to being notified about issues.
https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications#configuring-your-watch-settings-for-an-individual-repository
Where can you find the vulnerable dependencies that GitHub detected in your repository?
Answer(s): D
Identifying vulnerabilities in your project's dependencies with Dependabot alertsDependabot generates Dependabot alerts when known vulnerabilities are detected in dependencies that your project uses.Dependabot alerts tabIf GitHub discovers insecure dependencies in your project, you can view details on the Dependabot alerts tab of your repository. Then, you can update your project to resolve or dismiss the alert.
https://docs.github.com/en/code-security/dependabot/dependabot-alerts
Post your Comments and Discuss Microsoft GH-500 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the GH-500 content, but please register or login to continue.