Winter Special Sale - Limited Time 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 575363r9

Welcome To DumpsPedia

XK0-006 Sample Questions Answers

Questions 4

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?

Options:

A.

dnf history

B.

dnf list

C.

dnf info

D.

dnf search

Buy Now
Questions 5

A Linux administrator needs to analyze a compromised disk for traces of malware. To complete the analysis, the administrator wants to make an exact, block-level copy of the disk. Which of the following commands accomplishes this task?

Options:

A.

cp -rp /dev/sdc/* /tmp/image

B.

cpio -i /dev/sdc -ov /tmp/image

C.

tar cvzf /tmp/image /dev/sdc

D.

dd if=/dev/sdc of=/tmp/image bs=8192

Buy Now
Questions 6

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?

Options:

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

Buy Now
Questions 7

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?

Options:

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.

Buy Now
Questions 8

A systems administrator is writing a script to analyze the number of files in the directory /opt/application/home/. Which of the following commands should the administrator use in conjunction with ls -l | to count the files?

Options:

A.

less

B.

tail -f

C.

tr -c

D.

wc -l

Buy Now
Questions 9

A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels. Which of the following should the administrator do?

Options:

A.

Create an automated process to retrieve logs from the server by demand.

B.

Implement a centralized log aggregation solution.

C.

Configure daily automatic backups of logs to remote storage.

D.

Deploy log rotation procedures to manage the records.

Buy Now
Questions 10

A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?

Options:

A.

git init

B.

git clone

C.

git config

D.

git add

Buy Now
Questions 11

A Linux administrator tries to install Ansible in a Linux environment. One of the steps is to change the owner and the group of the directory /opt/Ansible and its contents. Which of the following commands will accomplish this task?

Options:

A.

groupmod -g Ansible -n /opt/Ansible

B.

chown -R Ansible:Ansible /opt/Ansible

C.

usermod -aG Ansible /opt/Ansible

D.

chmod -c /opt/Ansible

Buy Now
Questions 12

Which of the following utilities supports the automation of security compliance and vulnerability management?

Options:

A.

SELinux

B.

Nmap

C.

AIDE

D.

OpenSCAP

Buy Now
Questions 13

A Linux administrator needs to create and then connect to the app-01-image container. Which of the following commands accomplishes this task?

Options:

A.

docker run -it app-01-image

B.

docker start -td app-01-image

C.

docker build -ic app-01-image

D.

docker exec -dc app-01-image

Buy Now
Questions 14

To perform a live migration, which of the following must match on both host servers? (Choose two)

Options:

A.

USB ports

B.

Network speed

C.

Available swap

D.

CPU architecture

E.

Available memory

F.

Disk storage path

Buy Now
Questions 15

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?

Options:

A.

Deployment

B.

Network

C.

Service

D.

Pod

Buy Now
Questions 16

Which of the following Ansible components contains a list of hosts and host groups?

Options:

A.

Fact

B.

Inventory

C.

Playbook

D.

Collection

Buy Now
Questions 17

Which of the following describes the method of consolidating system events to a single location?

Options:

A.

Log aggregation

B.

Health checks

C.

Webhooks

D.

Threshold monitoring

Buy Now
Questions 18

A systems administrator needs to set the IP address of a new DNS server. Which of the following files should the administrator modify to complete this task?

Options:

A.

/etc/whois.conf

B.

/etc/resolv.conf

C.

/etc/nsswitch.conf

D.

/etc/dnsmasq.conf

Buy Now
Questions 19

Which of the following commands should an administrator use to convert a KVM disk file to a different format?

Options:

A.

qemu-kvm

B.

qemu-ng

C.

qemu-io

D.

qemu-img

Buy Now
Questions 20

An administrator receives the following output while attempting to unmount a filesystem:

umount /data1: target is busy.

Which of the following commands should the administrator run next to determine why the filesystem is busy?

Options:

A.

ps -f /data1

B.

du -sh /data1

C.

top -d /data1

D.

lsof | grep /data1

Buy Now
Questions 21

A Linux administrator just finished setting up passwordless SSH authentication between two nodes. However, upon test validation, the remote host prompts for a password. Given the following logs:

Which of the following is the most likely cause of the issue?

Options:

A.

The SELinux policy is incorrectly targeting the unconf ined_u context.

B.

The administrator forgot to restart the SSHD after creating the authorizedjceys file.

C.

The authorized_keys file has the incorrect root permissions assigned.

D.

The authorized_keys file does not have the correct security context to match SELinux policy.

Buy Now
Questions 22

A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the same time?

Options:

A.

cpio -o /backups/home.tar.xz /home/

B.

rsync -z /backups/home.tar.xz /home/

C.

tar -cJf /backups/home.tar.xz /home/

D.

dd of=/backups/home.tar.xz if=/home/

Buy Now
Questions 23

An administrator receives reports that a web service is not responding. The administrator reviews the following outputs:

Which of the following is the reason the web service is not responding?

Options:

A.

The private key needs to be renamed from server.crt to server, key so the service can find it.

B.

The private key does not match the public key, and both keys should be replaced.

C.

The private key is not in the correct location and needs to be moved to the correct directory.

D.

The private key has the incorrect permissions and should be changed to 0755 for the service.

Buy Now
Questions 24

A user states that an NFS share Is reporting random disconnections. The systems administrator obtains the following information

Which of the following best explains the symptoms that are being reported?

Options:

A.

The mount point is incorrect for the NFS share.

B.

The IP address of the NFS share is incorrect.

C.

The filesystem is nearly full and is reporting errors.

D.

The interface is reporting a high number of errors and dropped packets.

Buy Now
Questions 25

A junior system administrator removed an LVM volume by mistake.

INSTRUCTIONS

Part 1

Review the output and select the appropriate command to begin the recovery process.

Part 2

Review the output and select the appropriate command to continue the recovery process.

Part 3

Review the output and select the appropriate command to complete the recovery process and access the underlying data.

Options:

Buy Now
Questions 26

A Linux systems administrator needs to extract the contents of a file named /home/dev/web.bkp to the /var/www/html/ directory. Which of the following commands should the administrator use?

Options:

A.

cd /var/www/html/ && gzip -c /home/dev/web.bkp | tar xf -

B.

pushd /var/www/html/ && cpio -idv < /home/dev/web.bkp && popd

C.

tar -c -f /home/dev/web.bkp /var/www/html/

D.

unzip -c /home/dev/web.bkp /var/www/html/

Buy Now
Exam Code: XK0-006
Exam Name: CompTIA Linux+ V8 Exam
Last Update: Feb 3, 2026
Questions: 87
$66  $164.99
$50  $124.99
$42  $104.99
buy now XK0-006