Question 760
Following lab verification, document the preventive or persistence-oriented procedure for: An incident report contains both `ERROR` and `error`, but the investigation intentionally needs case-insensitive matching. Which practice is most suitable?
Explanation
Correct Answer
Document expected casing and include known positive cases when testing log filters. This guards against recurrence of: Default `grep` matching is case-sensitive unless an ignore-case option is selected. Confirm the lab's final state by: Output includes both capitalizations and line numbers, enabling source inspection.
Incorrect Answers
Specify desired age semantics and verify test timestamps before automating maintenance. That control is best suited to a separate scenario: A large fixture tree has many similarly named files; an operator must find only files updated during the last day. It is not the best safeguard for the current mechanism: Default `grep` matching is case-sensitive unless an ignore-case option is selected.
Maintain per-operator SSH keys and revoke retired keys instead of sharing passwords. That control is best suited to a separate scenario: Two lab hosts need noninteractive operator access and password prompts interrupt file-copy automation. It is not the best safeguard for the current mechanism: Default `grep` matching is case-sensitive unless an ignore-case option is selected.
Check effective identity and environment before privileged operations, then return to a normal account. That control is best suited to a separate scenario: A student becomes root with `su` but finds the previous user's PATH and working directory still active during an administrative test. It is not the best safeguard for the current mechanism: Default `grep` matching is case-sensitive unless an ignore-case option is selected.