nerdexam
MicrosoftMicrosoft

GH-500 · Question #24

GH-500 Question #24: Real Exam Question with Answer & Explanation

The correct answer is D: to scan and block the code that contains secrets before it reaches the repository. {"question_number": 9, "question": "What is the purpose of push protection?", "correct_answer": "D. to scan and block the code that contains secrets before it reaches the repository", "explanation": "Push protection intercepts a git push at the moment it occurs - before the commi

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

Explanation

{"question_number": 9, "question": "What is the purpose of push protection?", "correct_answer": "D. to scan and block the code that contains secrets before it reaches the repository", "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).", "generated_by": "claude-sonnet", "llm_judge_score": 4}

Topics

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

Community Discussion

No community discussion yet for this question.

Full GH-500 PracticeBrowse All GH-500 Questions