A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration:
Which of the following is MOST likely the cause of the issue?
A.
An internal-only DNS server is configured.
B.
The IP netmask is wrong for ens3.
C.
Two default routes are configured.
D.
The ARP table contains incorrect entries.
Two default routes are configured.
A cloud engineer needs to remove all dangling images and delete all the images that do not have an associated container. Which of the following commands will help to accomplish this task?
A.
docker images prune -a
B.
docker push images -a
C.
docker rmi -a images
D.
docker images rmi --all
docker images prune -a
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)
A.
df -h /data
B.
mkfs.ext4 /dev/sdc1
C.
fsck /dev/sdc1
D.
fdisk -l /dev/sdc1
E.
echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
F.
echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
mkfs.ext4 /dev/sdc1
echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
Explanation: "modify the /etc/fstab text file to automatically mount the new partition by opening it in an editor and adding the following line:
/dev/ xxx 1 /data ext4 defaults 1 2
where xxx is the device name of the storage device"
https://learning.oreilly.com/library/view/mastering-linux-system/9781119794455/b01.xhtml
A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:
The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?
B.
ONFAILURE=mariadb.service
C.
WANTEDBY=mariadb.service
D.
REQUIRES=mariadb.service
REQUIRES=mariadb.service
A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r-. ?
A.
chmod 755 filename.log
B.
chmod 640 filename.log
C.
chmod 740 filename.log
D.
chmod 744 filename.log
chmod 744 filename.log
Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?
A.
route -i etho -p add 10.0.213.5 10.0.5.1
B.
route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"
C.
echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route
D.
ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0
A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:
Which of the following commands will BEST resolve this issue?
A.
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
B.
restorecon -R -v /var/www/html
C.
setenforce 0
D.
setsebool -P httpd_can_network_connect_db on
restorecon -R -v /var/www/html
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:
Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?
A.
chattr +i file
B.
chown it:finance file
C.
chmod 666 file
D.
setfacl -m g:finance:rw file
setfacl -m g:finance:rw file
An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version. Which of the following files should the administrator review?
A.
/etc/named.conf.rpmnew
B.
/etc/named.conf.rpmsave
C.
/etc/named.conf
D.
/etc/bind/bind.conf
/etc/named.conf
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?
A.
tar -cvzf /dev/sdd1 /dev/sdc1
B.
rsync /dev/sdc1 /dev/sdd1
C.
dd if=/dev/sdc1 of=/dev/sdd1
D.
scp /dev/sdc1 /dev/sdd1
dd if=/dev/sdc1 of=/dev/sdd1
A database administrator requested the installation of a custom database on one of the servers. Which of the following should the Linux administrator configure so the requested packages can be installed?
A.
/etc/yum.conf
B.
/etc/ssh/sshd.conf
C.
/etc/yum.repos.d/db.repo
D.
/etc/resolv.conf
/etc/yum.repos.d/db.repo
A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file. Which of the following commands will accomplish this task?
A.
xargs -f cat toDelete.txt -rm
B.
rm -d -r -f toDelete.txt
C.
cat toDelete.txt | rm -frd
D.
cat toDelete.txt | xargs rm -rf
rm -d -r -f toDelete.txt
Page 10 out of 31 Pages |
Previous |