Latest [Aug 04, 2023] CompTIA XK0-005 Real Exam Dumps PDF
XK0-005 Practice Test Questions Updated 178 Questions
To pass the CompTIA XK0-005 exam, candidates must demonstrate a solid understanding of Linux system administration, including command-line interfaces, system services, network protocols, and file systems. They must also be able to troubleshoot common issues and apply best practices for system maintenance and security. XK0-005 exam is challenging and requires a significant amount of preparation and study, but it is a valuable certification for IT professionals looking to advance their careers in Linux system administration.
NEW QUESTION # 79
A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?
- A. rpm -e
- B. rpm -q
- C. rpm -d
- D. rpm -s
Answer: A
NEW QUESTION # 80
A Linux system fails to start and delivers the following error message:
Which of the following commands can be used to address this issue?
- A. mkfs.ext4 /dev/sda1
- B. fdisk /dev/sda1
- C. partprobe /dev/sda1
- D. fsck.ext4 /dev/sda1
Answer: D
NEW QUESTION # 81
A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:
The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?
- A. WANTEDBY=mariadb.service
- B. ONFAILURE=mariadb.service
- C. REQUIRES=mariadb.service
- D. TRIGGERS=mariadb.service
Answer: C
NEW QUESTION # 82
A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list. Which of the following commands should the administrator use to accomplish this task?
- A. find . -type f -print | xrags grep -li denied
- B. find . -type f -print | xrags grep -ln denied
- C. find . -type f -print | xrags grep -wL denied
- D. find . -type f -print | xrags grep -nv denied
Answer: B
NEW QUESTION # 83
Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.
To which of the following configuration files will the required changes need to be made?
- A. /etc/security/limits.conf
- B. /etc/login.defs
- C. /etc/default/useradd
- D. /etc/profile
Answer: B
NEW QUESTION # 84
A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?
- A. ip route get 192.163.1.40 from 10.0.2.15
- B. ip route 192.169.1.40 to 10.0.2.15
- C. route -n 192.168.1.40 from 10.0.2.15
- D. route -e get to 192.168.1.40 from 10.0.2.15
Answer: A
NEW QUESTION # 85
Which of the following directories is the mount point in a UEFI system?
- A. /sys/efi
- B. /efi
- C. /etc/efi
- D. /boot/efi
Answer: D
NEW QUESTION # 86
After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?
- A. systemctl stop
- B. systemctl reinstall
- C. systemctl status
- D. systemctl daemon-reload
Answer: C
NEW QUESTION # 87
A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?
- A. SQL
- B. YAML
- C. HTML
- D. JSON
Answer: B
NEW QUESTION # 88
A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?
- A. gedit & disown
- B. fg %1
- C. kill 9 %1
- D. bg %1 job name
Answer: A
NEW QUESTION # 89
A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?
- A. Mount the filesystem manually.
- B. Sync the mount units.
- C. Create a mount unit and enable it to be started at boot.
- D. Remount all the missing filesystems
Answer: D
NEW QUESTION # 90
The security team has identified a web service that is running with elevated privileges A Linux administrator is working to change the systemd service file to meet security compliance standards. Given the following output:
Which of the following remediation steps will prevent the web service from running as a privileged user?
- A. Adding the User-webservice to the [Service] section of the service file
- B. Changing the:nulti-user.target in the [Install] section to basic.target
- C. Updating the Environment File line in the [Service] section to/home/webservice/config
- D. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file
Answer: D
NEW QUESTION # 91
Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.
INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.
Typing "help" in the terminal will show a list of relevant event commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Answer:
Explanation:
yum install httpd
systemctl --now enable httpd
systemctl status httpd
netstat -tunlp | grep 80
pkill <processname>
systemctl restart httpd
systemctl status httpd
NEW QUESTION # 92
Due to low disk space, a Linux administrator finding and removing all log files that were modified more than 180 days ago. Which of the following commands will accomplish this task?
- A. find /var/log -type d -mtime +180 -print -exec rm {} \;
- B. find /var/log -type f -mtime +180 -exec rm {} \
- C. find /var/log -type f -modified +180 -rm
- D. find /var/log -type c -atime +180 -remove
Answer: A
NEW QUESTION # 93
A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)
- A. fsck /dev/sdc1
- B. fdisk -l /dev/sdc1
- C. mkfs.ext4 /dev/sdc1
- D. echo "/dev/sdc1 /data ext4 defaults 0 0" >> /etc/fstab
- E. df -h /data
- F. echo "/data /dev/sdc1 ext4 defaults 0 0" >> /etc/fstab
Answer: C,D
Explanation:
"modify the /etc/fstab text file to automatically mount the new partition by opening it in an editor and adding the following line:
/dev/ xxx 1 /data ext4 defaults 1 2
where xxx is the device name of the storage device"
https://learning.oreilly.com/library/view/mastering-linux-system/9781119794455/b01.xhtml
NEW QUESTION # 94
A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?
- A. tail -n 20
- B. tail -v 20
- C. tail -c 20
- D. tail -l 20
Answer: A
NEW QUESTION # 95
Users have been unable to save documents to /home/tmp/temp and have been receiving the following error:
Path not found
A junior technician checks the locations and sees that /home/tmp/tempa was accidentally created instead of /home/tmp/temp. Which of the following commands should the technician use to fix this issue?
- A. cp /home/tmp/tempa /home/tmp/temp
- B. ls /home/tmp/tempa
- C. mv /home/tmp/tempa /home/tmp/temp
- D. cd /temp/tmp/tempa
Answer: C
NEW QUESTION # 96
A Linux administrator is trying to remove the ACL from the file /home/user/dat a. txt but receives the following error message:
Given the following analysis:
Which of the following is causing the error message?
- A. The administrator is not using a highly privileged account.
- B. SELinux file context is denying the ACL changes.
- C. File attributes are preventing file modification.
- D. The filesystem is mounted with the wrong options.
Answer: C
NEW QUESTION # 97
A Linux systems administrator is setting up a new web server and getting 404 - NOT FOUND errors while trying to access the web server pages from the browser. While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:
Which of the following commands will BEST resolve this issue?
- A. sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
- B. restorecon -R -v /var/www/html
- C. setsebool -P httpd_can_network_connect_db on
- D. setenforce 0
Answer: B
NEW QUESTION # 98
A systems administrator wants to be sure the sudo rules just added to /etc/sudoers are valid. Which of the following commands can be used for this task?
- A. cat /etc/sudoers | tee test
- B. test -f /etc/sudoers
- C. visudo -c
- D. sudo vi check
Answer: C
NEW QUESTION # 99
......
CompTIA XK0-005 Dumps - Secret To Pass in First Attempt: https://prep4sure.dumpstests.com/XK0-005-latest-test-dumps.html