Question 530
A Linux administrator evaluates: A reviewer wants to roll back one risky commit without removing unrelated later improvements. Select TWO complementary answers: the most suitable corrective action AND the evidence proving it worked.
Explanation
Correct Answers
The observed Linux condition is: A reviewer wants to roll back one risky commit without removing unrelated later improvements. The recommended direct administrative response is: Use reviewed Git revert or other history-preserving corrective workflow for shared branches, and prevent secrets from being tracked through appropriate controls. The relevant failure or security risk is: Force-resetting published history or adding credentials to Git can break collaborators and expose reusable secrets in prior commits. Validate success with: A new corrective commit restores the intended configuration and secret scanning finds no active credential in tracked content.
For the specific observation (A reviewer wants to roll back one risky commit without removing unrelated later improvements), the acceptance evidence is: A new corrective commit restores the intended configuration and secret scanning finds no active credential in tracked content. This verifies the action (Use reviewed Git revert or other history-preserving corrective workflow for shared branches, and prevent secrets from being tracked through appropriate controls.) rather than merely proving that an unrelated Linux tool works. It also addresses the known risk: Force-resetting published history or adding credentials to Git can break collaborators and expose reusable secrets in prior commits.
Incorrect Answers
Safe Bash parameter expansion and quoting (4.2) would demonstrate or implement: Unquoted paths with whitespace or empty variables can split arguments, select unintended files or target a dangerous default. This choice can be useful for that problem, but it does not establish the Git safe rollback and protected secrets control being assessed here.
Safe loops and file names in Bash (4.2) would demonstrate or implement: A test directory with spaces and unusual characters processes the intended set of files exactly once. This case instead tests Git safe rollback and protected secrets; the choice measures or changes another part of the system.
Python virtual environments and dependencies (4.3) addresses another technical failure: Installing packages globally can break OS-managed Python tools or cause incompatible versions between applications. The paired-answer requirement concerns Git safe rollback and protected secrets; this alternative does not provide the matching intervention and separate acceptance evidence.