Question 300
An operator is asked to correct this issue: An assistant suggests disabling SELinux to solve a single web server denial. What is the most appropriate targeted action?
Explanation
Correct Answer
Turning off an enforcement system to hide one denial expands attack surface. The proposed change is specific to this fault. Confirm the result: The service functions with SELinux enforcing.
Incorrect Answers
That remedy is appropriate when an AI tool proposes a firewall policy but invents a CLI flag unsupported by nftables. It targets aI-produced configuration requires checking primary command documentation and executable validation; here turning off an enforcement system to hide one denial expands attack surface, so it does not directly repair the observed fault.
This change addresses an AI assistant generates a script that runs rm -rf on a user-provided path. The present problem is different: turning off an enforcement system to hide one denial expands attack surface. Applying the alternative would leave the key cause unresolved.
That remedy is appropriate when an AI-generated unit file uses deprecated service directives and no restart-rate limit. It targets generated configuration should be linted and validated against the target systemd version; here turning off an enforcement system to hide one denial expands attack surface, so it does not directly repair the observed fault.





CompTIA Linux+ (XK0-006) Practice Tests