Integrating you Infrastructure Security Final Assessment Flashcards

(20 cards)

1
Q

What is the primary function of containers?

A

Package code and dependencies to run applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which of the following commands lists all the files in a directory?

A

ls

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the chmod command do?

A

Change file permissions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which permission allows a user to run a file as a program?

A

Execute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the correct way to add a new value to a dictionary?

A

dict[“name”] = “John”

To add a new key-value pair to a dictionary in Python, you need assign a value to a new or existing key specifying the key in square brackets.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

The top command can only display system statistics, but cannot manage processes.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

a = [“hello”, True]
In the code above, what is the data type of the variable “a”?

A

List

The variable “a” is a list containing elements of different data types.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Linux is an open-source operating system.

A

True

Linux is an open-source operating system, meaning its source code is freely available to the public.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The systemctl command is part of the systemd management framework.

A

True

The systemctl command is indeed part of the systemd management framework, providing a unified interface for controlling systemd services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which command creates an empty file if it does not exist?

A

touch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Jacob found a text file that contains content. He wants to overwrite the data in the file and replace it with something else. Which of the following commands can do that?

A

echo “Hello!” > file.txt

The > operator is used for redirection and it overwrites the file so the command echo “Hello!” > file.txt will overwrite the existing content.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Which of the following commands displays the contents of a file?

A

cat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which service does AWS provide for container management?

A

ECS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Containers in the cloud are scalable and can be easily deployed.

A

True

Cloud service providers offer scalable solutions for container deployment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the default port for Apache2?

A

80

The default port for Apache2 is 80 for HTTP traffic.

17
Q

Which of the following loops will run for a specified number of iterations?

18
Q

Which of the following is NOT a Python data structure?

A

Def

Def is not a Python data structure; it is a keyword used to define functions.

19
Q

Before accessing the container in AWS, it’s essential to ensure that the last status of the task is set to

20
Q

Which services are part of Amazon’s IaaS offerings? Select all the answers that apply from the given options (two).

A

Amazon S3
Amazon EC2

Amazon EC2 and S3 are Infrastructure as a service offerings from Amazon. RDS is a PaaS service and Google App Engine is not an Amazon service.