Question 470
A server operations team encounters the following situation: A Bash backup cleanup script deletes the wrong directory because an environment variable is empty and an unquoted path expands unexpectedly. After making the corrective change, which result best demonstrates that this particular problem is resolved?
Explanation
Correct Answer
This is incident-specific acceptance evidence: A test run with an empty variable aborts without deleting data. It verifies the action validate required variables and quote paths before performing destructive operations. The failure under test was: Unsafe shell expansion turns a missing setting into a destructive filesystem path.
Incorrect Answers
This observation tests an unrelated Summarize scripting basics for server administration case: A login script uses a hardcoded password to mount a network share, exposing credentials to every user who can view the deployment package. It may be true while the current failure persists; the decisive current cause is: Unsafe shell expansion turns a missing setting into a destructive filesystem path.
This observation tests an unrelated Summarize scripting basics for server administration case: A monitoring script loops forever while a service is unavailable, consuming a CPU core and generating thousands of duplicate alerts. It may be true while the current failure persists; the decisive current cause is: Unsafe shell expansion turns a missing setting into a destructive filesystem path.
This observation tests an unrelated Summarize scripting basics for server administration case: A shutdown script stops the database before an application is allowed to flush queued transactions, leading to lost work during planned maintenance. It may be true while the current failure persists; the decisive current cause is: Unsafe shell expansion turns a missing setting into a destructive filesystem path.