[Configure and Use Code Scanning]After investigating a code scanning alert related to injection, you determine that the input is properly sanitized using custom logic. What should be your next step?
Answer(s): D
When you identify that a code scanning alert is a false positive--such as when your code uses a custom sanitization method not recognized by the analysis--you should dismiss the alert with the reason "false positive." This action helps improve the accuracy of future analyses and maintains the relevance of your security alerts.As per GitHub's documentation:"If you dismiss a CodeQL alert as a false positive result, for example because the code uses a sanitization library that isn't supported, consider contributing to the CodeQL repository and improving the analysis."By dismissing the alert appropriately, you ensure that your codebase's security alerts remain actionable and relevant.
[Configure and Use Dependency Management]When does Dependabot alert you of a vulnerability in your software development process?
Answer(s): B
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.
GitHub Docs About Dependabot alerts; Managing alerts in GitHub Dependabot
[Configure and Use Dependency Management]Which of the following is the most complete method for Dependabot to find vulnerabilities in third- party dependencies?
Answer(s): C
Dependabot builds a dependency graph by analyzing package manifests and lockfiles in your repository. This graph includes both direct and transitive dependencies. It then compares this graph against the GitHub Advisory Database, which includes curated, security-reviewed advisories.This method provides a comprehensive and automated way to discover all known vulnerabilities across your dependency tree.
GitHub Docs About the dependency graph; About Dependabot alerts
[Describe the GHAS Security Features and Functionality]What is a security policy?
A security policy is defined by a SECURITY.md file in the root of your repository or .github/ directory. This file informs contributors and security researchers about how to responsibly report vulnerabilities. It improves your project's transparency and ensures timely communication and mitigation of any reported issues.Adding this file also enables a "Report a vulnerability" button in the repository's Security tab.
GitHub Docs Adding a security policy to your repository
Post your Comments and Discuss GitHub GitHub-Advanced-Security exam prep with other Community members:
We’re offering these study questions to support your success. The least you can do? Drop a useful comment about each question. Help others. Build the community.