XK0-004 Exam Questions Dumps, Selling CompTIA Products
XK0-004 Cert Guide PDF 100% Cover Real Exam Questions
CompTIA Linux+ Exam Certification Details:
| Exam Name | CompTIA Linux+ |
| Passing Score | 720 / 900 |
| Exam Price | $338 (USD) |
| Schedule Exam | Pearson VUE CompTIA Marketplace |
| Exam Code | XK0-004 |
| Books / Training | CertMaster Learn for Linux+ |
| Sample Questions | CompTIA Linux+ Sample Questions |
| Duration | 90 mins |
| Number of Questions | 90 |
NEW QUESTION 24
On a UEFI-based system, which of the following invokes GRUB2 from the EFI command prompt?
- A. EFI/grub2.efi
- B. /boot/EFI/grub2.efi
- C. /grub2.efi
- D. boot//EFI/grub2.efi
Answer: B
NEW QUESTION 25
In which of the following Linux GUI environments would the Konsole application MOST likely be found?
- A. Cinnamon
- B. MATE
- C. Gnome
- D. KDE
- E. Unity
Answer: D
Explanation:
Reference:
https://opensource.com/life/17/10/top-terminal-emulators
NEW QUESTION 26
A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?
- A. modprobe -r
- B. rmmod -c
- C. depmod -r
- D. insmod -c
Answer: A
Explanation:
Reference:
http://ccrma.stanford.edu/planetccrma/man/man8/modprobe.8.html
NEW QUESTION 27
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?
- A. chkconfig --level 0-6 network on
- B. chkconfig --level 0 network on
- C. chkconfig --level 12 network on
- D. chkconfig --level 6 network on
- E. chkconfig --level 345 network on
Answer: E
Explanation:
Reference:
https://www.thegeekdiary.com/how-to-enable-or-disable-service-on-boot-with-chkconfig/
NEW QUESTION 28
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?
- A. GRUB
- B. PXE
- C. UEFI
- D. NFS
Answer: C
Explanation:
Explanation/Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ ch-boot-x86
NEW QUESTION 29
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?
- A. To define the infrastructure so it can be provisioned consistently with minimal manual tasks
- B. To validate user requirements have been met within each regional datacenter for compliance
- C. To document the infrastructure so it can be included in the system security plan
- D. To ensure the administrator follows the planning phase of the systems development life cycle
Answer: D
NEW QUESTION 30
Which of the following are Linux desktop managers? (Choose two.)
- A. GNOME
- B. VNC
- C. GUI
- D. SPICE
- E. X11
- F. KDE
Answer: A,F
NEW QUESTION 31
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/sda1 and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstat file, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1 on which the database application was installed appears to have failed.
Which of the following steps should the administrator take to remove the device /dev/sdb1 from the RAID array md0? (Choose two.)
- A. racadm --remove /dev/sdb1
- B. mdadm /dev/md0 --remove /dev/sdb1
- C. mdadm /dev/sdb1 --fail /dev/md0
- D. mdadm /dev/sdb1 --remove /dev/md0
- E. mdadm /dev/md0 --fail /dev/sdb1
- F. racadm --fail /dev/sdb1
Answer: B,E
NEW QUESTION 32
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?
- A. The script is not executable.
- B. The shebang points to the wrong path.
- C. Nslookup is not installed.
- D. The formatting of the file is incorrect.
Answer: B
NEW QUESTION 33
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. Recompile the Linux kernel to support the installation.
- C. Procure new equipment that matches the recommended specifications
- D. Reconfigure lib modules to support the new application.
Answer: A
NEW QUESTION 34
The Apache web server was recently installed on a Debian/Ubuntu server. The web server fails and a review of log messages on another partition reveals the installation was not completed properly due to lack of disk space.
After clearing the files, the systems administrator has requested the installation to be performed again.
Which of the following command lines will perform this task? (Choose two.)
- A. apt-get --purge remove acache2
- B. apt-get --reinstall apache2
- C. apt-get --reinstall install apache2
- D. apt-get install apache2
Answer: A,D
NEW QUESTION 35
A Linux administrator recently changed the IP addresses of all the web servers from 10.10.50.x to 10.10.100.x.
The administrator needs to update the serverlist.txt file to reflect the change.
The file contains the following:
10:WebSvr01:10.10.50.21:Main
11:WebSvr02:10.10.50.22:Acconting
12:WebSvr03:10.10.50.23:Intranet
20:NFS01:10.10.20.21:FileServer
30:SMTP01:10.10.30.31:Email
Which of the following commands will change the IP addresses and update the files in place?
- A. sed 's|.50|.100|g' serverlist.txt
- B. sed -g 's|.50|.100|a' serverlist.txt
- C. sed -i 's|.50|.100|' serverlist.txt
- D. sed -i 's|.50|.100|g' serverlist.txt
Answer: D
NEW QUESTION 36
Which of the following will provide a list of all flash, external, internal, and SSD drives?
- A. lsmod
- B. lspci
- C. lsusb
- D. lsblk
Answer: D
NEW QUESTION 37
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?
- A. vgcreate
- B. pvcreate
- C. lvcreate
- D. mkfs.xfs
Answer: A
Explanation:
Explanation/Reference: https://www.thegeekstuff.com/2010/08/how-to-create-lvm/
NEW QUESTION 38
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 real-time analysis of potential threats to the organization
- C. To collect status and performance information about the servers in an environment
- D. To provide user authentication services to a network
Answer: C
NEW QUESTION 39
Which of the following servers provides encrypted tunnel SOCKS services?
- A. VPN
- B. SSH
- C. SNMP
- D. CA
Answer: B
NEW QUESTION 40
A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the "dba" group and preserve existing group memberships?
- A. usermod -g dba jsmith
- B. useradd -g dba jsmith
- C. usermod -a -G dba jsmith
- D. groupmod dba -u jsmith
Answer: B,C
Explanation:
According to the reference given below. Both AC is correct.
Reference:
https://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
NEW QUESTION 41
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
- A. Option


- B. Option


Answer: A
NEW QUESTION 42
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?
- A. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
- B. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.
- C. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
- D. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
Answer: C
NEW QUESTION 43
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?
- A. ~/.ssh/ssh_config
- B. known_hosts
- C. id_rsa.pub
- D. authorized_keys
Answer: C
Explanation:
Reference:
https://www.digitalocean.com/community/tutorials/how-to-configure-ssh-key-based-authentication-on-a-linux-server
NEW QUESTION 44
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?
- A. mount -o loop /tmp/image.iso /mnt
- B. mount -o iso9660 /dev/sr0 /mnt
- C. mount -o loop /dev/kvm /mnt
- D. mount -o loop -t iso /mnt
Answer: C
Explanation:
Reference:
https://www.cyberciti.biz/tips/how-to-mount-iso-image-under-linux.html
NEW QUESTION 45
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?
- A. mount -a /mnt/test
- B. mdadm -p /mnt/test
- C. mkfs /mnt/test
- D. touch /mnt/test
- E. mkdir -p /mnt/test
Answer: E
Explanation:
Explanation/Reference:
Reference: https://serverfault.com/questions/751113/mount-point-does-not-exist-despite-creating-it
NEW QUESTION 46
......
Pass XK0-004 Exam - Real Questions & Answers: https://www.passsureexam.com/XK0-004-pass4sure-exam-dumps.html
Pass XK0-004 Review Guide, Reliable XK0-004 Test Engine: https://drive.google.com/open?id=1FSVQqRAGVVUh1DtTiHlSSqY86IW6L_wE