Question 470
At Highland Education, the Linux engineering team maintains learning application and identity platforms under requirements for service continuity and minimized privilege. The operations lead requests proof of the fix for: A nightly Bash script obtains a target pathname from a user-supplied parameter but does not validate whether the argument is empty before deleting data. Which observed result BEST demonstrates that the correction works?
Explanation
Correct Answer
A missing argument exits with a clear error and a valid approved path is processed without deleting the parent directory. This measurable outcome verifies correction of: A nightly Bash script obtains a target pathname from a user-supplied parameter but does not validate whether the argument is empty before deleting data. The associated technical action is: Validate required positional arguments and reject empty or out-of-scope paths before executing the file operation. The Highland Education review checks actual behavior rather than an untested change claim.
Incorrect Answers
Each asserted incident event is traceable to a retained source record and an invented event is removed during review. This evidence pertains to an unrelated remediation: Correlate the generated summary with source logs, timestamps and approved monitoring evidence before publishing the report. The alternative issue is: An organization accepts AI-generated incident reports as authoritative without checking the claimed system events against actual telemetry. The current Highland Education problem is: A nightly Bash script obtains a target pathname from a user-supplied parameter but does not validate whether the argument is empty before deleting data. The decisive expected evidence is instead: A missing argument exits with a clear error and a valid approved path is processed without deleting the parent directory.
A maliciously shaped test pathname is handled safely and the reviewed script passes lint and functional tests. This evidence pertains to an unrelated remediation: Require human code review, shell linting and a sandboxed test with adversarial input before accepting generated automation. The alternative issue is: An AI assistant proposes shell code with an unquoted variable that could delete unintended directories, and the operator relies on the generated explanation alone. The current Highland Education problem is: A nightly Bash script obtains a target pathname from a user-supplied parameter but does not validate whether the argument is empty before deleting data. The decisive expected evidence is instead: A missing argument exits with a clear error and a valid approved path is processed without deleting the parent directory.
A staging test confirms the correct supported command and an incompatible generated command is rejected before deployment. This evidence pertains to an unrelated remediation: Review and test AI-suggested commands in an isolated environment against actual package and firewall tooling before human approval. The alternative issue is: An administrator pastes an AI-generated firewall command into a production terminal without checking whether it applies to the installed Linux distribution. The current Highland Education problem is: A nightly Bash script obtains a target pathname from a user-supplied parameter but does not validate whether the argument is empty before deleting data. The decisive expected evidence is instead: A missing argument exits with a clear error and a valid approved path is processed without deleting the parent directory.