Updated XK0-004 Practice Test Are Available With Real XK0-004 Dumps Questions

XK0-005 and XK0-004 exams will be parallelled for a while to help you achieve the CompTIA Linux+ certification exam. If you choose to pass the XK0-004 exam, you can have the updated XK0-004 practice test of DumpsBase to prepare for the CompTIA Linux+ Certification Exam well. DumpsBase offers the correct CompTIA XK0-004 exam questions in order to meet the candidate’s CompTIA Linux+ (Plus) exam needs. The candidate gets the best to pass the CompTIA Linux+ XK0-004 exam on the first try. 

Free CompTIA Linux+ XK0-004 Demo Dumps Are Available

1. Which of the following is the purpose of the vmlinux file on a Linux system?

2. A configuration management tool running every minute is enforcing the service HTTPd to be started.

To perform maintenance, which of the following series of commands can be used to prevent the service from being started?

3. A junior administrator is migrating a virtual machine from a Type 1 hypervisor to a Type 2 hypervisor.

To ensure portability, which of the following formats should the administrator export from the Type 1 hypervisor to ensure compatibility?

4. All users are reporting that they cannot connect to the SFTP server.

The administrator runs a scan:

Which of the following would allow the administrator to fix the problem?

5. 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?

6. A junior systems administrator is upgrading a package that was installed on a Red Hat-based system.

The administrator is tasked with the following:

- Update and install the new package.

- Verify the new package version is installed.

Which of the following should be done to BEST accomplish these task? (Choose two.)

7. 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?

8. A junior Linux administrator needs to access production servers using a secure SSH protocol.

Which of the following files should contain the public key to gain remote access to the server?

9. A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone.

Which of the following sets of commands should the administrator execute to accurately configure the correct time settings?

10. 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?

11. An administrator notices a directory on a web server named /var/www/html/old_reports that should no

longer be accessible on the web.

Which of the following commands will accomplish this task?

12. A Linux administrator must identify a user with high disk usage.

The administrator runs the # du Cs /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?

13. 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?

14. Given that a company’s policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?

15. A Linux administrator is adding a static IP address to a network interface on a Linux system.

The administrator modifies the ifcfg- eth0 configuration file with the following settings:

After the administrator restarts the Linux server, the system is not connected to the network.

Which of the following configuration settings needs to be changed?

16. Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?

17. Which of the following will provide a list of all flash, external, internal, and SSD drives?

18. An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit Cm “changed the property file” server.property.

Which of the following commands did the engineer fail to perform?

19. A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.

Which of the following commands will achieve this task?

20. DRAG DROP

The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space.

Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

21. 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?

22. A systems administrator is troubleshooting an intermittent network connection at the IP address 192.168.1.23.

The administrator wishes to monitor the connection at five-minute intervals for one hour.

Which of the following commands will accomplish this task?

23. Which of the following are Linux desktop managers? (Choose two.)

24. A system administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.

Which of the following could be used to install more Linux servers with the same characteristics?

25. A user has connected a Bluetooth mouse to a computer, but it is not working properly.

Which of the following commands should the systems administrator use to fix the issue?

26. An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point /mnt/testvol and make the mount persistent after reboot.

Which of the following BEST demonstrates the commands necessary to accomplish this task?

A)

B)

C)

D)

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

28. A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate.

The administrator uses the command renice -n -5 -p2864, but it does not solve the issue.

Which of the following commands should the administrator execute to correct the issue?

29. A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode.

Which of the following would allow the administrator to accomplish this?

30. CORRECT TEXT

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

31. A junior Linux administrator is installing patches using YUM.

The administrator issues the following command: yum list installed

The output of the command is as follows:

Given this scenario and the output, which of the following should the administrator do to address this issue?

32. A Linux systems administrator needs to copy the contents of a directory named “working” on the local working system to a folder /var/www/html on a server named “corporate-web”.

Which of the following commands will allow the administrator to copy all the contents to the web server?

33. Which of the following server roles would assign a host IP address?

34. 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?

35. A Linux administrator is using a public cloud provider to host servers for a company’s website. Using the provider’s tools, the administrator wrote a JSON file to define how to deploy the servers.

Which of the following techniques did the administrator use?

36. Given the output below:

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

37. 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?

38. Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory.

After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?

39. A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.

Which of the following scripts would BEST accomplish this task?

40. An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content.

Which of the following permissions should be applied to this shared directory?

41. A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server.

If there is no problem on the network or with the users’ workstations, which of the following steps will BEST analyze and resolve the issue?

42. 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.)

43. A system administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts and the usernames used.

Which of the following files should be watched by the agents?

44. A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to report the amount of free disk space on the system and to send the output to a file named “freespace”.

Which of the following would meet this requirement?

45. An administrator needs to see the type of CPU that a server is running.

Which of the following files contains this information?

46. A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive.

Which of the following commands will stop each application process?

47. CORRECT TEXT

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.

48. A systems administrator wants to download a package from a remote server.

Which of the following are the BEST commands to use for this task? (Choose two.)

49. An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.

Which of the following commands would prevent the script from being killed?

50. 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?

51. An administrator is analyzing a Linux server which was recently hacked.

Which of the following will the administrator use to find all unsuccessful login attempts?

52. A Linux administrator wants to fetch a Git repository from a remote Git server.

Which of the following is the BEST command to perform this task?

53. 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?

54. Which of the following statements BEST represents what the term “agentless” means regarding orchestration?

55. 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?

56. Which of the following is a difference between YAML and JSON?

57. A four-drive Linux NAS has been improperly configured. Each drive has a capacity of 6TB, for a total storage capacity of 24TB.

To reconfigure this unit to be not pluggable for drive replacement and provide total storage of 11TB to 12TB, which of the following would be the correct RAID configuration?

58. A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory.

Which of the following commands would satisfy this requirement?

59. Which of the following BEST describes running on a Linux system?

60. 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?

61. 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?

62. A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory.

Which of the following commands will help achieve this task?

63. Joe, a member of the accounting group on a Linux system, is unable to write a file called “taxes” in the accounting shared directory.

The ownership and permissions on the directory and file are as follows:

accounting drwxrw-r-- user = ann, group = accounting taxes -rw-r--r--, user = ann, group = accounting

Which of the following commands would allow Joe to write to the file? (Choose two.)

64. A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error No space left on device. The support engineer checks the /tmp directory, and it has 20GB of free space.

Which of the following BEST describes a possible cause for this error?

65. In order to comply with new security policies, an administrator needs to prevent the SSH server from using insecure algorithms.

Which of the following files should be edited to accomplish this?

66. A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server’s router is 192.168.1.1.

The administrator reviews the output of route Cn:

Which of the following commands should the administrator run to correct the issue?

67. Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue.

The administrator examines the /etc/passwd file and discovers the following entry: joe:x:505:505::/home/joe:/bin/false

Which of the following commands should the administrator execute to resolve the problem?

68. A systems administrator configured a new kernel module, but it stopped working after reboot.

Which of the following will allow the systems administrator to check for module problems during server startup?

69. 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 -a command:

Output of iptables -L command:

Output of netstat Cnltop | grep "8080":

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

70. A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing.

Which of the following commands should the administrator use?

71. 0.0.1 localhost

Which of the following actions should the administrator perform to accomplish this task?

72. A Linux administration is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.

Which of the following commands enables this feature for IPv4 networks?

73. A user attempts to use the mount -a command but gets the following error:

mount: mount point /mnt/test does not exist

Which of the following commands best describes the action the Linux administrator should take NEXT?

74. A Linux administrator needs the “tech” account to have the option to run elevated commands as root.

Which of the following commands would BEST meet this goal?

75. While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df Cm command, the administrator notes there is still 50% of usage left.

Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?

76. 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?

77. An administrator needs to generate a list of services that are listening on TCP and/or UDP ports.

Which of the following tools should the administrator use?

78. An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly.

Which of the following explains what is wrong with the script?

79. A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed.

Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?

80. The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment.

Which of the following is the benefit to the development team for implementing deployment automation?

81. A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot.

The partial output of chkconfig is as follows:

Which of the following commands BEST describes how the administrator should re-enable the network service?

82. Which of the following commands would show the default printer on a Linux system?

83. A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.

Which of the following commands would BEST accomplish this task?

84. A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output.

Which of the following commands should be used to rescan the entire SCSI bus?

85. Which of the following is the template for the grub.cfg file?

86. A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.

Which of the following should the administrator use to reduce the output of memory messages?

87. 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?

88. A new HTTPS web service is being deployed on a server.

Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?

89. A Linux administrator needs to switch from text mode to GUI.

Which of the following runlevels will start the GUI by default?

90. A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP.

Which of the following commands should the administrator execute?

91. A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?

92. An administrator is tasked with increasing the size of the volume /dev/vg/lv to 20GB.

Which of the following BEST illustrates the steps the administrator should take?

93. 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?

94. 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?

95. An administrator has written the following Bash script:

All necessary files exist in the correct locations.

However, when the administrator executes /home/user/test.sh the following error is received:

No such file or directory

Which of the following is the MOST likely cause of the error?

96. Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full.

Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?

97. A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment.

Which of the following commands should be run on each of the testing systems to BEST meet this goal?

98. A company wants to provide internal identity verification services for networked devices.

Which of the following servers should be installed?

99. A Linux administrator opens a ticket to have an external hard drive mounted. As a security policy, external storage kernel modules are disabled.

Which of the following is the BEST command for adding the proper kernel module to enable external storage modules?


 

 

CompTIA Linux+ XK0-005 PDF - Download And Start Learning All XK0-005 Dumps Questions
SK0-005 Dumps Updated (V11.02) - Best Materials For Passing CompTIA Server+ Certification Exam

Add a Comment

Your email address will not be published. Required fields are marked *