Home > CompTIA Security+ Certification > Quizzes > XK0-004 CompTIA Linux+ Certification Exam Practice
XK0-004 CompTIA Linux+ Certification Exam Practice
Fast practice, instant feedback. Timer auto-submits when time’s up.
Avg score: 29% Most missed: “A Linux systems administrator needs to provision multiple web servers into separ…”
XK0-004 CompTIA Linux+ Certification Exam Practice
Time left 00:00
25 Questions

1. Given the output below: Which of the following commands can be used to remove MyPhoto.jpg from the current directory?
2. Which of the following is a difference between YAML and JSON?
3. A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file. Which of the following is the BEST reason to do this?
4. A junior systems is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements: View current settings of the LC_ALL environment variable only. Modify the LANG environment variable to US English Unicode. Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
5. A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output: Given this scenario, which of the following steps will address this issue?
6. A Linux administrator needs the
7. A systems administrator needs to append output of ls
8. A junior administrator needs to unload an older video kernel module. Which of the following commands would BEST accomplish this task?
9. A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. to which of the following files should the RSA token be added to allow this access?
10. A. administrator is analyzing a Linux server which was recently hacked. Which of the following will the administrator use to find all unsuccessful login attempts?
11. A. administrator reviews the following configuration file provided by a DevOps engineer: Which of the following would the application parsing this file MOST likely have to support?
12. A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables
13. A. administrator is attempting to block SSH connections to 192.168.10.24 using the Linux firewall. After implementing a rule, a connection refused error is displayed when attempting to SSH to 192.168.10.24. Which of the following rules was MOST likely implemented?
14. A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL. Which of the following commands would allow the administrator to download the current contents of the URL before updating?
15. A. 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?
16. 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?
17. A systems administration team has decided to their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation whenever they provision a new instance. If there is an issue with one of their servers, instead of troubleshooting the issue they terminate the instance and rebuild it using automation. Which of the following is this an example of?
18. 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?
19. After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space. Which of the following is the correct sequence given only a terminal is available?
20. Which of the following BEST describes running on a Linux system?
21. Which of the following configuration management tools is considered agentless?
22. Which of the following server roles would assign a host IP address?
23. A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries and utilize a minimal footprint. Which of the following would be BEST in this scenario?
24. 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?
25. A systems administrator has received reports of intermittent network connectivity to a particular website. Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?