A fully updated 2021 XK0-004 Exam Dumps exam guide from training expert ExamTorrent
Provides complete coverage of every objective on exam and exam preparation XK0-004
NEW QUESTION 113
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?
- A. ping www.comptia.org
- B. netstat www.comptia.org
- C. tracert www.comptia.org
- D. mtr www.comptia.org
Answer: C
Explanation:
Explanation/Reference: https://www.lifewire.com/traceroute-linux-command-4092586
NEW QUESTION 114
A Linux administrator needs to prevent the Postfix mail transfer agent from starting on boot.
Which of the following commands will accomplish this task?
- A. systemctl disable postfix.service
- B. /etc/init.d/postfix stop
- C. /etc/init.d/postfix disable
- D. systemctl stop postfix.service
Answer: B
Explanation:
Reference:
https://www.cyberciti.biz/faq/linux-unix-start-stop-restart-postfix/
NEW QUESTION 115
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 116
An administrator has written the following Bash script:
All necessary files exist in the correct locations. However, when the administrator executes /home/user/ test.shthe following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
- A. The formatting of the file is incorrect.
- B. The script is not executable.
- C. The shebang points to the wrong path.
- D. Nslookup is not installed.
Answer: C
NEW QUESTION 117
Which of the following is a difference between YAML and JSON?
- A. YAML has been deprecated for JSON.
- B. Users can comment in YAML but not in JSON
- C. JSON is used in web development, while YAML is used solely in back-end systems.
- D. JSON only curly brackets, while YAML only uses square brackets
Answer: B
Explanation:
Explanation/Reference: https://www.json2yaml.com/yaml-vs-json
NEW QUESTION 118
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?
- A. VDI
- B. OVA
- C. OWASP
- D. VMDK
Answer: B
NEW QUESTION 119
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 120
A user wants to use terminal services from a Windows workstation to manage a Linux server. Which of the following should be installed on the Linux server to enable this functionality?
- A. rdesktop
- B. XRDP
- C. VNC
- D. SPICE
Answer: A
Explanation:
Reference:
https://www.netadmintools.com/art237.html
NEW QUESTION 121
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. fdisk /dev/sda
- B. rm -Rf ~/.*
- C. df -i
- D. fsck -y /dev/sda1
Answer: C
Explanation:
Explanation/Reference: https://www.linuxtechi.com/11-df-command-examples-in-linux/
NEW QUESTION 122
A Linux administrator tries to ping a hostname in a network but receives the message: hostname not found. The administrator is sure the name exists on the network and wants to verify if the DNS server is correctly configured on the client. Which of the following files should the administrator use to verify this information?
- A. /etc/network
- B. /etc/nsswitch.conf
- C. /etc/named.conf
- D. /etc/resolv.conf
Answer: D
Explanation:
Explanation/Reference: https://www.hostgator.com/help/article/error-your-hostname-could-not-be-resolved-to-an-ip-address
NEW QUESTION 123
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 345 network on
- B. chkconfig --level 0-6 network on
- C. chkconfig --level 12 network on
- D. chkconfig --level 0 network on
- E. chkconfig --level 6 network on
Answer: A
Explanation:
Reference:
https://www.thegeekdiary.com/how-to-enable-or-disable-service-on-boot-with-chkconfig/
NEW QUESTION 124
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?
- A. /etc/shadow
- B. /etc/pw
- C. /etc/skel
- D. /etc/passwd
Answer: D
NEW QUESTION 125
An administrator needs to mount the shared NFS file system testhost:/testvolumeto mount point /mnt/ testvoland make the mount persistent after reboot.
Which of the following BEST demonstrates the commands necessary to accomplish this task?
- A.

- B.

- C.

- D.

Answer: D
NEW QUESTION 126
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. df -h /mnt/storage
- B. df -i /mnt/storage
- C. fdisk -l /mnt/storage
- D. du -sh /mnt
Answer: C
NEW QUESTION 127
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?
- A. VNC
- B. RDP
- C. X11
- D. NX
Answer: A
Explanation:
Explanation/Reference: https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows
NEW QUESTION 128
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?
- A. /var/log/audit/audit.log
- B. /etc/rsyslog.conf
- C. /var/log/monitor
- D. /var/log/kern.log
Answer: B
NEW QUESTION 129
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?
- A. The for should be changed to while in the loop.
- B. The > should be changed to 2> in the do statement.
- C. The -ne flag should be changed to -eq in the if statement.
- D. $(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.
Answer: D
NEW QUESTION 130
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/foundservicesfile. Which of the following shell scripts will accomplish this task?
#/bin/bash
- A. find /etc -name services -sort > /var/tmp/foundservices
- B. find -name services -sort </var/tmp/foundservices
#/bin/bash - C. find /etc -name services | sort > /var/tmp/foundservices
#/bin/bash - D. locate /etc -sort -name services > /var/tmp/foundservices
#/bin/bash
Answer: C
NEW QUESTION 131
An administrator needs to deploy 100 identical CentOS workstations via PXE boot. Which of the following should the administrator use to minimize the amount of interaction with the consoles needed?
- A. Hard disk duplicator
- B. Kickstart script
- C. Ubiquity script
- D. Ghost image on a distribution server
- E. Hard disk duplicator
Answer: B
NEW QUESTION 132
A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap.
Which of the following commands would allow the administrator to accomplish this task?
- A. tshark -r test.pcap -o http
- B. tcpdump -i eth0 port 80 -w test.pcap
- C. netcat -p 80 -w test.pcap
- D. tcpdump -i eth0 port 80 -r test.pcap
Answer: A
NEW QUESTION 133
Which of the following commands would show the default printer on a Linux system?
- A. lpstat
- B. lpr
- C. lpq
- D. lspci
Answer: C
Explanation:
Reference:
https://superuser.com/questions/123576/show-default-linux-printer
NEW QUESTION 134
......
Tested Material Used To XK0-004: https://www.examtorrent.com/XK0-004-valid-vce-dumps.html
Steps Necessary To Pass The XK0-004 Exam: https://drive.google.com/open?id=1389t4hMdt2hRlCYrkBa5dbeICQMUMDyv
