Question 200
A tester is asked to recommend a response to: A test inventory should select systems that are both in the approved lab OU and enabled, but the script accidentally uses OR and includes disabled accounts. Which approach best addresses the stated condition?
Explanation
Correct Answer
Change the filter to require both authorized OU membership and enabled state. The authorized fictional case states: A test inventory should select systems that are both in the approved lab OU and enabled, but the script accidentally uses OR and includes disabled accounts. The underlying principle is that boolean predicate logic determines enumeration scope and can accidentally expand testing. This is the strongest authorized corrective step or controlled test for this specific scenario because it addresses the documented trust boundary and constraints, rather than merely another possible security consideration. The recommended step follows from: An OR condition broadens this filter beyond the intended intersection. Its success can be checked by this concrete outcome: Unit tests include only users meeting both conditions and exclude the others.
Incorrect Answers
Correct API inventory automation handles pagination and rate limits without unnecessary load. The reason this does not settle the present case is the actual condition: An OR condition broadens this filter beyond the intended intersection.
Shell quoting and array handling preserve data boundaries during script automation. The current corrective requirement is: Change the filter to require both authorized OU membership and enabled state.
Data normalization and sets can remove duplicates before bounded enumeration. The appropriate acceptance check is: Unit tests include only users meeting both conditions and exclude the others.