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.)
Answer(s): A,D
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.
https://docs.github.com/en/code-security/dependabot/dependabot-alerts/configuring-notifications-for-dependab ot-alerts
When using CodeQL, how does extraction for compiled languages work?
Answer(s): B
For compiled languages, CodeQL performs extraction bymonitoring 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.
https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql -code-scanning-for-compiled-languages
Where can you use CodeQL analysis for code scanning? Each answer presents part of the solution. (Choose two.)
Answer(s): B,C
In a workflow: GitHub Actions workflows are the most common place for CodeQL code scanning. The codeql-analysis.yml defines how the analysis runs and when it triggers.In an external CI system: GitHub allows you to run CodeQL analysis outside of GitHub Actions. Once complete, the results can be uploaded using the upload-sarif action to make alerts visible in the repository.You cannot run or trigger analysis from third-party repositories directly, and the Files changed tabin pull requests only shows diff — not analysis results.
https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/using-code-scanning-with-your-existing-ci-system
What is the purpose of push protection?
Answer(s): D
When you upload, create, or edit files from the GitHub UI, push protection prevents you from accidentally committing secrets to a repository by blocking commits containing supported secrets. GitHub will also block the commit if you attempt to upload files containing supported secrets.
https://docs.github.com/en/code-security/secret-scanning/working-with-secret-scanning-and-push-protection/w orking-with-push-protection-in-the-github-ui
Which of the following Watch settings could you use to get Dependabot alert notifications? Each answer presents part of the solution. (Choose two.)
Answer(s): B,D
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.
https://docs.github.com/en/account-and-profile/managing-subscriptions-and-notifications-on-github/setting-up-notifications/configuring-notifications
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.