Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

Pass Your XK0-004 Dumps as PDF Updated on 2021 With 266 Questions [Q36-Q57]

Share

Pass Your XK0-004 Dumps as PDF Updated on 2021 With 266 Questions

CompTIA XK0-004 Real Exam Questions and Answers FREE


Benefits of the CompTIA Linux+ Certification

Given that Linux is becoming one of the most developing areas in the IT field, the CompTIA Linux+ certification indicates that an individual has all the right qualifications in a specific field. Beyond that here are a few benefits of possessing the certificate:

  • CompTIA Linux+ is vendor-neutral, that is why the skills and knowledge gained in preparing for its test can be applied to different systems. In other words, you will be able to effectively work with other tools that have UNIX and macOS.
  • Few IT experts have Linux certification. A recent study indicated that major IT openings had less or no individuals with such accreditation during a job search. In view of this, with Linux+, your application will be among the first.
  • It puts you ahead of others in the professional sphere. Particularly now that the job market in the IT industry requires one to have valuable skills, with Linux+, you are certain to have an edge over competitors for the position you seek.

 

NEW QUESTION 36
Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely?

  • A. RPC
  • B. KDE
  • C. X11
  • D. VNC

Answer: D

 

NEW QUESTION 37
A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications:
x64 bit
3.0GHz speed
Minimum quad core
The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat/proc/cpuinfo. The output of the command is as follows:

Which of the following is the recommended course of action the administrator should take based on this output?

  • A. Recompile the Linux kernel to support the installation.
  • B. Procure new equipment that matches the recommended specifications
  • C. Reconfigure lib modules to support the new application.
  • D. Install the application, as the system meets the application requirements

Answer: D

 

NEW QUESTION 38
A user issues the following command:
ls -l /var/log | egrep -e '^d[rwx]{3}.*[rw-]{3}.*'
The list of files in the system is shown below:

Which of the following results matches the command issued?

  • A. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
  • B. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt
    drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
  • C. -rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log
    -rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log
    -rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log
  • D. drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
    drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades

Answer: C

 

NEW QUESTION 39
Given the output below:

Which of the following commands can be used to remove MyPhoto.jpg from the current directory?

  • A. ln -rm ./Pictures/photo.jpg
  • B. unlink ./MyPhoto.jpg
  • C. del Pictures/photo.jpg
  • D. rm -rf ./Pictures
  • E. rm -f MyPhoto.jpg

Answer: A

Explanation:
Explanation/Reference:

 

NEW QUESTION 40
A Linux administrator built a GitLab server. Later that day, a software engineer tried to access the server to upload the repository during the final step of installation. The software engineer could not access the website. Which of the following firewall rules would allow access to this site?

  • A. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, ESTABLISHED -j ACCEPT
  • B. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate RELATED, ESTABLISHED -j ACCEPT
  • C. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, ESTABLISHED -j REJECT
  • D. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate ESTABLISHED -j ACCEPT

Answer: B

Explanation:
Reference:
https://serverfault.com/questions/578730/when-using-iptables-firewall-rules-why-assert-new-state-on-all-allowed-ports

 

NEW QUESTION 41
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?

  • A. modprobe --usb
  • B. lsusb
  • C. cat /proc/USB
  • D. lspci

Answer: B

Explanation:
Explanation/Reference: https://linuxhint.com/list-usb-devices-linux/

 

NEW QUESTION 42
A 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 commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
CentOS Command Prompt

Answer:

Explanation:
See explanation below
Explanation
Solution below.

 

NEW QUESTION 43
Due to security policies, a restriction was implemented that forbids direct access to the database server. The junior administrator needs to connect using SSH tunneling. Which of the following commands allows the junior administrator to connect from a desktop?

Answer: D

Explanation:
Explanation

 

NEW QUESTION 44
An administrator receives a warning about a file system filling up, and then identifies a large file located at
/tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?

  • A. pkill /tmp/largelogfile
  • B. ps -ef | grep largelogfile
  • C. lsof | grep largelogfile
  • D. pgrep largelogfile

Answer: C

 

NEW QUESTION 45
A Linux administrator recently reprovisioned a new corporate web server to replace a legacy one. To minimize the impact on the company's users, the administrator modified the network and DNS settings of the new server to be the same as the legacy server.
When attempting to log in to the new server remotely over SSH, the following error message is displayed:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Which of the following should the administrator do to resolve the issue?

  • A. Remove the entry for the web server from the known_hosts file on the local machine.
  • B. Restart the network services on both the remote server and the local machine.
  • C. Add the administrator's public key to the authorized_keys on the remote server.
  • D. Update the /etc/hosts file on the remote server and local machine.

Answer: C

 

NEW QUESTION 46
A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstatfile, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1on which the database application was installed appears to have failed.

Which of the following steps should the administrator take to remove the device /dev/sdb1from the RAID array md0? (Choose two.)

  • A. racadm --remove /dev/sdb1
  • B. mdadm /dev/sdb1 --fail /dev/md0
  • C. mdadm /dev/md0 --remove /dev/sdb1
  • D. racadm --fail /dev/sdb1
  • E. mdadm /dev/md0 --fail /dev/sdb1
  • F. mdadm /dev/sdb1 --remove /dev/md0

Answer: C,E

 

NEW QUESTION 47
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?

  • A. echo "kill bluetooth" > /etc/modprobe.d/kill-bluetooth
  • B. echo "rmod bluetooth" > /etc/modprobe.d/rmmod-bluetooth
  • C. echo "modprobe bluetooth" > /etc/modprobe.d/modprbe-bluetooth
  • D. echo "blacklist bluetooth" > /etc/modprobe.d/blacklist-bluetooth

Answer: C

 

NEW QUESTION 48
A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?

  • A. du -a /home/User3/*
  • B. du -sh /home/User/
  • C. find . -name /home/User3 -print
  • D. df -k /home/User/files.txt

Answer: B

 

NEW QUESTION 49
A systems administrator is implementing disk quotas on /home. During the process, the administrator receives the following error:
Cannot find filesystem to check or filesystem not mounted with user quota option.
Which of the following is the correct order of steps the administrator should follow to resolve this error?

  • A. 1. Create the quota database files and generate the disk usage table.
    2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
    3. Remount /home.
    4. Assign user quota policies.
  • B. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
    2. Create the quota database files and generate the disk usage table.
    3. Remount /home.
    4. Assign user quota policies.
  • C. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
    2. Remount /home.
    3. Create the quota database files and generate the disk usage table.
    4. Assign user quota policies.
  • D. 1. Assign user quota policies.
    2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.
    3. Create the quota database files and generate the disk usage table.
    4. Remount /home.

Answer: C

 

NEW QUESTION 50
A systems administrator needs to retrieve specific fields from a csv file. Which of the following tools would accomplish this task?

  • A. echo
  • B. sort
  • C. print
  • D. awk

Answer: D

 

NEW QUESTION 51
A junior systems administrator is diagnosing an issue with latency. The administrator issues the command mtr www.comptia.orgat a terminal and receives the following output:

Given this scenario and the output, which of the following should be reported to the network team for investigation? (Choose two.)

  • A. Host 2 is experiencing low bandwidth, indicating the ISP is blocking traffic.
  • B. Host 1 is set to filter ICMP echo packets.
  • C. Host 2 is experiencing high packet loss, indicating the link is overloaded.
  • D. Host 3 is set to filter ICMP reply packets.
  • E. Host 3 is set to filter ICMP echo packets.
  • F. Host 1 is set to filter ICMP reply packets.

Answer: C,E

 

NEW QUESTION 52
A systems administrator needs to connect to a remote Linux machine to run system updates from within a graphical interface. Which of the following should the administrator use?

  • A. Wayland
  • B. MATE
  • C. Unity
  • D. VNC

Answer: D

 

NEW QUESTION 53
Which of the following configuration files should be modified to disable Ctrl-Alt-Del in Linux?

  • A. /etc/securetty
  • B. /etc/security/limits.conf
  • C. ~/.bash_profile
  • D. /etc/inittab

Answer: D

Explanation:
Explanation/Reference: https://www.linuxtechi.com/disable-reboot-using-ctrl-alt-del-keys/

 

NEW QUESTION 54
An administrator needs to see a list of the system user's encrypted passwords. Which of the following Linux files does the administrator need to read?

  • A. /etc/skel
  • B. /etc/pw
  • C. /etc/shadow
  • D. /etc/passwd

Answer: D

Explanation:
Explanation/Reference: https://www.cyberciti.biz/faq/where-are-the-passwords-of-the-users-located-in-linux/

 

NEW QUESTION 55
A Linux administrator has installed a web application firewall in front of a web server running on HTTP port
8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:
Output of sysctl -acommand:

Output of iptables -Lcommand:

Output of netstat -nltop | grep "8080":

Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?

  • A. Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -jthen restart httpddaemon
  • B. sysctl -w net.ipv4.ip_forward=1then run sysctl -w /etc/sysctl.confto enable the change
  • C. Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 -j ACCEPTthen restart httpddaemon
  • D. Edit /etc/sysctl.conffile and add net.ipv4.ip_forward = 1then run sysctl -p /etc/ sysctl.confto enable the change

Answer: C

 

NEW QUESTION 56
Find the file named core and remove it from the system.
INSTRUCTIONS
Type "help" to display a list of available commands.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

  • A. Solution as
  • B. Solution as

Answer: B

Explanation:
Reference:
https://www.cyberciti.biz/faq/linux-unix-how-to-find-and-remove-files/

 

NEW QUESTION 57
......

Pass CompTIA XK0-004 Exam Info and Free Practice Test: https://www.dumptorrent.com/XK0-004-braindumps-torrent.html

New 2021 Latest Questions XK0-004 Dumps - Use Updated CompTIA Exam: https://drive.google.com/open?id=111CW2GCYUIrgp2vD3B_dUfN3kKU-z82G