PDF (New 2021) Actual CompTIA XK0-004 Exam Questions
Dumps Moneyack Guarantee - XK0-004 Dumps UpTo 90% Off
CompTIA XK0-004 Exam: Which Certification Level Is It Associated with?
The CompTIA XK0-004 is a popular exam associated with the Linux+ certification path. Now, the Linux+ is an intermediate-level certificate that validates early career administrators tasked with supporting or managing Linux systems. The current Linux+ curriculum is a unique path in the sense it is the only job-oriented Linux certificate that addresses the latest fundamental skills required by recruiters.
NEW QUESTION 151
A Linux user uses a VPN to securely access the company's systems from a laptop.
Which of the following protocols are MOST likely used to secure the VPN connection? (Choose two.)
- A. SSL/TLS
- B. VNC
- C. SFTP
- D. IPSec
- E. SELinux
- F. HTTP
Answer: A,D
NEW QUESTION 152
A systems administrator observes high latency values when reaching a remote web server. Which of the following commands will help determine and isolate issues on the network side?
- A. mtr
- B. route
- C. dig
- D. netstat
Answer: A
NEW QUESTION 153
Users are unable to connect to a server using HTTPS. The administrator runs the following command on the remote system:
Then, the administrator runs the following command from a local workstation:
Which of the following steps should the administrator take to address the issue?
- A. Start the application to run on port 443
- B. Configure the application to run on an active port
- C. Update the self-signed certificate
- D. Allow port 443 through the firewall
Answer: D
NEW QUESTION 154
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 REJECT
- 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 ESTABLISHED -j ACCEPT
- D. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, 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 155
Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line:
Ann performs some diagnostics to attempt to find the root cause:
Which of the following commands should Ann execute to write content to /etc/yum?
- A. setfacl -m m:rw /etc/yum.conf
- B. setenforce 0
- C. chmod 755 /etc/yum.conf
- D. chattr -I /etc/yum.conf
Answer: C
NEW QUESTION 156
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. Install the application, as the system meets the application requirements
- B. Reconfigure lib modules to support the new application.
- C. Recompile the Linux kernel to support the installation.
- D. Procure new equipment that matches the recommended specifications
Answer: A
NEW QUESTION 157
A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word "services". Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?
- A. #/bin/bashfind /etc -name services -sort > /var/tmp/foundservices
- B. #/bin/bashfind /etc -name services | sort > /var/tmp/foundservices
- C. #/bin/bashlocate /etc -sort -name services > /var/tmp/foundservices
- D. #/bin/bashfind -name services -sort </var/tmp/foundservices
Answer: C
NEW QUESTION 158
Which of the following statements BEST represents what the term "agentless" means regarding orchestration?
- A. It automatically removes malware from the remote system during orchestration
- B. A tool can only be accessed remotely to perform orchestration tasks
- C. Installation of a tool is not required on the remote system to perform orchestration tasks
- D. It facilitates version control when using infrastructure as code during orchestration
Answer: C
NEW QUESTION 159
Ann, a user, has created a new directory and noticed that permissions on the new directory are as follows:
drwx------. 1 ann ann 0 Jun 11 08:20 work
Which of the following should the administrator do to restore default permissions for newly created directories?
- A. Run chmod command to update permissions.
- B. Execute chattr command to restore default access.
- C. Change umask value in /etc/profile.
- D. Modify directory ownership to ann:ann with chown.
Answer: C
NEW QUESTION 160
An organization wants to consolidate its entire user information in centralized storage using an X.500-based protocol. Which of the following protocols should be used for this implementation?
- A. RADIUS
- B. DHCP
- C. LDAP
- D. DNS
Answer: C
NEW QUESTION 161
Which of the following commands will let a Linux user know the PCI devices that are installed in the system?
- A. lspci
- B. cat /proc/devices/pci
- C. cat /proc/sys/dev
- D. lsdev
Answer: A
NEW QUESTION 162
Which of the following server roles would assign a host IP address?
- A. DHCP
- B. NTP
- C. DNS
- D. SSH
Answer: A
NEW QUESTION 163
Which of the following is the purpose of the monitoring server role?
- A. To aggregate web traffic to watch which websites employees are visiting
- B. To provide user authentication services to a network
- C. To provide real-time analysis of potential threats to the organization
- D. To collect status and performance information about the servers in an environment
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION 164
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 REJECT
- 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 ESTABLISHED -j ACCEPT
- D. iptables -A INPUT -p tcp -m multiport --dports 80,443 -m conntrack -cstate NEW, ESTABLISHED -j ACCEPT
Answer: B
NEW QUESTION 165
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. find . -name /home/User3 -print
- B. du -sh /home/User/
- C. du -a /home/User3/*
- D. df -k /home/User/files.txt
Answer: B
Explanation:
Explanation/Reference: https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space
NEW QUESTION 166
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local
.tmp files that are occasionally created by the scripts.
Which of the following is the BEST way to accomplish this task?
- A. rm -rf .tmp
- B. git add -x .tmp *
- C. echo .tmp >> .gitignore
- D. git rm .tmp
Answer: C
Explanation:
Explanation/Reference: https://stackoverflow.com/questions/46383506/add-files-to-gitignore-directly-from-git-shell
NEW QUESTION 167
An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log. Which of the following is another way to view the application log on this system?
- A. journalctl -u application
- B. watch /var/lib/application/
- C. tail -f /var/log/secure
- D. systemctl application.service
Answer: D
NEW QUESTION 168
A technician suspects a company's border firewall is down, thus blocking Internet access. The technician executes the following commands:
#ping -c 1 firewall.company.com
64 bytes from firewall.company.com (192.168.1.1): icmp_seq=1 ttl=64 time=0.061ms
#ping -c 16 www.comptia.com
16 packets transmitted, 0 received, 100% packet loss, time 14999ms
Which of the following commands should the technician use to BEST determine the source of this outage?
- A. nmap
- B. traceroute
- C. tcpdump
- D. dig
Answer: B
NEW QUESTION 169
Two specific users need access to a directory owned by root where backups are located. Which of the following commands would BEST ensure the specified users can access the backup files?
- A. chmod
- B. setfacl
- C. chcon
- D. umask
Answer: B
NEW QUESTION 170
A member of the production group issues the following command:
echo "Monday through Friday" > /production_docs/days
The command fails to execute, so the user obtains the following output:
drwxr--r-- root production 0 Jun 16 2018 production
-rw-r--r-- production production 4096 Jun 14 2018 days
Which of the following commands should the user execute to BEST fix the issue?
- A. chmod g+S productionto set the GUID on the production_docsdirectory
- B. chown productionto change the ownership of the production_docsdirectory
- C. chmod g+w productionto change the permissions on the daysfile
- D. chgrp root production_docs/daysto change the group ownership of the production_docs/ daysfile
Answer: B
NEW QUESTION 171
A junior Linux administrator needs to create 16 empty files quickly that will contain sales information for each quarter for the past four years. Which of the following commands will meet this requirement?
- A. touch {2015,2016,2017,2018}.{q1,q2,q3,q4}
- B. touch '2015,2016,2017,2018'.'q1,q2,q3,q4'
- C. touch [2015,2016,2017,2018].[q1,q2,q3,q4]
- D. touch {2015.2016.2017.2018}.{q1.q2.q3.q4}
Answer: B
NEW QUESTION 172
An administrator is troubleshooting to determine why backups are failing on a particular server. The administrator runs the ps command and analyzes the following output.
The administrator runs kill -9 10112 yet the process remains.
Which of the following BEST describes the issue and how to fix it?
- A. The backup process is still running and needs to be killed with kill -9 --force 10112.
- B. The backup process is using 100% of system resources and needs to be rescheduled with renice.
- C. The backup process is a zombie process, and the system needs to be rebooted.
- D. The backup process is out of memory, and more memory needs to be added to the system.
Answer: C
NEW QUESTION 173
Given the output below:
Which of the following commands can be used to remove MyPhoto.jpg from the current directory?
- A. rm -rf ./Pictures
- B. unlink ./MyPhoto.jpg
- C. del Pictures/photo.jpg
- D. ln -rm ./Pictures/photo.jpg
- E. rm -f MyPhoto.jpg
Answer: D
Explanation:
Explanation/Reference:
NEW QUESTION 174
A Linux administrator needs to switch from text mode to GUI. Which of the following runlevels will start the GUI by default?
- A. Runlevel 3
- B. Runlevel 5
- C. Runlevel 6
- D. Runlevel 4
Answer: B
Explanation:
Explanation/Reference: http://www.linfo.org/runlevel_def.html
NEW QUESTION 175
A system ran out of storage space on a particular mount and will not allow anything to be written to disk. The df command shows there are 6GB free on the mount, and there is no inode exhaustion. This issue has happened before due to a known large log file that was not being rotated. The administrator remembers the file name but cannot remember the location of the log file or which process is writing to it. Which of the following would be the BEST solution to correct this issue while maintaining availability?
- A. Use the ps command to find which process is writing to the log file, and then kill and restart the process
- B. Use the locate command to find where the large log file is located and delete it
- C. Use the du command to find where the large log file is located and delete it
- D. Use the lsof command to find where the large log file is located and truncate it
Answer: A
NEW QUESTION 176
......
For more info visit:
CompTIA XK0-004 Exam Reference
Updated Dec-2021 Pass XK0-004 Exam - Real Practice Test Questions: https://tesking.pass4cram.com/XK0-004-dumps-torrent.html