Question 500
A server operations team encounters the following situation: A PowerShell report compares disk free-space percentage as a string, producing the wrong threshold decision for values such as 9 and 12. Which sustained operational control best reduces the likelihood of this same issue recurring?
Explanation
Correct Answer
This control targets the underlying recurrence risk: Lexical string comparison is not equivalent to numerical threshold evaluation. It builds validation into the affected workflow and supports the expected recovery result: Boundary test cases classify both values correctly.
Incorrect Answers
This control addresses a different scenario: A Python-style inventory description is pasted into a Bash variable assignment and the script fails because string values contain unquoted spaces. That event's root mechanism was script languages differ in data-type declarations and tokenization. The described incident instead arises from: Lexical string comparison is not equivalent to numerical threshold evaluation.
This control addresses a different scenario: A monitoring script loops forever while a service is unavailable, consuming a CPU core and generating thousands of duplicate alerts. That event's root mechanism was an unbounded loop lacks termination and alert suppression conditions. The described incident instead arises from: Lexical string comparison is not equivalent to numerical threshold evaluation.
This control addresses a different scenario: A shutdown script stops the database before an application is allowed to flush queued transactions, leading to lost work during planned maintenance. That event's root mechanism was service stop ordering ignores upstream application state. The described incident instead arises from: Lexical string comparison is not equivalent to numerical threshold evaluation.