Verified & Correct XK0-005 Practice Test Reliable Source Apr 24, 2023 Updated [Q44-Q64]

Share

Verified & Correct XK0-005 Practice Test Reliable Source Apr 24, 2023 Updated

Free CompTIA XK0-005 Exam Files Downloaded Instantly

NEW QUESTION 44
A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?

  • A. chmod +rws /project/access2all
  • B. chmod ugo+rwx /project/access2all
  • C. chmod 2770 /project/access2all
  • D. chmod +t /project/access2all

Answer: D

 

NEW QUESTION 45
An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct

  • A. telinit 1; restorecon -Rv /boot
  • B. cat /etc/centos-release; rpm -Uvh --nodeps
  • C. rpm -qa | grep kernel; uname -a
  • D. yum -y update; shutdown -r now

Answer: C

 

NEW QUESTION 46
Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:

Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?

  • A. chmod 666 file
  • B. setfacl -m g:finance:rw file
  • C. chattr +i file
  • D. chown it:finance file

Answer: B

 

NEW QUESTION 47
A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:

Which of the following commands will the administrator most likely run NEXT?

  • A. htop
  • B. strace
  • C. lsof
  • D. vmstat

Answer: D

 

NEW QUESTION 48
A systems administrator installed a new software program on a Linux server. When the systems administrator tries to run the program, the following message appears on the screen.

Which of the following commands will allow the systems administrator to check whether the system supports virtualization?

  • A. sysctl -a
  • B. lscpu
  • C. cat /sys/device/system/cpu/possible
  • D. dmidecode -s system-version

Answer: B

 

NEW QUESTION 49
A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:

Given there is a single CPU in the sever, which of the following is causing the slowness?

  • A. The memory is exhausted.
  • B. The system is running out of swap space.
  • C. The processes are paging.
  • D. The CPU is overloaded.

Answer: D

 

NEW QUESTION 50
A systems administrator is encountering performance issues. The administrator runs 3 commands with the following output

The Linux server has the following system properties
CPU: 4 vCPU
Memory: 50GB
Which of the following accurately describes this situation?

  • A. The system is under CPU pressure and will require additional vCPUs
  • B. The system has been running for over a year and requires a reboot.
  • C. The system requires more memory
  • D. Too many users are currently logged in to the system

Answer: B

 

NEW QUESTION 51
A systems administrator has been unable to terminate a process. Which of the following should the administrator use to forcibly stop the process?

  • A. kill -1
  • B. kill -HUP
  • C. kill -15
  • D. kill -TERM
  • E. kill -3

Answer: E

 

NEW QUESTION 52
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

  • A. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
  • B. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
  • C. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/#//q' /etc/systemd/journald.conf
  • D. journalctl --list-boots && systemctl restart systemd-journald.service

Answer: B

 

NEW QUESTION 53
A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server:

The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem:

Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

  • A. mount disk by-blkid
  • B. mount disk by device-id
  • C. fsck -A
  • D. mount disk by-label

Answer: A

 

NEW QUESTION 54
A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?

  • A. iptables -A OUTPUT -p udp -ra udp -dport 53 -j ACCEPT
  • B. systemctl reload firewalld
  • C. flrewall-cmd --zone-public --add-port-53/udp --permanent
  • D. ufw allow out dns

Answer: C

 

NEW QUESTION 55
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. Updating the Environment File line in the [Service] section to/home/webservice/config
  • B. Changing the:nulti-user.target in the [Install] section to basic.target
  • C. Adding the User-webservice to the [Service] section of the service file
  • D. Removing the ExecStarWusr/sbin/webserver -D SOPTIONS from the service file

Answer: D

 

NEW QUESTION 56
A Linux administrator needs to obtain a list of all volumes that are part of a volume group. Which of the following commands should the administrator use to accomplish this task?

  • A. fdisk -1
  • B. pvs
  • C. lvs
  • D. vgs

Answer: B

 

NEW QUESTION 57
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 58
While inspecting a recently compromised Linux system, the administrator identified a number of processes that should not have been running:

Which of the following commands should the administrator use to terminate all of the identified processes?

  • A. kill -9 "upload*.sh"
  • B. skill -9 "upload*.sh"
  • C. pkill -9 -f "upload*.sh"
  • D. killall -9 -upload*.sh"

Answer: D

 

NEW QUESTION 59
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:

Which of the following commands can be used to resolve this issue?

  • A. chown -R data/
  • B. chgrp -R 755 data/
  • C. chmod -R 777 data/
  • D. chattr -R -i data/

Answer: D

 

NEW QUESTION 60
A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

  • A. dd if=/dev/sda of=/tmp/sda.img
  • B. dd of=/dev/sda if=/tmp/sda.img
  • C. dd --of=/dev/sda --if=/tmp/sda.img
  • D. dd --if=/dev/sda --of=/tmp/sda.img

Answer: A

 

NEW QUESTION 61
A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:

The local machine DNS settings are:

Which of the following commands could the engineer use to query the DNS server to get mail server information?

  • A. dig @10.10.10.20 example.com ns
  • B. dig @example.com 10.10.10.20 ptr
  • C. dig @10.10.10.20 example.com mx
  • D. dig @example.com 10.10.10.20 a

Answer: C

 

NEW QUESTION 62
Joe, a user, is unable to log in to the Linux system Given the following output:

Which of the following command would resolve the issue?

  • A. pam_tally2 -u joe -r
  • B. usermod -s /bin/bash joe
  • C. passwd -u joe
  • D. chage -E 90 joe

Answer: B

 

NEW QUESTION 63
A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?

  • A. podman exec -ti app /bin/sh
  • B. docker run -ti app /bin/sh
  • C. podman run -d app /bin/bash
  • D. docker exec -d app /bin/bash

Answer: A

 

NEW QUESTION 64
......

Pass CompTIA XK0-005 exam Dumps 100 Pass Guarantee With Latest Demo: https://www.actualpdf.com/XK0-005_exam-dumps.html

The  XK0-005 PDF Dumps Greatest for the CompTIA Exam Study Guide!: https://drive.google.com/open?id=1YuNjszJ0ud2wggISPP3zymwGqWBDC9ic