Pre-Summer Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: xmas50

CompTIA XK0-006 - CompTIA Linux+ V8 Exam

Page: 3 / 5
Total 149 questions

Due to application compatibility issues, the Python 3 OpenSSL library should not be upgraded. Which of the following commands should the systems administrator use to ensure the package stays at the current version?

A.

dpkg --hold python3-openssl

B.

apt set-selections python3-openssl

C.

apt-mark hold python3-openssl

D.

echo " python3-openssl hold " | apt set-selections

Which of the following Ansible components is used to define groups and individual hosts and can include variables specific to each host or group?

A.

Modules

B.

Inventory

C.

Playbooks

D.

Handlers

A Linux administrator notices that an application is having trouble connecting to an external database. Which of the following commands should the administrator use to validate the connection to the remote port exposed by a database server?

A.

dig MX db.comptia.org:3306

B.

nc -v db.comptia.org 3306

C.

arp -an | grep db.comptia.org | grep 3306

D.

ss -plant | grep 3306

The security manager at a company notifies a systems administrator of open vulnerabilities on the Linux system. The administrator receives the following information while logged in to the server:

$ date

Thu Jul 11 16:12:42 UTC 2024

$ getenforce

Enforcing

$ dnf history

ID | Command Line | Date and time | Action(s) | Altered

45 | update -y | 2023-07-09 | Update | 27

46 | install httpd | 2023-01-11 | Install | 9

47 | update -y | 2023-08-08 | Upgrade | 44

Which of the following is the most likely security concern?

A.

The server has not been updated in a year and should be patched.

B.

The system has httpd installed and needs to be removed.

C.

The system is configured to use UTC time and should be set to EDT.

D.

The system has SELinux set to enforcing and needs to be disabled.

A DevOps engineer made some changes to files in a local repository. The engineer realizes that the changes broke the application and the changes need to be reverted back. Which of the following commands is the best way to accomplish this task?

A.

git pull

B.

git reset

C.

git rebase

D.

git stash

Which of the following is the best use of AI within a Linux environment?

A.

Giving full control of the Linux server to the AI engine

B.

Uploading company internal messaging for user validation

C.

Outsourcing proprietary source code development to the LLM

D.

Generating an nginx configuration file that can be used for testing

Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands;

Which of the following is the cause of the issue?

A.

The DNS entry does not have a valid IP address.

B.

The SSH service has not been allowed on the firewall.

C.

The server load average is too high.

D.

The wrong protocol is being used to connect to the web server.

An administrator added a new disk to expand the current storage. Which of the following commands should the administrator run first to add the new disk to the LVM?

A.

vgextend

B.

lvextend

C.

pvcreate

D.

pvresize

A systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?

A.

systemctl is-active --services

B.

systemctl list-sockets --type=services

C.

systemctl is-enabled --services

D.

systemctl list-units --type=services

A Linux administrator attempts to unmount the local filesystem /data in order to mount a new volume. However, the administrator receives the following error message:

umount: /data: target is busy

Which of the following commands should the administrator run to resolve the issue?

A.

tree -g /data

B.

ls -ld /data

C.

stat -f /data

D.

fuser -mk /data