2. Programming Fundamentals
Scripting For It — Quiz
Test your understanding of scripting for it with 5 practice questions.
Practice Questions
Question 1
Which of the following best describes the concept of 'concurrency' in scripting for IT automation, especially in managing multiple administrative tasks simultaneously?
Question 2
When a script needs to interact with a web service or API to retrieve or send data, which common scripting module or library is typically used for making HTTP requests?
Question 3
Consider a scenario where a script needs to parse a configuration file written in YAML format. Which of the following data structures would be most appropriate for representing the parsed data in the script?
Question 4
A critical administrative task involves regularly checking the free disk space on multiple servers and alerting administrators if it falls below $10\%$ of the total capacity. Which scripting concept is most vital for implementing this monitoring and alerting system efficiently?
Question 5
In a Bash script, what is the primary purpose of the
grep command when combined with pipes (|) for log file analysis?