Cloud Security Logic Flaw: False Negative in Device Compliance
A security engineer is reviewing event logs because an employee successfully connected a personal Windows laptop to the corporate network, which is against company policy. Company policy allows all Windows 10 and 11 laptops to connect to the system as long as the MDM agent installed by IT is running. Only compliant devices can connect, and the logic in the system to evaluate compliant laptops is as follows:
Which of the following most likely occurred when the employee connected a personally owned Windows laptop and was allowed on the network?

Community Votes
91% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
The exam tests your ability to trace conditional logic in code; the trap is assuming any non-compliant device is blocked, while this specific logic allows older OS versions through.
This question analyzes a logical flaw in a cloud-based device compliance system where an OS version check below Windows 10 incorrectly returns COMPLIANT, resulting in a false negative.
Many learners choose B, assuming the MDM agent was missing, but they overlook the critical flaw in the 'Else' branch of the OS version check that bypasses the agent requirement for old OSs.
Community Discussion (8 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
The provided pseudocode contains a logical vulnerability in its conditional structure. The first condition checks ifOSVersion >= 10. If this evaluates to true, it proceeds to check if the agentRunning flag is true. However, if the OS version is less than 10 (e.g., Windows 7 or 8), the first condition is false, and the execution jumps directly to the else block, which returns COMPLIANT. Since the employee's personal laptop was allowed on the network despite being against policy, it must have triggered this else path. This represents a false negative because the system failed to identify a non-compliant device (an unauthorized OS version) as non-compliant.Why the Other Options Are Wrong
Option A is incorrect because a false positive would mean the system flagged a compliant device as non-compliant, preventing connection, whereas the device connected successfully. Option B suggests the OS was valid but the agent was missing; however, if the OS were Windows 10/11 and the agent missing, the code would correctly returnNON_COMPLIANT (a true positive), blocking the device. Option D describes a scenario where the device is clearly non-compliant (OS > 11 is invalid per policy, though technically high versions are usually fine, the prompt implies strict 10/11) and the agent is running, which would likely trigger a different error or be a true negative if the system worked correctly, but doesn't explain the unauthorized access via the logic flaw.Community Comment Notes
Community consensus strongly favors C, with many users noting the 'flaw' in the code. As Wole_excel noted, the logic incorrectly returns COMPLIANT for OS < 10. Several commenters initially chose B but corrected themselves after tracing theif-else flow, realizing that the OS version check takes precedence and has a dangerous default outcome in its else branch. Exam Strategy
Always trace the exact path of execution in pseudo-code questions. Pay close attention to the else branches of primary conditions, as they often contain the security gaps or logic errors tested in CAS-005 scenarios.
Frequently Asked Questions
What is a false negative in device compliance?
A false negative occurs when a non-compliant device is incorrectly classified as compliant, allowing it to access the network.
Why isn't this a true positive?
A true positive means the system correctly identified a threat. Here, the system failed to identify the threat, so it is not a true positive.
Related Analysis
Practice All CAS-005 Questions
Access 135 questions with complete answers and detailed explanations.
View Full CAS-005 Practice Test →