フリー問題

CompTIA Linux+ のフリー問題 16 / 20 問目

問題文

An administrator uses a code-generation assistant to draft a shell script that manages user accounts on production servers. Which practice should be applied before the script is used?

選択肢

  1. Accept the script as-is if it runs without errors, because a script that exits with a zero status has necessarily performed the operations it was asked to perform and therefore requires no further review.
  2. Replace all variable names with literal values so the script is easier to audit, since a script without variables cannot behave unexpectedly on any host.
  3. Run the script directly on one production server first, since a single host limits the impact and confirms the behavior in the real environment before the script is rolled out to the remainder of the fleet.
  4. Review the generated commands and options against the documentation and test the script in a non-production environment, because generated text can reference options that do not exist or behave differently.

解答・解説を確認するには

正解と解説の確認、回答の記録には無料登録が必要です。登録すると演習モードでフリー問題に回答し、正誤と解説をその場で確認できます。