nerdexam
Microsoft

GH-500 · Question #99

Which details do you have to provide to create a custom pattern for secret scanning? Each answer presents part of the solution. (Choose two.)

The correct answer is A. the secret format C. the name of the pattern. Creating a custom pattern requires exactly two mandatory inputs: (A) the secret format, typically expressed as a regular expression that defines what the secret looks like, and (C) a name for the pattern so it can be identified in alerts. Additional match requirements…

Configure and use secret scanning

Question

Which details do you have to provide to create a custom pattern for secret scanning? Each answer presents part of the solution. (Choose two.)

Exhibit

GH-500 question #99 exhibit

Options

  • Athe secret format
  • Ba list of repositories to scan
  • Cthe name of the pattern
  • Dadditional match requirements for the secret format

How the community answered

(51 responses)
  • A
    88% (45)
  • B
    8% (4)
  • D
    4% (2)

Explanation

Creating a custom pattern requires exactly two mandatory inputs: (A) the secret format, typically expressed as a regular expression that defines what the secret looks like, and (C) a name for the pattern so it can be identified in alerts. Additional match requirements (before/after context, additional regex) are optional refinements, and specifying a list of repositories to scan is not part of pattern creation - patterns are applied at the repository or organization level where they are defined.

Topics

#Secret Scanning#Custom Patterns#Configuration#GitHub Advanced Security

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice