Question 670
A lab administrator is preparing to fix: A scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report. Which proposed operation addresses that specific need?
Explanation
Correct Answer
The change that addresses the reported condition is to use append redirection for additional report lines while retaining any required rotation policy. The host problem is: A scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report. The supporting evidence is to inspect the script's stdout redirection and the report file's modification history. Check success by verifying that two consecutive checks leave both timestamped lines available in the report. The fix should be persistent where the task requires it.
Incorrect Answers
Add an explicit stderr redirection to a controlled error log without hiding useful diagnostics. The alternative concerns adding an explicit stderr redirection to a controlled error log without hiding useful diagnostics, not using append redirection for additional report lines while retaining any required rotation policy.
Connect the producer's output to the consumer using a shell pipeline without unnecessary intermediate files. This assesses connect the producer's output to the consumer using a shell pipeline without unnecessary intermediate; it does not determine the reported condition—a scheduled health check appends a status line with a single greater-than redirect and erases the previous day's report.
Enable suitable pipeline failure detection and preserve diagnostic output for the failed producer. The case-specific requirement is using append redirection for additional report lines while retaining any required rotation policy, which that option does not establish.