
CompTIAServer+
Domain 2Objective 6
Scripting Basics SK0-005 Practice Questions (Page 3)
Part of the Server administration domain, which accounts for 30% of the SK0-005 exam. CompTIA does not publish an official question count, but from its 90-minute exam (~35–60 total, ~11–18 in this domain), expect 2–3 from this objective — we provide 23 practice questions to prepare you well beyond it. (estimate)
23questions here
5free pages
11concepts
30%of the exam
Questions 11–15
- 11
Which statement best describes the role of variables in scripting?
Select an answer first - 12
Which scenario is best suited for using a loop in a server administration script?
Select an answer first - 13
A server administrator is writing a PowerShell script to automate the cleanup of temporary files. Which of the following correctly declares and initializes the variable $tempPath with the value C:\Temp?
Select an answer first - 14
A server administrator is writing a PowerShell script to monitor disk space on a set of servers. The script must check the free space on the C: drive of each server every 5 minutes and log a warning if free space is below 10%. The script should run continuously until manually stopped. Which loop structure is most appropriate?
Select an answer first - 15
A server administrator is writing a PowerShell script to automate a daily backup. The script needs to store the backup destination path so it can be used in multiple commands and easily changed in the future. What is the primary reason for using a variable for this path instead of typing the full path in every command?
Select an answer first
Finished these 5 questions?
Review the revealed explanations, or continue through the curriculum.
Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by CompTIA. “SK0-005” is a trademark of its owner, used for identification only.