Question 890
During an operational security assessment at a public-sector technology agency, the team documents this issue: A credential rotation is declared complete while the leaked old token can still authenticate. The affected delivery process supports citizen applications and reusable infrastructure; accountability and service availability depend on controlled delivery. Which TWO responses form a sound implementation-and-verification pair for this issue? (Select TWO.)
Explanation
Correct Answers
Correct corrective action. Use GitHub secret scanning and push protection with controlled bypass review, plus revoke and rotate any credential that has already leaked. The action targets the recorded failure (A credential rotation is declared complete while the leaked old token can still authenticate), and is intended to reduce the corresponding risk: Detecting a secret after publication is insufficient while the credential remains usable in history or forks.
Correct verification. An intentionally synthetic secret is blocked during push and a previously exposed test credential is revoked and removed from authorized access. The measurement or controlled test provides evidence for the issue (A credential rotation is declared complete while the leaked old token can still authenticate) and complements the selected corrective action rather than simply repeating a recommendation.
Incorrect Answers
Connect supported DevOps repositories to Microsoft Defender for Cloud DevOps Security and evaluate findings in the correct subscription and project context. It is not the complementary risk control for GitHub secret scanning and push protection.
A known vulnerable dependency produces an attributable alert and an approved update restores the tested safe dependency graph. The GitHub secret scanning and push protection implementation and safeguard are still missing.
Enable CodeQL analysis in supported repositories and workflows with appropriate language configuration and actionable findings before merge. The two-part GitHub secret scanning and push protection control remains unsatisfied.