PYTHON AND AUTOMATION
Which of the following potential signs of suspicious activity can you track with automated Python programs? Select all that apply.
Using automated Python programs, you can track whether several failed login attempts occurred within a short span of time, whether login attempts occurred outside of normal work hours, and whether login attempts occurred from IP addresses that are not established work zones. In all of these cases, you can obtain the data needed for Python automation.
Which Python component contributes to automation by allowing you to perform the same actions a certain number of times based on a sequence?
Python for loops contribute to automation by allowing you to perform the same action a certain number of times based on a sequence.
Why is knowing how to work with files important for automation?
Knowing how to work with files is important for automation because cybersecurity-related information is often found in log files.
Which of the following are common file formats for security logs? Select all that apply.
Common file formats for security logs include .txt and .csv. Both file formats are types of text files, meaning they only contain plain text. It is easy to extract data from .txt and .csv files.
What does the line of code with open("ip_addresses.txt, "r") as file: instruct Python to do? Select two answers.
The line of code with open("ip_addresses.txt, "r") as file: instructs Python to open the "ip_addresses.txt" file in order to read it ("r"). It also instructs Python to store the file object in the file variable while inside the with statement.
Ready to test your recall?
Which of the following potential signs of suspicious activity can you track with automated Python programs? Select all that apply.
How confident are you in this answer?