scenario
medium
Analyze
debug-pipeline
2 points
Question 44. CSCD240-E1-C
cat access.log | grep admin | wc -l returns 0 when log has admin hits. Two reasons?
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
(1) Wrong case: log has "Admin" or "ADMIN" — grep without -i misses. (2) access.log is empty/not populated yet, or path is wrong — cat produces 0 lines.
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
Only one reason
Misconception. Missing alternative hypotheses.
Remedy. Teach systematic debugging.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
CS-511 Cyber Defense Analyst
DCWF tasks:
T0259
KU outcomes:
CO-M9-O1
Course-artifact links
Lectures
- CSCD240-S26-L08. Pipes, filters, grep, sort, uniq, wc, tar