nerdexam
CompTIA

SK0-005 · Question #373

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…

The correct answer is C. Loop. A loop is a programming construct that allows a block of code to be executed repeatedly until a certain condition is met. A loop can be used to cycle through a list of servers and run a script on each one of them.

Server administration

Question

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?

Options

  • ALinked list
  • BString
  • CLoop
  • DConstant

How the community answered

(38 responses)
  • B
    3% (1)
  • C
    95% (36)
  • D
    3% (1)

Explanation

A loop is a programming construct that allows a block of code to be executed repeatedly until a certain condition is met. A loop can be used to cycle through a list of servers and run a script on each one of them.

Topics

#Scripting#Loops#Server automation#Configuration management

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice