Question 20
A test script logs raw bearer tokens while printing API request troubleshooting details. Which conclusion or control should be prioritized in the test plan?
Explanation
Correct Answer
Redact authorization headers and restrict debug log content. This answer directly addresses the described constraint. Diagnostic logs can become a second credential exposure path. Successful validation requires: A test token is absent from all generated log files.
Incorrect Answers
That relates to a different issue: A team wants to correlate results from Bash, Python, and PowerShell utilities. Consistent output fields support reproducible, attributable analysis. That is not a direct remedy for the requested outcome: A test token is absent from all generated log files. The appropriate action is: Redact authorization headers and restrict debug log content.
It would address a shell loop sends every possible path to a fragile production app at full speed. The relevant reason in that case is: Rate and volume controls are required to respect engagement limits. Here the required success condition is a test token is absent from all generated log files. The appropriate action is: Redact authorization headers and restrict debug log content.
This action applies to a different case: A Bash host inventory script silently processes blank lines as targets. Input sanitation prevents accidental or malformed probe targets. It does not establish the present requirement, where a test token is absent from all generated log files. The appropriate action is: Redact authorization headers and restrict debug log content.