CompTIA Server+ (SK0-005) — Question 210
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?
Answer options
- A. Linked list
- B. String
- C. Loop
- D. Constant
Correct answer: C
Explanation
The correct answer is C, Loop, as it allows the administrator to iterate through each server in the list and apply the necessary changes efficiently. Options A (Linked list) and B (String) do not pertain to the action of iterating through a collection, while D (Constant) refers to fixed values and is not applicable in this context.