Question 350
A Linux administrator needs to resolve the following condition: A process shows high CPU with runaway regular-expression parsing on attacker-controlled log lines. Which implementation step BEST resolves it?
Explanation
Correct Answer
Certain nested regex patterns can grow processing work nonlinearly. This action corrects the relevant condition. Verify that malicious test input no longer spikes CPU.
Incorrect Answers
That remedy is appropriate when an application slows dramatically after RAM use rises and vmstat shows continuous si/so. It targets sustained swapping consumes disk bandwidth and increases process latency; here certain nested regex patterns can grow processing work nonlinearly, so it does not directly repair the observed fault.
This change addresses a process consumes 100% of one logical CPU while the rest are idle. The present problem is different: certain nested regex patterns can grow processing work nonlinearly. Applying the alternative would leave the key cause unresolved.
It would correct a separate failure, a high-frequency job executes every second and constantly starts a new Python interpreter. In this environment, certain nested regex patterns can grow processing work nonlinearly; the indicated alternative does not meet the acceptance test.





CompTIA Linux+ (XK0-006) Practice Tests