nerdexam
Microsoft

GH-500 · Question #24

What is the purpose of push protection?

The correct answer is D. to scan and block the code that contains secrets before it reaches the repository. Push protection intercepts a git push at the moment it occurs - before the commit is stored in the repository - and blocks it if a secret is detected. The developer is notified and must either remove the secret or explicitly bypass the protection. This is a preventive control…

Secret Scanning

Question

What is the purpose of push protection?

Options

  • Ato scan and block the code that contains vulnerabilities before it reaches the repository
  • Bto validate the push by the code owner
  • Cto define license requirements for the repository
  • Dto scan and block the code that contains secrets before it reaches the repository

How the community answered

(48 responses)
  • A
    4% (2)
  • C
    2% (1)
  • D
    94% (45)

Explanation

Push protection intercepts a git push at the moment it occurs - before the commit is stored in the repository - and blocks it if a secret is detected. The developer is notified and must either remove the secret or explicitly bypass the protection. This is a preventive control, stopping exposure at the source. It does not scan for code vulnerabilities (answer A), validate code ownership (answer B), or manage licensing (answer C).

Topics

#push protection#secret scanning#secrets detection#pre-commit scanning

Community Discussion

No community discussion yet for this question.

Full GH-500 Practice