Automation, Orchestration, and Scripting
An administrator receives a log-rotation shell script from an AI assistant for a production Linux server. What should the administrator do before running it there?
Show the answer
Correct answerD. Review the code and test it on a non-production system
AWhy not this: Running unreviewed code as root raises the damage any mistake in it can do.
BWhy not this: The assistant's own answer is not verification; it can be confidently wrong about its code.
CWhy not this: A quiet window lowers the impact but still tests unreviewed code on the production system.
DWhy this is right: A person reads the code and tests it safely before it touches production.
AI output can contain errors, outdated syntax or destructive commands, so human review and testing in a safe environment are required before production use. Trusting the assistant's confidence is not a substitute for verification.