Automation, Orchestration, and Scripting
An AI assistant returns a patching script that calls apt-get, but the target server runs Rocky Linux 9. Which follow-up prompt is the BEST way to refine the result?
Show the answer
Correct answerD. The target is Rocky Linux 9, which uses dnf. Rewrite the script with dnf and keep the rest of the logic unchanged.
An iterative follow-up that states the missing context and what to preserve lets the model correct only the faulty part. Telling it to try again gives no direction, so the same mistake is likely to recur.