Question 11
Choose 1
Match the text-processing task to its tool.
Search matching log lines
Extract a JSON field
Print whitespace-delimited fields
Search matching log lines
Extract a JSON field
Print whitespace-delimited fields
Supplied source solution: Search matching log lines -> A. grep; Extract a JSON field -> C. jq; Print whitespace-delimited fields -> B. awk
Explanation:
Searching matching log lines maps to A, grep, because it selects lines containing a pattern. Extracting a JSON field maps to C, jq, which understands JSON values and property access. Printing whitespace-delimited fields maps to B, awk, which provides field references such as $2. The appropriate tool depends on the data structure being processed. Import review: The source solution is preserved above. The sample does not establish the application's ColumnMatch answer representation, so the existing answer-storage fields remain unchanged.
Why the other options are incorrect:
Not applicable: the supplied items are sequence steps or matching choices, rather than incorrect distractors.
References:
GNU grep: matching lines
GNU awk: fields
jq manual: filters and iteration
Explanation:
Searching matching log lines maps to A, grep, because it selects lines containing a pattern. Extracting a JSON field maps to C, jq, which understands JSON values and property access. Printing whitespace-delimited fields maps to B, awk, which provides field references such as $2. The appropriate tool depends on the data structure being processed. Import review: The source solution is preserved above. The sample does not establish the application's ColumnMatch answer representation, so the existing answer-storage fields remain unchanged.
Why the other options are incorrect:
Not applicable: the supplied items are sequence steps or matching choices, rather than incorrect distractors.
References:
GNU grep: matching lines
GNU awk: fields
jq manual: filters and iteration