GITHUB-ADVANCED-SECURITY practice question 4 of 15
– [Configure and Use Secret Scanning] What is a prerequisite to define a custom pattern for a repository?
Full set: 75 questionsCustom patterns are an extension of the core secret scanning functionality within GitHub Advanced Security. The ability to define, configure, and use these custom patterns is contingent upon the base secret scanning feature being active. Therefore, enabling secret scanning for the repository (or organization) is the fundamental prerequisite before you can proceed with defining any custom detection rules. Without the core service running, there is no mechanism to process or apply the custom patterns.
A. Changing repository visibility is not a prerequisite. Custom patterns can be defined for any repository where GitHub Advanced Security is enabled, which includes private and internal repositories.
B. Closing other secret scanning alerts is an unrelated administrative task. The state of existing alerts has no bearing on the ability to configure new detection patterns.
C. Specifying additional match criteria is a step within the process of defining a custom pattern, not a prerequisite to starting that process.
1. GitHub Docs, "Defining custom patterns for secret scanning." In the introductory section, the documentation explicitly states: "Before you can define a custom pattern for secret scanning, you must enable secret scanning for your repository or organization." This directly confirms that enabling the feature is the primary prerequisite.
2. GitHub Docs, "Managing security and analysis settings for your repository." This document outlines the process for enabling or disabling GitHub Advanced Security features. Under the "Enabling or disabling security and analysis features" section, it shows that "GitHub Advanced Security" must be enabled, which in turn allows for the configuration of its components like "Secret scanning." This establishes the enabling step as the gateway to further configuration.
3. GitHub Docs, "About secret scanning." The section "About custom patterns for secret scanning" describes custom patterns as a feature that builds upon the existing secret scanning service, reinforcing that the base service must be active first.
Keep practicing
Take the free GITHUB-ADVANCED-SECURITY practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other GITHUB-ADVANCED-SECURITY practice questions
- Question 1– [Use Code Scanning with CodeQL] When using CodeQL, what extension stores query suite de…
- Question 2– [Configure and Use Secret Scanning] What happens when you enable secret scanning on a p…
- Question 3– [Configure and Use Dependency Management] A dependency has a known vulnerability. What …
- Question 5– [Describe the GHAS Security Features and Functionality] What is a security policy?
- Question 6– [Configure GitHub Advanced Security Tools in GitHub Enterprise] What role is required t…
- Question 7– [Configure and Use Code Scanning] Who can fix a code scanning alert on a private reposi…
