Question 1
Topic: Understand and use essential tools
Skill tested: Use SSH, grep, and redirection to filter a remote log and save matching lines locally.
An operations engineer must collect every line containing the case-sensitive string `timeout` from `/var/log/edge.log` on `edge01`. The source log must remain unchanged, and the filtered results must be saved as `/srv/cases/edge-timeouts.txt` on the engineer's current host. SSH access is already configured, and the destination directory exists. Which command performs the task without copying the entire remote log first?
The remote shell runs `grep` against the remote log and writes matching lines to standard output. The local shell receives that output through SSH, and its `>` redirection creates or replaces the destination file on the engineer's host. The source log is only read. In B, the redirection is inside the remote command, so it writes to a path on `edge01`, not locally. C treats an SSH-style path as a local grep operand. D redirects output back into the remote source log and risks corrupting it.