Integrating you Infrastructure Security Final Assessment Flashcards
(20 cards)
What is the primary function of containers?
Package code and dependencies to run applications.
Which of the following commands lists all the files in a directory?
ls
What does the chmod command do?
Change file permissions.
Which permission allows a user to run a file as a program?
Execute
What is the correct way to add a new value to a dictionary?
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.
The top command can only display system statistics, but cannot manage processes.
False
a = [“hello”, True]
In the code above, what is the data type of the variable “a”?
List
The variable “a” is a list containing elements of different data types.
Linux is an open-source operating system.
True
Linux is an open-source operating system, meaning its source code is freely available to the public.
The systemctl command is part of the systemd management framework.
True
The systemctl command is indeed part of the systemd management framework, providing a unified interface for controlling systemd services.
Which command creates an empty file if it does not exist?
touch
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?
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.
Which of the following commands displays the contents of a file?
cat
Which service does AWS provide for container management?
ECS
Containers in the cloud are scalable and can be easily deployed.
True
Cloud service providers offer scalable solutions for container deployment.
What is the default port for Apache2?
80
The default port for Apache2 is 80 for HTTP traffic.
Which of the following loops will run for a specified number of iterations?
For loop.
Which of the following is NOT a Python data structure?
Def
Def is not a Python data structure; it is a keyword used to define functions.
Before accessing the container in AWS, it’s essential to ensure that the last status of the task is set to
RUNNING
Which services are part of Amazon’s IaaS offerings? Select all the answers that apply from the given options (two).
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.