Chapter 100 · Quiz

Scripting and Automation — Quiz

Ten questions covering automation benefits, use cases, guard rails, technical debt, single points of failure, CI/CD, API integration, workforce multiplier, provisioning automation, and scripting risks.

1. A security team configures a script that detects when a new patch arrives in a designated folder and automatically deploys it to all affected systems overnight. Which automation benefit does this primarily demonstrate?
2. A technician attempts to delete a temporary folder but accidentally selects the entire application directory. An automated system detects that the selected path contains files flagged as critical and blocks the operation. What type of automation control is this?
3. An organization's disk space monitoring script clears temporary files whenever free space drops below 10%. The script keeps servers running, but the root cause of excessive temporary file accumulation is never investigated. What scripting risk does this represent?
4. A company automates its cloud infrastructure provisioning so that when a new application server is added, the associated security groups, firewall rules, and encryption settings are also configured automatically. Which automation benefit does this exemplify?
5. A monitoring script detects that a web service has stopped responding. It first attempts to restart the service automatically. If the restart succeeds, no alert is generated. If the restart fails twice, it creates an incident ticket and pages the on-call administrator. Which two automation use cases does this demonstrate?
6. An organization relies on a single automation script to handle all new user account creation. The script fails due to an API change. No new accounts can be created until the script is repaired. Which scripting risk does this illustrate?
Matching: Automation Concepts

Match each automation concept (1–4) to its correct description (A–D).

1User provisioning/deprovisioning
2Workforce multiplier
3API integration
4Ongoing supportability
AAllows scripts to communicate with third-party devices, cloud services, and security appliances programmatically without requiring manual UI interaction
BAutomation operates 24/7 performing many tasks simultaneously, effectively extending the team's capacity without additional headcount
CAutomation that creates accounts, grants permissions, and configures resources for new employees, and revokes all access immediately when employees leave
DThe challenge of maintaining automation as OS versions, API schemas, and scripting language versions change over time, requiring continuous updates and documentation