Exit demo XK0-006 CompTIA Linux+ PDF format · free preview

CompTIA XK0-006 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/xk0-006.html

Question 1
Single choice

A systems administrator needs to integrate a new storage array into the company's existing storage pool.
The administrator wants to ensure that the server is able to detect the new storage array.

Which of the following commands should the administrator use to ensure that the new storage array is presented to the systems?

A.

lsscsi

B.

lsusb

C.

lsipc

D.

lshw

Question 2
Single choice

A Linux systems administrator is running an important maintenance task that consumes a large amount of CPU, causing other applications to slow.

Which of the following actions should the administrator take to help alleviate the issue?

A.

Increase the available CPU time with pidstat.

B.

Lower the priority of the maintenance task with renice.

C.

Run the maintenance task with nohup.

D.

Execute the other applications with the bg utility.

Question 3
Single choice

A Linux administrator attempts to log in to a server over SSH as root and receives the following error message: Permission denied, please try again. The administrator is able to log in to the console of the server directly with root and confirms the password is correct. The administrator reviews the configuration of the SSH service and gets the following output:

Based on the above output, which of the following will most likely allow the administrator to log in over SSH to the server?

A.

Log out other user sessions because only one is allowed at a time.

B.

Enable PAM and configure the SSH module.

C.

Modify the SSH port to use 2222.

D.

Use a key to log in as root over SSH.

Question 4
Single choice

Which of the following is a protocol for accessing distributed directory services containing a hierarchy of users, groups, machines, and organizational units?

A.

SMB

B.

TLS

C.

LDAP

D.

KRB-5

Question 5
Single choice

Users report that a Linux system is unresponsive and simple commands take too long to complete. The Linux administrator logs in to the system and sees the following:

Output 1:

10:06:29 up 235 day, 19:23, 2 users, load average: 8.71, 8.24, 7.71

Which of the following is the system experiencing?

A.

High latency

B.

High uptime

C.

High CPU load

D.

High I/O wait times

Question 6
Single choice

A systems administrator is having issues with a third-party API endpoint. The administrator receives the following output:

Which of the following actions should the administrator take to resolve the issue?

A.

Open a secure port in the server's firewall.

B.

Request a new API endpoint from a third party.

C.

Review and fix the DNS client configuration file.

D.

Enable internet connectivity on the host.

Question 7
Single choice

A systems administrator needs to open the DNS TCP port on a Linux system from network 10.0.0.0/24.

Which of the following commands should the administrator use for this task?

A.

ufw allow dns/tcp to 10.0.0.0/24

B.

ufw enable 53/tcp from 10.0.0.0/24

C.

ufw allow 53/tcp from 10.0.0.0/24

D.

ufw disable from 10.0.0.0/24

Question 8
Single choice

A systems administrator is working on an SFTP server configuration.

Which of the following commands will best enable the connectivity to that service from the 10.10.0.0/24 network?

A.

sudo ufw allow from 10.10.0.0/24 to any port 22

B.

sudo ufw allow in on eth0 to any port 22

C.

sudo ufw allow from 10.10.0.0/24

D.

sudo ufw allow 0:22/tcp from 10.10.0.0

Question 9
Single choice

A systems administrator is receiving complaints about slow performance and system crashes. The administrator suspects memory and CPU issues.

Which of the following is the first action the administrator should take to troubleshoot and resolve these issues?

A.

Run resource monitoring tools like top or htop to view the current CPU and memory use.

B.

Look through the system logs and error messages to find any faults involving the CPU and memory.

C.

Remove and replace the CPU and memory components to address hardware issues.

D.

Reboot the server to clear any CPU and memory congestion.

Question 10
Single choice

A Linux administrator needs to rebuild a container with the httpd service in order to change some default parameters.

Which of the following should be the first command line in the Dockerfile?

A.

FROM httpd

B.

BASE httpd

C.

USE httpd

D.

INHERIT httpd

Showing 10 of 178 questions · Unlock the full set