5 The ‘lsblk’ command: a adds the host name and lists the root b lists all the block devices available c is used for system privileges d signifies the root... The ‘lsblk’ command lists a
Trang 1QUIZ
Module-5
Using EBS – A Real World Use Case
1) The instance storage that comes with an EC2 instance has limitations
a True
b False
Feedback
Correct a: That’s right The instance storage which comes with an EC2 instance has some
limitations Data on it is volatile So, whenever these instances shutoff, you lose all the data stored in them
Incorrect b: No That’s not quite right The instance storage which comes with an EC2 instance has some limitations Whenever these instances shutoff, you lose all the data
stored in them
2) EBS storage allows us to expand our infrastructure, whenever required
a True
b False
Feedback
Correct a: That’s right EBS storage allows you to expand your infrastructure You can select
scale up or scale down, based on your needs
Incorrect b: No That’s not quite right EBS storage allows you to expand your infrastructure
You can select scale up or scale down, based on your needs
3) Which of the following statements is true?
a) Clicking the ‘Launch Instance’ button instantiates an instance
b) EBS allows users to attach storage endpoints
c) The ‘Choose an existing key pair option’, allows users to create a new key pair to later log into their machines
d) Once the EBS volume is configured, it becomes available and users can read and write files to it
Feedback
Correct if b) is chosen: That’s right EBS allows you to attach storage endpoints You can
attach a particular set of instances at one point, and later move them to a different set of servers, if you need
Trang 2Incorrect if a) is chosen: No That’s not quite right The ‘Launch Instance’ button does not
instantiate an instance After clicking the ‘Launch Instance’ button you get a series of steps, where you can choose and configure your instance
Incorrect if c) is chosen: No That’s not quite right The ‘Choose an existing key pair option’,
allow you to select the key pair you already created You can use this key pair to later log into your machine
Incorrect if d) is chosen: No That’s not quite right Once the EBS volume is configured, it
becomes available, but you cannot read and write files to it To do this, you have to first check if it is a raw block device, create a file system on top of it, mount this file system, and then check if you can read and write to it
4) The command to log into the machine is:
a) ssu
b) ssha
c) ssh -i
d) ssh
Feedback
Correct if c) is chosen: That’s right The command to log into the machine is ssh with the -i
option You can select this command, and add the other details along with it to log into your machine
Incorrect if a) is chosen: No That’s not quite right The command to log into the machine is
ssh with the -i option You can select this command, and add the other details along with it
to log into your machine
Incorrect if b) is chosen: No That’s not quite right The command to log into the machine is
ssh with the -i option You can select this command, and add the other details along with it
to log into your machine
Incorrect if d) is chosen: No That’s not quite right The command to log into the machine is
ssh with the -i option You can select this command, and add the other details along with it
to log into your machine
5) The ‘lsblk’ command:
a) adds the host name and lists the root
b) lists all the block devices available
c) is used for system privileges
d) signifies the root
Trang 3Correct if b) is chosen: That’s right The ‘lsblk’ command lists all the block devices available
Incorrect if a) is chosen: No That’s not quite right The ‘lsblk’ command lists all the block
devices available
Incorrect if c) is chosen: No That’s not quite right The ‘lsblk’ command lists all the block
devices available
Incorrect if d) is chosen: No That’s not quite right The ‘lsblk’ command lists all the block
devices available
6) The ‘dev’ directory in Linux:
a) is the value we use to configure the system
b) accepts a -f flag and provides us the additional 8 GB EBS volume
c) is used for system privileges to mount the device
d) contains all the input output files that our Linux distribution can work with
Feedback
Correct if d) is chosen: That’s right The ‘dev’ directory contains all the input output files that
our Linux distribution can work with
Incorrect if a) is chosen: No That’s not quite right The ‘dev’ directory contains all the input
output files that our Linux distribution can work with
Incorrect if b) is chosen: No That’s not quite right The ‘dev’ directory contains all the input
output files that our Linux distribution can work with
Incorrect if c) is chosen: No That’s not quite right The ‘dev’ directory contains all the input
output files that our Linux distribution can work with
7) The ‘mkfs’ command is used to:
a) create a backup copy of our instance
b) configure our EBS volume
c) configure the file system on to the raw block device
d) configure and list our block device path
Trang 4Correct if c) is chosen: That’s right The ‘mkfs’ command configures your file system onto the
raw block device
Incorrect if a) is chosen: No That’s not quite right The ‘mkfs’ command configures your file
system onto the raw block device
Incorrect if b) is chosen: No That’s not quite right The ‘mkfs’ command configures your file
system onto the raw block device
Incorrect if d) is chosen: No That’s not quite right The ‘mkfs’ command configures your file
system onto the raw block device
8) Which of the following statements is NOT true?
a) The ‘sudo mount -t’ command confirms that EBS is configured correctly to the EC2 instances
b) The ‘mount’ command in Linux mounts a partition available into the file system hierarchy
c) The ‘etc fstab’file lists out the configuration, of what should be default mounted when the system boots up
d) The UUID value which Linux generates is used as an identifier, while editing and configuring the ‘etc fstab’ file system later
Feedback
Correct if a) is chosen: That’s right The ‘sudo mount -t’ command does not confirm that EBS
is configured correctly to the EC2 instances You have to use ‘sudo mount -a’ command for this
Incorrect if b) is chosen: No That’s not quite right The ‘mount’ command in Linux mounts a
partition available into the file system hierarchy
Incorrect if c) is chosen: No That’s not quite right The ‘etc fstab’file lists out the
configuration, of what should be default mounted when the system boots up
Incorrect if d) is chosen: No That’s not quite right The UUID value which Linux generates is
used as an identifier You have to copy this value, and use it while you edit and configure the
‘etc fstab’ file system later
9) Which of the following statements is true?
a) The ‘no fail’ option used while editing the ‘etc fstab’ file, reports device errors
Trang 5b) To learn more about the configurations in the ‘fstab’ file in Linux, users can access the ‘fstab’ manual page by typing ‘mount fstab’
c) To exit out of the fstab manual page the command to use is ‘q’
d) ‘fs frequency’ option tells how file system checks are performed
Feedback
Correct if c) is chosen: That’s right To exit out of the ‘fstab’ manual page, you have to use
the ‘q’ command
Incorrect if a) is chosen: No That’s not quite right The ‘no fail’ option makes sure that the
device won’t report any errors You can use this option while editing the ‘etc fstab’ file
Incorrect if b) is chosen: No That’s not quite right To access the ‘fstab’ manual page in
Linux, you have to type ‘man fstab’ You can learn more about the ‘fstab’ file configurations here
Incorrect if d) is chosen: No That’s not quite right ‘fs frequency’ option tells you, when the
file system contents should be dumped back into the actual persistent storage It is also called ‘dump’