🌍 All Study Guides📊 Dashboard📰 Blog💡 About
Google Cybersecurity Professional Certificate • STUDY MODE

PYTHON AND AUTOMATION

QUESTION 1 OF 5

Which of the following potential signs of suspicious activity can you track with automated Python programs? Select all that apply.

A
Whether login attempts occurred from IP addresses that are not established work zonesCorrect Answer
B
Whether login attempts occurred outside of normal work hoursCorrect Answer
C
Whether phishing attempts occurred through in-person interactions
D
Whether several failed login attempts occurred within a short span of timeCorrect Answer
Explanation:

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.

QUESTION 2 OF 5

Which Python component contributes to automation by allowing you to perform the same actions a certain number of times based on a sequence?

A
Conditional statements
B
for loopsCorrect Answer
C
while loops
D
Bracket notation
Explanation:

Python for loops contribute to automation by allowing you to perform the same action a certain number of times based on a sequence.

QUESTION 3 OF 5

Why is knowing how to work with files important for automation?

A
Cybersecurity-related information is often found in log files.Correct Answer
B
In order to create a function, it's necessary to incorporate a file into it.
C
String and list methods are only accessible through files.
D
It is necessary to save a file in order to review what you have automated.
Explanation:

Knowing how to work with files is important for automation because cybersecurity-related information is often found in log files.

QUESTION 4 OF 5

Which of the following are common file formats for security logs? Select all that apply.

A
.txtCorrect Answer
B
.csvCorrect Answer
C
.jpeg
D
.gif
Explanation:

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.

QUESTION 5 OF 5

What does the line of code with open("ip_addresses.txt, "r") as file: instruct Python to do? Select two answers.

A
Create a new file called "ip_addresses.txt"
B
Open the "ip_addresses.txt" file in order to read itCorrect Answer
C
Write the string "r" to the "ip_addresses.txt" file
D
Store the file object in the file variable while inside the with statementCorrect Answer
Explanation:

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.

💡Select all 3 correct answers before submitting (0 of 3 selected).
A
Whether login attempts occurred from IP addresses that are not established work zones
B
Whether login attempts occurred outside of normal work hours
C
Whether phishing attempts occurred through in-person interactions
D
Whether several failed login attempts occurred within a short span of time

How confident are you in this answer?