nerdexam
MicrosoftMicrosoft

GH-100 · Question #11

GH-100 Question #11: Real Exam Question with Answer & Explanation

Sign in or unlock GH-100 to reveal the answer and full explanation for question #11. The question stem and answer options stay visible for context.

Enable secure software development and ensure compliance

Question

You discover that a secret (e.g., a token or password) was accidentally committed to a GitHub repository. What is the first step you should take to mitigate the risk?

Options

  • AContact GitHub Support to remove the secret from all forks and clones of the repository.
  • BRevoke and/or rotate the secret to render it unusable, then assess whether history rewriting is
  • CRewrite the repository history using git filter-repo or BFG Repo-Cleaner to remove the secret from
  • DDelete the repository and create a new one to ensure the secret is no longer accessible.

Unlock GH-100 to see the answer

You've previewed enough free GH-100 questions. Unlock GH-100 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Secret management#Incident response#Repository security#Data leak mitigation
Full GH-100 PracticeBrowse All GH-100 Questions