XK0-005 Exam Questions

Total 361 Questions

Last Updated Exam : 16-Dec-2024

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?

 


A.

Option A


B.

Option B


C.

Option C


D.

Option D





A.
  

Option A



An administrator transferred a key for SSH authentication to a home directory on a remote server. The key file was moved to .ssh/authorized_keys location in order to establish SSH connection without a password. However, the SSH command still asked for the password. Given the following output:

Which of the following commands would resolve the issue?


A.

restorecon .ssh/authorized_keys


B.

ssh_keygen -t rsa -o .ssh/authorized_keys


C.

chown root:root .ssh/authorized_keys


D.

chmod 600 .ssh/authorized_keys





A.
  

restorecon .ssh/authorized_keys



A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?


A.

Docker


B.

On-premises systems


C.

Cloud-based systems


D.

Kubernetes





D.
  

Kubernetes



A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:

Given there is a single CPU in the sever, which of the following is causing the slowness?


A.

The system is running out of swap space.


B.

The CPU is overloaded.


C.

The memory is exhausted.


D.

The processes are paging.





B.
  

The CPU is overloaded.



A Linux engineer receives reports that files created within a certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?


A.

chmod 775


B.

umask. 002


C.

chactr -Rv


D.

chown -cf





B.
  

umask. 002



The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:

Which of the following remediation steps will prevent the web service from running as a privileged user?


A.

Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file


B.

Updating the Environment File line in the [Service] section to/home/webservice/config


C.

Adding the User-webservice to the [Service] section of the service file


D.

Changing the:nulti-user.target in the [Install] section to basic.target





A.
  

Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file



Which of the following commands will display the operating system?


A.

uname -n


B.

uname -s


C.

uname -o


D.

uname -m





C.
  

uname -o



An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct version of this file?

 


A.

rpm -qa | grep kernel; uname -a


B.

yum -y update; shutdown -r now


C.

cat /etc/centos-release; rpm -Uvh --nodeps


D.

telinit 1; restorecon -Rv /boot





A.
  

rpm -qa | grep kernel; uname -a



A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?


A.

docker image save test test:v1


B.

docker image build test:vl


C.

docker image tag test test:vl


D.

docker image version test:v1





C.
  

docker image tag test test:vl



Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:

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


A.

The name www.comptia.org does not point to a valid IP address.


B.

The server 192.168.168.53 is unreachable.


C.

No default route is set on the server.


D.

The network interface eth0 is disconnected.





C.
  

No default route is set on the server.




Page 1 out of 37 Pages

CompTIA Linux+ XK0-005 Exam Details


Exam Code: XK0-005
Exam Name: CompTIA Linux+ Exam
Certification Name: Linux+
Certification Provider: CompTIA
Exam Questions: 90
Type of Questions: MCQs and performance-based
Exam Time: 90 minutes
Passing Score: 720
Exam Price: $369