Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 5 out of 15 pages
Viewing questions 41-50 out of questions
Questions # 41:

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?

Options:

A.

TRIGGERS=mariadb.service


B.

ONFAILURE=mariadb.service


C.

WANTEDBY=mariadb.service


D.

REQUIRES=mariadb.service


Expert Solution
Questions # 42:

A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.

Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

Options:

A.

dmidecode -s system-version


B.

lscpu


C.

sysctl -a


D.

cat /sys/device/system/cpu/possible


Expert Solution
Questions # 43:

Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.

INSTRUCTIONS

Install Apache and start the service. Verify that the Apache service is running with the defaults.

Typing “help” in the terminal will show a list of relevant event commands.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


Expert Solution
Questions # 44:

A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:

Question # 44

Based on the output above, which of following is the MOST probable cause of the issue?

Options:

A.

The address ac:00:11:22:33:cd is not a valid Ethernet address.


B.

The Ethernet broadcast address should be ac:00:11:22:33:ff instead.


C.

The network interface eth0 is using an old kernel module.


D.

The network interface cable is not connected to a switch.


Expert Solution
Questions # 45:

A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

Options:

A.

docker image load java:7


B.

docker image pull java:7


C.

docker image import java:7


D.

docker image build java:7


Expert Solution
Questions # 46:

A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.

Which of the following commands would be BEST to use to accomplish this task?

Options:

A.

chattr +a /opt/app/logs


B.

chattr +d /opt/app/logs


C.

chattr +i /opt/app/logs


D.

chattr +c /opt/app/logs


Expert Solution
Questions # 47:

A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?

Options:

A.

B.

C.

D.

Expert Solution
Questions # 48:

A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?

Options:

A.

docker cp container_id/deployment.yaml deployment.yaml


B.

docker cp container_id:/deployment.yaml deployment.yaml


C.

docker cp deployment.yaml local://deployment.yaml


D.

docker cp container_id/deployment.yaml local://deployment.yaml


Expert Solution
Questions # 49:

A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

Options:

A.

scp ~/.ssh/id_rsa user@server:~/


B.

rsync ~ /.ssh/ user@server:~/


C.

ssh-add user server


D.

ssh-copy-id user@server


Expert Solution
Questions # 50:

A systems administrator needs to check the size of the filesystem on the current application servers and ensure that the following filesystems are mounted:

    /var

    /var/log/audit

    /tmp

    /home/application

Which of the following commands should the administrator use for these tasks?

Options:

A.

fdisk


B.

df


C.

du


D.

lsblk


Expert Solution
Viewing page 5 out of 15 pages
Viewing questions 41-50 out of questions