Question 540
At Silvercrest University, the campus Linux administration team maintains student lab and registration servers under requirements for account isolation and predictable teaching services. The acceptance reviewer must validate: An AI assistant proposes shell code with an unquoted variable that could delete unintended directories, and the operator relies on the generated explanation alone. Which observed result BEST demonstrates that the correction works?
Explanation
Correct Answer
A maliciously shaped test pathname is handled safely and the reviewed script passes lint and functional tests. This measurable outcome verifies correction of: 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 associated technical action is: Require human code review, shell linting and a sandboxed test with adversarial input before accepting generated automation. The Silvercrest University review checks actual behavior rather than an untested change claim.
Incorrect Answers
A simulated failed copy returns a nonzero result and leaves every previous recovery snapshot intact. This evidence pertains to an unrelated remediation: Check the copy operation's exit status and stop destructive follow-up steps unless the backup completes successfully. The alternative issue is: A Bash backup script continues to delete old snapshots even when the preceding copy command failed and no error handling checks its exit status. The current Silvercrest University problem 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 decisive expected evidence is instead: A maliciously shaped test pathname is handled safely and the reviewed script passes lint and functional tests.
An existing directory is recognized and a missing directory is created exactly once during the controlled test. This evidence pertains to an unrelated remediation: Use the correct directory test predicate and quote the path variable in the conditional expression. The alternative issue is: A shell script tests whether a directory exists using a file-type predicate and incorrectly creates a second path on every run. The current Silvercrest University problem 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 decisive expected evidence is instead: A maliciously shaped test pathname is handled safely and the reviewed script passes lint and functional tests.
A clean compose up recreates the application topology and a controlled restart retains required persistent data. This evidence pertains to an unrelated remediation: Use a versioned Docker or Podman Compose definition for the related services, networks and persistent volumes. The alternative issue is: A two-container application is started with independent ad hoc commands and repeatedly loses the intended shared network and volume configuration. The current Silvercrest University problem 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 decisive expected evidence is instead: A maliciously shaped test pathname is handled safely and the reviewed script passes lint and functional tests.