Lfcs Exam Questions And Answers
(Guaranteed A+)
In order to run a container instantiated on a Docker image called 'httpd:2.4', which of the
following commands would start that container with it's default settings, disconnected from the
terminal (i.e. running in the background), non-interactively, named 'MyTestWeb', mapping the
container's HTTP port to the host port 8080? - Answer✔docker run -itd --name MyTestWeb -p
8080:80 httpd:2.4
You have been working on setting up the Apache web server on an Ubuntu 16.04 system. You
discovered that you need to enable the SSL module since you will be using secure certificates on
your site. The module is installed, but you need to enable it for use. Which of the following
commands will enable this module for the existing server instance? - Answer✔a2enmod ssl
'available to enable'
Using the common log format in Apache, which directive and format is valid for producing a log
file containing the connecting IP address, username and time of connection to the server? -
Answer✔/mnt/data 10.1.0.122(rw,sync)
What are the responsibilities of a caching DNS server? - Answer✔Accept DNS queries from
client,
respond with IP addresses for known names/domains, cache name/domain values until the
timeout is reached,
obtain new name/domain values for a client request when not in its cache
You are connecting to a special cloud hosted Linux server. You generated a special SSH key
called 'cloud-server' in the current directory, that you need to use to SSH to that server (and you
have already configured the remote system to accept). Which of the following connection
commands will use that key and connect to the remote system? - Answer✔ssh -i cloud-server
[remote-host]
During the installation of an NFS server, on a Red Hat/CentOS system or a Debian/Ubuntu
system, which package is responsible for the installation of the NFS server service itself? -
Answer✔nfs-utils
When configuring your SSH server, you want to prevent the root account from being able to
login to the system remotely directly. What directive would prevent root accounts from being
able to login over SSH to the server? - Answer✔PermitRootLogin no
1|Page
, ©EVERLY 2024/2025 ALL RIGHTS RESERVED.
Which of the following formats will set the indicated local Linux email addresses on your
system? - Answer✔mailer: postmaster postmaster: root nobody: root news: user security: jsmith
Which of the following command line sequences would enable AND start the Apache web server
once installed on a CentOS/Red Hat 7 system? - Answer✔systemctl enable httpd && systemctl
start httpd
.
Which of the following are valid applications for installing virtual guest operating systems on a
Linux host? - Answer✔kvm, VirtualBox
When working with the Squid Proxy Server, you want to restrict access to anyone outside of the
10.1.0.x network. Within the /etc/squid/squid.conf file, what entry would you add so that no one
outside that network can access the service? - Answer✔acl localnet src 10.1.0.0/24 http_access
allow localnet 10.1.0.0/24
You are being asked to troubleshoot a problem with the installation of a virtual machine in your
environment. When trying to install a new Linux system on your 64-bit host, you are unable to
install a 64-bit version of Linux, but you CAN install a 32-bit version. What would be the most
likely cause? - Answer✔Your system BIOS/UEFI is not configured with 'hardware
virtualization' or 'VTx' enabled
When working on a host with Docker containers, if you want to get a full report of all
configuration information associated with the container called 'MyTestWeb', which of the
following commands would you use? - Answer✔docker inspect MyTestWeb
Which of the following are database servers that are supported on Linux and can be configured
for use? - Answer✔MariaDB, MySQL
When you have completed the update of the /etc/aliases file for local email accounts on your
system, you run the 'newaliases' command and it updates the local binary database file. What is
the name and location of that database file? - Answer✔/etc/aliases.db
How can you alter the "next hop" for a network packet destined for the 10.0.0.0/16 network to
use eth1 instead of its default eth0? - Answer✔Create a new IP route.
Which of these things cannot be done with email aliases? - Answer✔Send a copy of every
outgoing message a user sends to the root user.
A developer has asked me to do her a huge favor and run a particular SQL statement on the
MySQL server console as the root database user. It's MariaDB, technically, though, so which
command do I run to get the console with the proper rights? I'm logged in to the machine already
as "chad". (Don't worry, I've got the password memorized!) - Answer✔mysql -u root -p
You're looking at a user's crontab. What does this entry mean?
0 8 * 3 1,2,3,4,5 /opt/do-the-things.sh - Answer✔Run the script /opt/do-the-things.sh at 8:00 AM
every weekday (Monday, Tuesday, Wednesday, Thursday, and Friday) in March.
2|Page