Question 310
A systems engineer has checked: Inspect which process produces standard output and which process consumes standard input. The reported failure is: A backup script uses a pipeline but the administrator incorrectly expects the second command to process a saved file. Which corrective step should follow?
Explanation
Correct Answer
The change that addresses the reported condition is to connect the producer's output to the consumer using a shell pipeline without unnecessary intermediate files. The host problem is: A backup script uses a pipeline but the administrator incorrectly expects the second command to process a saved file. The supporting evidence is to inspect which process produces standard output and which process consumes standard input. Check success by verifying that the downstream filter receives the expected records directly from the preceding command. 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 confirming that connect the producer's output to the consumer using a shell pipeline without unnecessary intermediate files.
Enable suitable pipeline failure detection and preserve diagnostic output for the failed producer. This assesses suitable pipeline failure detection and preserve diagnostic output for the failed producer; it does not determine the reported condition—inspect which process produces standard output and which process consumes standard input.
Write the reviewed transformation back to the intended file with controlled backup handling. The case-specific requirement is confirming that connect the producer's output to the consumer using a shell pipeline without unnecessary intermediate files, which that option does not establish.