Win IT Exam with Last Dumps 2024


CompTIA XK0-004 Exam

Page 13/18
Viewing Questions 121 130 out of 180 Questions
72.22%

Question 121
A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?
A.
Image XK0-004_121QA.png related to the CompTIA XK0-004 Exam
B.
Image XK0-004_121QB.png related to the CompTIA XK0-004 Exam
C.
Image XK0-004_121QC.png related to the CompTIA XK0-004 Exam
D.
Image XK0-004_121QD.png related to the CompTIA XK0-004 Exam

Question 122
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?
Image XK0-004_122Q.png related to the CompTIA XK0-004 Exam
A. $(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.
B. The for should be changed to while in the loop.
C. The > should be changed to 2> in the do statement.
D. The -ne flag should be changed to -eq in the if statement.

Question 123
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?
Image XK0-004_123Q.png related to the CompTIA XK0-004 Exam
A. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
B. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
C. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
D. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.

Question 124
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?
A. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
B. setenforce 0
C. sestatus 0
D. chcon httpd_sys_content_t /var/

Question 125
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?
A. systemctl stop httpd && systemctl mask httpd
B. systemctl disable httpd && systemctl mask httpd
C. systemctl stop httpd && systemctl hide httpd
D. systemctl disable httpd && systemctl hide httpd


Question 126
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?
Image XK0-004_126Q.png related to the CompTIA XK0-004 Exam
A. The shebang points to the wrong path.
B. The script is not executable.
C. The formatting of the file is incorrect.
D. Nslookup is not installed.

Question 127
An administrator is troubleshooting an application that has failed to start after the server was rebooted. Noticing the data volume is not mounted, the administrator attempts to mount it and receives this error:
Image XK0-004_127Q.png related to the CompTIA XK0-004 Exam
A. The logical volume is not active. The administrator should make it active with lvchange -ay /dev/datavg/datalv and then mount it.
B. The logical volume file system has become corrupted. The administrator should repair it with xfs_repair /dev/datavg/datalv and then mount it.
C. The logical volume is OK but the /dev special files are missing. The administrator should recreate them by running /dev/MAKEDEV.
D. The file system is read-only. The administrator should remount it as read-write with the command mount -o remount.rw /data.

Question 128
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?
A. RAID 01
B. RAID 03
C. RAID 10
D. RAID 50

Question 129
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?
A. nice -n 5 -p 2864
B. nice -n -5 -p 2864
C. renice -n 10 -p 2864
D. renice -n -10 -p 2864

Question 130
DRAG DROP -You have been asked to parse a log file of logins to determine various information about who is logging in and when.
INSTRUCTIONS -Open and inspect the Login log file.
Drag and drop the correct commands onto the output that was generated from that command.
Tokens can be used only once and not all will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Image XK0-004_130Q.jpg related to the CompTIA XK0-004 Exam
Image XK0-004_130R.png related to the CompTIA XK0-004 Exam