Question 130
A Linux administrator evaluates: A monitoring pipeline needs to capture both output streams without accidentally treating an error as normal data. Select TWO complementary answers: the most suitable corrective action AND the evidence proving it worked.
Explanation
Correct Answers
The observed Linux condition is: A monitoring pipeline needs to capture both output streams without accidentally treating an error as normal data. The recommended direct administrative response is: Direct standard output and standard error to their intended paths using shell redirection, and choose append or overwrite explicitly. The relevant failure or security risk is: Confusing 2> with > or using overwrite when append is required can lose evidence or hide errors. Validate success with: A controlled command writes successes and errors to the separate expected logs with the intended retention behavior.
For the specific observation (A monitoring pipeline needs to capture both output streams without accidentally treating an error as normal data), the acceptance evidence is: A controlled command writes successes and errors to the separate expected logs with the intended retention behavior. This verifies the action (Direct standard output and standard error to their intended paths using shell redirection, and choose append or overwrite explicitly.) rather than merely proving that an unrelated Linux tool works. It also addresses the known risk: Confusing 2> with > or using overwrite when append is required can lose evidence or hide errors.
Incorrect Answers
Rsync incremental backup and restoration verification (1.6) would demonstrate or implement: An unverified mirror or incorrectly placed trailing slash can back up the wrong directory structure or propagate deletions. The case states: A monitoring pipeline needs to capture both output streams without accidentally treating an error as normal data. The most direct paired action and test is: Direct standard output and standard error to their intended paths using shell redirection, and choose append or overwrite explicitly.
Tar archive creation and extraction integrity (1.6) would demonstrate or implement: The archive inventory matches the intended files and a test extraction reproduces them at the correct locations. The required paired action and test concerns Shell output redirection stdout stderr and append; a passing result for this alternative could leave that requirement unresolved.
Ext4 and XFS filesystem repair and growth distinctions (1.3) addresses another technical failure: Applying an ext4 repair or resize utility to an XFS volume, or repairing a mounted filesystem improperly, can fail or damage data. The paired-answer requirement concerns Shell output redirection stdout stderr and append; this alternative does not provide the matching intervention and separate acceptance evidence.