Question 110
A RHEL 10 operator runs `printf "%s\n" alpha-34 beta-5 | grep "beta"`. A review considers `Save standard error in a new file` as an alternative. Its relevant behavior is: A pipeline does not send standard error to a file; that would require an explicit 2> redirection. That is a different result from the requested operation. As an additional operational boundary, `Redirect only the second command’s errors` must also be excluded because its documented effect is: The pipe joins standard output and standard input; it does not itself redirect grep standard error. The stated task is to interpret the output or stream behavior of the displayed command. The effect above does not perform that specific. Which listed command satisfies the original requirement without substituting this other behavior?
Explanation
Correct Answer
The pipe connects the first command’s standard output to grep standard input; grep then filters lines containing beta. This matches the stated requirement to interpret the output or stream behavior of the displayed command. By contrast, the plausible alternative `Save standard error in a new file` has the effect: A pipeline does not send standard error to a file; that would require an explicit 2> redirection; that operation would not achieve the requested result. The correct action is scoped to A RHEL 10 operator runs `printf "%s\n" alpha-34 beta-5 | grep "beta"`, which is the object or case specified by the scenario.
Incorrect Answers
A pipeline does not send standard error to a file; that would require an explicit 2> redirection. The stated task is to interpret the output or stream behavior of the displayed command. Instead, `Send the first command’s standard output into grep` is the relevant alternative because the pipe connects the first command’s standard output to grep standard input; grep then filters lines containing beta. On the case resource A RHEL 10 operator runs `printf "%s\n" alpha-34 beta-5 | grep "beta"`, this is still not the requested operation; `Send the first command’s standard output into grep` provides the specified effect.
The pipe sends data to grep rather than appending lines through >> to a regular file. The stated task is to interpret the output or stream behavior of the displayed command. Instead, `Send the first command’s standard output into grep` is the relevant alternative because the pipe connects the first command’s standard output to grep standard input; grep then filters lines containing beta. On the case resource A RHEL 10 operator runs `printf "%s\n" alpha-34 beta-5 | grep "beta"`, this is still not the requested operation; `Send the first command’s standard output into grep` provides the specified effect.
The pipe joins standard output and standard input; it does not itself redirect grep standard error. The stated task is to interpret the output or stream behavior of the displayed command. Instead, `Send the first command’s standard output into grep` is the relevant alternative because the pipe connects the first command’s standard output to grep standard input; grep then filters lines containing beta. On the case resource A RHEL 10 operator runs `printf "%s\n" alpha-34 beta-5 | grep "beta"`, this is still not the requested operation; `Send the first command’s standard output into grep` provides the specified effect.






Red Hat Certified System Administrator (RHCSA) (EX200) Practice Tests