Vcehome > CompTIA > Linux+ > XK0-005 > XK0-005 Online Practice Questions and Answers

XK0-005 Online Practice Questions and Answers

Questions 4

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:

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

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.

Browse 285 Q&As
Questions 5

A Linux administrator needs to create a new user named user02. However, user02 must be in a different home directory, which is under /comptia/projects. Which of the following commands will accomplish this task?

A. useradd -d /comptia/projects user02

B. useradd -m /comptia/projects user02

C. useradd -b /comptia/projects user02

D. useradd -s /comptia/projects user02

Browse 285 Q&As
Questions 6

A systems administrator has been tasked with disabling the nginx service from the environment to prevent it from being automatically and manually started. Which of the following commands will accomplish this task?

A. systemctl cancel nginx

B. systemctl disable nginx

C. systemctl mask nginx

D. systemctl stop nginx

Browse 285 Q&As
Questions 7

A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?

A. apt-get upgrade

B. rpm -a

C. yum updateinfo

D. dnf update

E. yum check-update

Browse 285 Q&As
Questions 8

A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server. To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

Based on the information above, which of the following is causing the issue?

A. The IP address 0.0.0.0 is not valid.

B. The application is listening on the loopback interface.

C. The application is listening on port 1234.

D. The application is not running.

Browse 285 Q&As
Questions 9

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

Browse 285 Q&As
Questions 10

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

Browse 285 Q&As
Questions 11

To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

A. Add the line DenyUsers root to the /etc/hosts.deny file.

B. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.

C. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.

D. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

Browse 285 Q&As
Questions 12

A junior administrator updated the PostgreSQL service unit file per the database administrator's recommendation. The service has been restarted, but changes have not been applied. Which of the following should the administrator run for the changes to take effect?

A. systemctl get-default

B. systemctl daemon-reload

C. systemctl enable postgresql

D. systemctl mask postgresql

Browse 285 Q&As
Questions 13

A systems administrator detected corruption in the /data file system. Given the following output:

Which of the following commands can the administrator use to BEST address this issue?

A. umount /data mkfs.xfs /dev/sdc1 mount /data

B. umount /data xfs repair /dev/sdc1 mount /data

C. umount /data fsck /dev/sdc1 mount /data

D. umount /data vs /dev/sdc1 mount /data

Browse 285 Q&As
Exam Code: XK0-005
Exam Name: CompTIA Linux+ Certification Exam
Last Update: May 02, 2024
Questions: 285 Q&As

PDF

$49.99

VCE

$59.99

PDF + VCE

$67.99