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

XK0-006 Questions and Answers

Question # 6

Which of the following is a reason multiple password changes on the same day are not allowed?

A.

To avoid brute-forced password attacks by making them too long to perform

B.

To increase password complexity and the system ' s security

C.

To stop users from circulating through the password history to return to the originally used password

D.

To enforce using multifactor authentication with stronger encryption algorithms instead of passwords

Full Access
Question # 7

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?

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

Full Access
Question # 8

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

Full Access
Question # 9

A Linux server is experiencing slowness. A systems administrator obtains the following output:

top - load average: 2.43, 1.80, 2.32

Tasks: ... 154 zombie

%Cpu(s): 6.2 us, 5.1 sy, 0.0 ni, 79.2 id, 9.1 wa, ...

$ iostat -m 2

%user %nice %system %iowait %steal %idle

4.30 2.02 0.29 70.38 4.00 19.01

Which of the following explains the issue?

A.

The system ran out of swap space.

B.

The CPU is overutilized.

C.

The storage I/O latency is high.

D.

The system needs to be patched.

Full Access
Question # 10

Which of the following commands would a Linux administrator use to determine the temperature of a motherboard?

A.

ipmitool

B.

dmidecode

C.

lspci

D.

lm_sensors

Full Access
Question # 11

A systems administrator needs to check access to all company servers. The administrator uses the following script, which does not complete:

for i in $(cat /home/user1.file)

do

echo $i

ssh $i uptime

Which of the following is missing from the script?

A.

fi

B.

else

C.

while

D.

done

Full Access
Question # 12

Application owners are reporting that their application stops responding after several days of running, and they need to restart it. A Linux administrator obtains the following details from the dmesg command:

invoked oom-killer

Call Trace:

out_of_memory

oom_kill_process

The application owners mentioned that resources to the system have been increased, and the error takes longer to appear. Which of the following best describes the reason the process is being terminated by OOM?

A.

The CPU type is incompatible with the application.

B.

The kernel has panicked.

C.

The application might have a memory leak.

D.

The swap configuration is not correctly sized.

Full Access
Question # 13

A systems administrator needs to restore a backup to the /usr/app/data directory. Which of the following commands should the administrator use for this task?

A.

tar -xvzf /tmp/backup.tar.gz -C /usr/app/data

B.

tar -xvf /tmp/backup.tar.gz /usr/app/data

C.

tar -xvzf /usr/app/data /tmp/backup.tar.gz

D.

tar -xvzf /tmp/backup.tar.gz > /usr/app/data

Full Access
Question # 14

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

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

Full Access
Question # 15

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

Full Access
Question # 16

Which of the following most accurately describes a webhook?

A.

An authentication method for web-server communication

B.

An SNMP-based API for network device monitoring

C.

A means to transmit sensitive information between systems

D.

An HTTP-based callback function

Full Access
Question # 17

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

Full Access
Question # 18

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

Full Access
Question # 19

A Linux administrator updates the DNS record for the company using:

cat /etc/bind/db.abc.com

The revised partial zone file is as follows:

ns1 IN A 192.168.40.251

ns2 IN A 192.168.40.252

www IN A 192.168.30.30

When the administrator attempts to resolve www.abc.com to its IP address, the domain name still points to its old IP mapping:

nslookup www.abc.com

Server: 192.168.40.251

Address: 192.168.40.251#53

Non-authoritative answer:

Name: www.abc.com

Address: 199.168.20.81

Which of the following should the administrator execute to retrieve the updated IP mapping?

A.

systemd-resolve query www.abc.com

B.

systemd-resolve status

C.

service nslcd reload

D.

resolvectl flush-caches

Full Access
Question # 20

A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?

A.

net.ipv4.ip_multicast

B.

net.ipv4.ip_route

C.

net.ipv4.ip_local_port_range

D.

net.ipv4.ip_forward

Full Access
Question # 21

Which of the following is the first step when starting a new Python project on a Linux system?

A.

python -m venv /path/to/project

B.

python -m pip install -r /path/to/project

C.

export PYTHON_PATH=/path/to/project

D.

python -m source /path/to/project

Full Access
Question # 22

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?

A.

/etc/whois.conf

B.

/etc/resolv.conf

C.

/etc/nsswitch.conf

D.

/etc/dnsmasq.conf

Full Access
Question # 23

A Linux user needs to authenticate to a Windows Active Directory domain. Which of the following configuration files contains the domain configuration details?

A.

sssd.conf

B.

krb5.conf

C.

pam.conf

D.

smb.conf

Full Access
Question # 24

Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?

A.

GPG

B.

LUKS

C.

PKI certificates

D.

OpenSSL

Full Access
Question # 25

Which of the following best describes the role of initrd?

A.

It is required to connect to the system via SSH.

B.

It contains basic kernel modules and drivers required to start the system.

C.

It contains trusted certificates and secret keys of the system.

D.

It is required to initialize a random device within a Linux system.

Full Access
Question # 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?

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/

Full Access
Question # 27

An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?

A.

rmdir -p /home/user1/data

B.

ln -d /home/user1/data

C.

rm -r /home/user1/data

D.

cut -d /home/user1/data

Full Access
Question # 28

Joe, a user, has taken a position previously held by Ann. As a systems administrator, you

need to archive all the files from Ann ' s home directory and extract them into Joe ' s home

directory.

INSTRUCTIONS

Within each tab, click on an object to form the appropriate commands. Command objects may only be used once, but the spacebar _ object may be used multiple times. Not all objects will be used.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Question # 28

Question # 28

Full Access
Question # 29

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

Full Access
Question # 30

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?

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.

Full Access
Question # 31

Which of the following best describes PEP 8?

A.

A list of built-in Python modules

B.

A set of coding conventions for Python code

C.

A name for standard Python libraries

D.

A data structure in Python

Full Access
Question # 32

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

A.

USB ports

B.

Network speed

C.

Available swap

D.

CPU architecture

E.

Available memory

F.

Disk storage path

Full Access
Question # 33

An administrator wants to see all logs for the app.service systemd process. Which of the following commands should the administrator use to complete this task?

A.

cat /var/log/messages

B.

systemctl status app.service

C.

systemd-analyze unit-files app.service

D.

journalctl -u app.service

Full Access
Question # 34

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:

Question # 34

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

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.

Full Access
Question # 35

A systems administrator wants to update and apply changes in an existing file in a remote Git repository. Which of the following is the last Git command the administrator should execute to complete this process?

A.

git commit -m " Updated with new information "

B.

git checkout -b update-feature

C.

git pull origin main

D.

git push origin update-feature

Full Access
Question # 36

An administrator is investigating the reason a Linux workstation is not resolving the website http://www.comptia.org. The administrator executes some commands and receives the following output:

Question # 36

Which of the following is the most likely cause?

A.

The static entry needs to be removed from /etc/hosts.

B.

The remote website does not support IPv6, and the workstation requires it.

C.

The firewall needs to be modified to allow outbound HTTP and HTTPS.

D.

The nameserver in /etc/resolv.conf needs to be updated to 8.8.8.8

Full Access
Question # 37

(Partial question based on visible options)

A.

(not visible)

B.

(not visible)

C.

pam.conf

D.

smb.conf

Full Access
Question # 38

A systems administrator is decommissioning a service. Which of the following commands should the administrator use to make sure users cannot start the service again?

A.

systemctl mask service

B.

systemctl kill service

C.

systemctl isolate service

D.

systemctl disable service

Full Access
Question # 39

In the echo " profile-$num-$name " line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?

A.

echo " profile-$(num)-$name "

B.

echo ' profile-$num-$name '

C.

echo " profile- ' $num ' -$name "

D.

echo " profile-${num}-$name "

Full Access
Question # 40

A Linux user runs the following command:

nohup ping comptia.com &

Which of the following commands should the user execute to attach the process to the current terminal?

A.

renice

B.

jobs

C.

exec

D.

fg

Full Access
Question # 41

A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?

A.

sudo rm -rf /dev/sda1

B.

sudo shred /dev/sda1

C.

sudo parted rm /dev/sda1

D.

sudo dd if=/dev/null of=/dev/sda1

Full Access
Question # 42

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

Question # 42

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

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.

Full Access
Question # 43

A user reports recurrent issues with an application, which is currently operational. The systems administrator gathers the following outputs to diagnose the issue:

Out of memory: Kill process (mariadb)

Killed process (mariadb)

mariadb invoked oom-killer

egrep ' Out of memory ' /var/log/messages

Multiple entries showing mariadb being killed by OOM killer

free -m

Mem: total 15819, used 10026, free 5174, available 5134

Swap: 0 0 0

sar -r

kbmemused ~67%, no swap usage

Which of the following is a possible cause of this issue?

A.

A backup is consuming all the system memory.

B.

The system is using all the swap.

C.

The cached memory is approaching the system ' s limits.

D.

The process is showing signs of a memory leak.

Full Access
Question # 44

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

A.

Log aggregation

B.

Health checks

C.

Webhooks

D.

Threshold monitoring

Full Access