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: 1 / 5
Total 149 questions

Which of the following can be implemented with PAM to detect and block dictionary attacks?

A.

pam_tally2

B.

pam_limits

C.

pam_unix

D.

pam_ldap

On a Kubernetes cluster, which of the following resources should be created in order to expose a port so it is publicly accessible on the internet?

A.

Deployment

B.

Network

C.

Service

D.

Pod

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.

Following the completion of monthly server patching, a Linux administrator receives reports that a critical application is not functioning. Which of the following commands should help the administrator determine which packages were installed?

A.

dnf history

B.

dnf list

C.

dnf info

D.

dnf search

A Linux administrator needs to change the server name to comptia1. Which of the following commands should the administrator use?

A.

export HOSTNAME=comptia1

B.

echo " comptia1 " > > /etc/resolv.conf

C.

hostnamectl set-hostname comptia1

D.

systemctl daemon-reload -H comptia1

Which of the following does dmesg display?

A.

Incorrect login attempts

B.

" Session closed " messages

C.

Window manager warnings

D.

USB device connections

Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should the administrator use?

A.

docker start

B.

docker ps

C.

docker run

D.

docker images

Which of the following commands can be used to display real-time running processes on a Linux system?

A.

ps

B.

top

C.

df

D.

free

An administrator needs to append the output of a Linux command to an existing file for later analysis. Which of the following command-line strings should the administrator use?

A.

cat ls > file.txt

B.

tee ls > awk file.txt

C.

echo ls | sed -i file.txt

D.

ls > > file.txt

A Linux user needs to download the latest Debian image from a Docker repository. Which of the following commands makes this task possible?

A.

docker image init debian

B.

docker image pull debian

C.

docker image import debian

D.

docker image save debian