2022 Correct Practice Tests of XK0-004 Dumps with Practice Exam Certification Sample Questions of XK0-004 Dumps With 100% Exam Passing Guarantee NEW QUESTION 12 An 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 [...]

2022 Correct Practice Tests of XK0-004 Dumps with Practice Exam [Q12-Q37]

Share

2022 Correct Practice Tests of XK0-004 Dumps with Practice Exam

Certification Sample Questions of XK0-004 Dumps With 100% Exam Passing Guarantee

NEW QUESTION 12
An 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?

  • A. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j REJECT
  • B. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j REFUSE
  • C. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j FORWARD
  • D. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j DROP

Answer: A

Explanation:
Reference:
https://www.golinuxhub.com/2014/03/how-to-allowblock-ssh-connection-from.html

 

NEW QUESTION 13
A Linux user wants to give read-only permissions to a directory and its contents. Which of the following commands will allow the user to accomplish this task?

  • A. chmod 400 /new_directory/
  • B. chmod -R 600 /new_directory/
  • C. chmod -R 400 /new_directory/
  • D. chmod 600 /new_directory/

Answer: D

 

NEW QUESTION 14
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.

Answer:

Explanation:
See explanation below.
Explanation
Solution as

 

NEW QUESTION 15
A user is reporting unusual slowness when trying to transfer a large file to an NFS server from a workstation.
The administrator runs tracepathand gets the following output:

Which of the following BEST describes the issue and a possible solution?

  • A. The path MTU is lower than the source MTU. Reduce the source MTU setting.
  • B. There is latency at the storage device. Work with the storage team to correct the issue.
  • C. There are dropped packets at an intermediate router. Work with the network team to correct the issue.
  • D. There is latency on an intermediate router. Increase the path MTU to compensate.

Answer: A

 

NEW QUESTION 16
An administrator receives a warning about a filesystem filling up, and then identifies a large file located at / tmp/largelogfile. The administrator deletes the file, but no space is recovered on the filesystem.
Which of the following commands would BEST assists the administrator in identifying the problem?

  • A. pkill /tmp/largelogfile
  • B. ps -ef | grep largelogfile
  • C. lsof | grep largelogfile
  • D. pgrep largelogfile

Answer: C

Explanation:
Explanation/Reference: https://access.redhat.com/solutions/2316

 

NEW QUESTION 17
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?

  • A. df -i
  • B. fdisk /dev/sda
  • C. rm -Rf ~/.*
  • D. fsck -y /dev/sda1

Answer: A

 

NEW QUESTION 18
An 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?

  • A. JSON
  • B. AJAX
  • C. YAML
  • D. SOAP

Answer: A

 

NEW QUESTION 19
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 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.

Answer: A

 

NEW QUESTION 20
Users are reporting collaborate.company.com is inaccessible from the user VLAN, but there is no issue connecting to the system's web page from the DMZ. Given the following outputs from commands run on the system:

Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue?

  • A. Users cannot access the system because the default gateway has the wrong interface. The remediation for this issue is to set the default gateway to the proper interface.
  • B. Users cannot access the system because the IP subnet mask is /24. The remediation for this issue is to set the IP subnet mask to /16.
  • C. Users cannot access the system because the connectivity port is running on the incorrect IP. The remediation for this issue is to edit the configuration file to listen on all interfaces.
  • D. Users cannot access the system because the DNS server has the incorrect IP address. The remediation for this issue is to edit the DNS configuration to point to the correct IP.

Answer: C

 

NEW QUESTION 21
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.

Answer:

Explanation:

 

NEW QUESTION 22
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?

  • A. pkill /tmp/largelogfile
  • B. ps -ef | grep largelogfile
  • C. lsof | grep largelogfile
  • D. pgrep largelogfile

Answer: C

 

NEW QUESTION 23
An administrator wants to use a Linux server's GUI remotely but is limited by security to using TCP ports 5900-5999. Which Of the following is the BEST choice for installation on the Linux server to enable this functionality?

  • A. XRDP
  • B. VNC
  • C. SPICE
  • D. rdesktop

Answer: A

 

NEW QUESTION 24
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?

  • A. ping -c 12 -i 300 192.168.1.23
  • B. ping -i 5 192.168.1.23
  • C. ping -c 60 -i 100 192.168.1.23
  • D. ping -c 12 192.168.1.23

Answer: D

 

NEW QUESTION 25
A server is almost out of free memory and is becoming unresponsive. Which of the following sets of commands will BEST mitigate the issue?

  • A. df, du, rmmod
  • B. lsof, lvcreate, mdadm
  • C. free, fack, partprobe
  • D. fdisk, mkswap, swapon -a

Answer: C

Explanation:
Explanation/Reference: https://vitux.com/7-commands-to-check-swap-space-in-debian-10/

 

NEW QUESTION 26
Which of the following directories contains information related to various runtime processes, such as hardware and system memory?

  • A. /etc/local/
  • B. /Proc
  • C. /Usr/bin
  • D. /Opt

Answer: C

 

NEW QUESTION 27
In which of the following Linux GUI environments would the Konsole application MOST likely be found?

  • A. MATE
  • B. Unity
  • C. Gnome
  • D. KDE
  • E. Cinnamon

Answer: D

 

NEW QUESTION 28
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?

  • A. route
  • B. ethtool
  • C. netstat
  • D. portmap

Answer: C

Explanation:
Reference:
https://www.tecmint.com/find-open-ports-in-linux/

 

NEW QUESTION 29
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?

  • A. top | grep yum
  • B. killall yum
  • C. ps -ef | grep yum
  • D. renice -n 9 -p 5180

Answer: C

 

NEW QUESTION 30
A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?

  • A. /etc/interfaces/eth0.conf
  • B. /system/networking/ifconfig
  • C. /etc/sysconfig/network/interfaces.cnf
  • D. /etc/sysconfig/network-scripts/ifcfg-eth0
  • E. /system/config/interfaces

Answer: D

 

NEW QUESTION 31
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?

  • A. Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
  • B. Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
  • C. Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
  • D. Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443

Answer: A

Explanation:
Reference:
https://www.varonis.com/blog/netcat-commands/

 

NEW QUESTION 32
An 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?

  • A. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j REJECT
  • B. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j REFUSE
  • C. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j FORWARD
  • D. iptables -A -p tcp -d 192.168.10.24 -dropt 22 -j DROP

Answer: A

Explanation:
Explanation/Reference: https://www.golinuxhub.com/2014/03/how-to-allowblock-ssh-connection-from.html

 

NEW QUESTION 33
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?
rmmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-

  • A. storage.ko
    modinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-
  • B. storage.ko
    insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-
  • C. storage.ko
    depmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-
  • D. storage.ko

Answer: D

Explanation:
Explanation/Reference: https://www.cyberciti.biz/faq/linux-how-to-load-a-kernel-module-automatically-at-boot-time/

 

NEW QUESTION 34
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?

  • A. mkfs -L20G /dev/vg/lv; tune2fs /dev/vg/lv
  • B. parted -L20G /dev/vg/lv; remount /dev/vg/lv
  • C. lvextend -L20G /dev/vg/lv; resize2fs /dev/vg/lv
  • D. vgextend -L20G /dev/vg/lv; resizelv /dev/vg/lv

Answer: C

 

NEW QUESTION 35
A systems administrator documents the instructions on the internal wiki regarding how to turn the company's code into Debian packages. The instructions include the commands used to compile, what tests need to be run, the commands to convert the raw code into a package that aptor dpkgcan manage, as well as an explanation of each command.
Which of the following is this an example of?

  • A. Configuration management
  • B. Procedures
  • C. Attributes
  • D. Infrastructure as code

Answer: B

 

NEW QUESTION 36
A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free inodes.
Which of the following commands should the user attempt NEXT to diagnose the situation?

  • A. fdisk -l /mnt/storage
  • B. df -i /mnt/storage
  • C. du -sh /mnt
  • D. df -h /mnt/storage

Answer: A

 

NEW QUESTION 37
......

XK0-004 Sample Practice Exam Questions 2022 Updated Verified: https://www.exam4free.com/XK0-004-valid-dumps.html