Question 1
After applying the change "Use supported command substitution syntax while preserving safe quoting of the result", the team needs to verify: A monitor stores a command's output in a variable but uses single quotes around a dollar-parenthesized expression. Which test result is strongest evidence of success?
Explanation
Correct Answer
A successful acceptance test is that the variable contains the current command output instead of literal substitution characters. This relates to the original issue: A monitor stores a command's output in a variable but uses single quotes around a dollar-parenthesized expression. The administrator applied a change to use supported command substitution syntax while preserving safe quoting of the result. Verifying real behavior and subsequent reboot state, where applicable, is stronger than observing a successful command alone.
Incorrect Answers
Files with spaces and special characters are each handled without path corruption. That alternative is checked by using a safe line- or null-delimited loop instead of unquoted substitution for filenames; the actual requirement instead calls for confirming that the variable contains the current command output instead of literal substitution characters.
Threshold tests produce the right branch for representative low and high values. normalizing and validating the selected numeric capacity value before numerical comparison tests that mechanism, but it does not establish the reported condition—a monitor stores a command's output in a variable but uses single quotes around a dollar-parenthesized expression.
The script correctly distinguishes stopped and active test services. Its technical evidence involves using systemctl's supported is-active result and branch on the outcome. For the stated question, confirming that the variable contains the current command output instead of literal substitution characters is the more relevant test.