XK0-006 CompTIA Linux+ V8 Exam Questions and Answers
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?
An administrator wants to search a file named myFile and look for all occurrences of strings containing at least five characters, where characters two and five are i, but character three is not b. Which of the following commands should the administrator execute to get the intended result?
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?
Which of the following commands should a Linux administrator use to determine the version of a kernel module?
A Linux administrator needs to compare two files and provide the output in the following format:
2,3d1
< Line 2
< Line 3
4a3
Line 5
Which of the following commands should the administrator use to perform the task?
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.
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?
Which of the following describes what Ansible is used for in the context of IT infrastructure?
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 systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?
A Linux administrator wants to use AI to deploy infrastructure as code. Which of the following is a best practice regarding the use of AI for this task?
Which of the following is the location for built-in Linux executable files and utilities?
The development team asks a Linux administrator to help diagnose a connectivity issue that is occurring with a newly developed software. The Linux administrator reviews the following output:
$ wget -vvv https://api.newapp.comptia.org/v2/health
Resolving proxy.comptia.org (proxy.comptia.org)... connected.
ERROR: The certificate of ' api.newapp.comptia.org ' is not trusted.
ERROR: The certificate of ' api.newapp.comptia.org ' does not have a known issuer.
Which of the following actions is the best way to resolve the issue?
A Linux administrator installed a new program inside $HOME/.local/bin and is trying to execute it without using an absolute path. Which of the following should the administrator use for this task?
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 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?
Which of the following can reduce the attack surface area in relation to Linux hardening?
While hardening a system, an administrator runs a port scan with Nmap, which returned the following output:
Which of the following is the best way to address this security issue?
Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?
Which of the following commands is used to ensure a service starts automatically at boot on a system using systemd?
A Linux software developer wants to use AI to optimize source code used in a commercial product. Which of the following steps should the developer take first?
Which of the following commands can be used to display real-time running processes on a Linux system?
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?
After receiving a monitoring call, an administrator checks the Linux server for processes that have completed execution but have not been removed yet from the process table. Which of the following represents the process state for which the administrator should search?
Which of the following commands should an administrator use to convert a KVM disk file to a different format?
You are a systems administrator and have created an uncompressed backup of the
application directory. Several hours later, you must restore the application from backup.
INSTRUCTIONS
Within each tab, click on an object to form the appropriate command used to create the
backup and restore the application.
Command objects may only be used once, and not all will be used. Click the arrow to
remove any unwanted objects from your command.
If at any time you would like to bring back the initial state of the simulation, please click
the Reset All button.
Which of the following utilities supports the automation of security compliance and vulnerability management?
Which of the following is a reason multiple password changes on the same day are not allowed?
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 Linux administrator needs to change the server name to comptia1. Which of the following commands should the administrator use?
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?
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?
Which of the following commands is used to display detailed information about block devices on a Linux system?
A systems administrator reviews the package management history and sees the following entries:
46 install httpd Install 9
47 update -y Upgrade 44
Which of the following commands should the administrator use to undo the installation of the httpd package from transaction 46?
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:
Which of the following is the most likely cause?
To perform a live migration, which of the following must match on both host servers? (Choose two)
An administrator set up a new user account called " test " . However, the user is unable to change their password. Given the following output:
Which of the following is the most likely cause of this issue?
