Free Microsoft GH-100 Actual Exam Questions - Question 11 Discussion

Question No. 11
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?
Select one option, then reveal solution.
US
FU
Farhan U.
2026-02-16

Maybe D is a bit extreme as a first step since deleting the repo won’t stop someone from having already cloned it or accessed the secret elsewhere. GitHub support can’t magically scrub all copies either. The priority should be to revoke or rotate the secret first so it can’t be used anymore, then deal with cleaning the history. So B still feels like the safest move to stop any immediate damage before worrying about history rewriting or repo deletion.

0
FU
Farhan U.
2026-02-16

B/C? Revoking the secret first is critical to stop any immediate misuse, then cleaning the history comes next to avoid exposure later. Deleting or contacting GitHub won’t stop current leaks quickly enough.

0
SM
Shah M.
2026-02-16

B/C? The secret needs to be invalidated immediately, so revoking first makes sense, but cleaning the history should follow quickly to avoid future exposure. Deleting or contacting GitHub seems less direct.

0
SM
Shah M.
2026-02-14

It’s B for me too. Even if you clean the repo history or delete it, anyone who already copied the secret can still use it. So the priority has to be revoking or rotating the secret first to prevent any damage. After that, you can think about cleaning history or other steps. Options like contacting GitHub or deleting the repo don’t immediately stop the leaked secret from being usable.

0
AJ
Amir J.
2026-02-11

B imo, revoking the secret cuts off any immediate damage. Cleaning history or deleting the repo won’t stop someone who already grabbed it, so rotating first is just safer.

0
AJ
Ahmed J.
2026-02-04

B. Rotating the secret is crucial because cleaning the repo alone doesn’t stop someone who already grabbed the token. You want to cut off access ASAP before worrying about history cleanup.

0
AJ
Ahmed J.
2026-02-03

B. Even if you clean the history or delete the repo, the secret could already be leaked. Rotating it right away is the only sure way to stop unauthorized access immediately.

0
AJ
Ahmed J.
2026-02-02

I see why B is popular, but wouldn’t starting with C prevent future accidental exposures in forks or clones? Or is the risk already too high before you can clean history?

0
AJ
Ahmed J.
2026-01-31

B. Revoking the secret immediately prevents misuse even if someone already copied it. Fixing history or other cleanup comes later to avoid further exposure.

0
FJ
Farhan J.
2026-01-31

B imo, because even if you clean the repo later, the secret might already be compromised. Revoking it first stops any damage right away before doing any cleanup.

0
AN
Ali N.
2026-01-26

Totally agree, revoking the secret first makes sure it can't cause damage. B

0
AN
Ali N.
2026-01-13

B is the way to go first—revoke or rotate the secret ASAP. Cleaning history or deleting repo comes after you make sure the secret can’t be used.

0