An administrator discovers a misconfiguration that impacts all servers but can be easily corrected. The administrator has a list of affected servers and a script to correct the issue. Which of the following scripting principles should the administrator use to cycle through the list of servers to deliver the needed change?
正解:C
A loop is a programming construct that allows a block of code to be executed repeatedly until a certain condition is met1. A loop can be used to cycle through a list of servers and run a script on each one of them. For example, in Python, a loop can be written as: Python This code is AI-generated. Review and use carefully. Visit our FAQ for more information. Copy # Assume servers is a list of server names for server in servers: # Run the script on the server run_script(server) A loop can help automate the task of correcting the misconfiguration on all servers, saving time and effort.