2021 DumpsTests CompTIA XK0-004 Dumps and Exam Test Engine
CompTIA XK0-004 DUMPS WITH REAL EXAM QUESTIONS
NEW QUESTION 49
A junior systems administrator needs to schedule a backup script named /scripts/backup.sh and make the correct changes to the crontab.
Which of the following crontab entries would run the script every Monday at 2:05 a.m.?
- A. 1 * * 5 2 /scripts/backup.sh
- B. 5 2 * * 1 /scripts/backup.sh
- C. 1 * * 2 5 /scripts/backup.sh
- D. 2 5 * * 1 /scripts/backup.sh
- E. 5 2 * * 0 /scripts/backup.sh
Answer: B
NEW QUESTION 50
A Linux systems administrator needs to copy the contents of a directory named "working" on the local working system to a folder /var/www/htmlon a server named "corporate-web".
Which of the following commands will allow the administrator to copy all the contents to the web server?
- A. scp -r working/* webuser@corporate-web:/var/www/html
- B. tar working/* webuser@corporate-web:/var/www/html
- C. cp -r working/* webuser@corporate-web:/var/www/html
- D. mv working webuser@corporate-web:/var/www/html
Answer: A
Explanation:
Explanation/Reference: https://unix.stackexchange.com/questions/232946/how-to-copy-all-files-from-a-directory-to-a- remote-directory-using-scp
NEW QUESTION 51
A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command:
# screen /dev/USB0
Which of the following does this command MOST likely accomplish?
- A. It copies the network traffic from the device connected to USB0 and screens out rejected traffic.
- B. It allows the administrator to interact with the character device connected to USB0.
- C. It logs all troubleshooting output from the monitor to external USB0 storage.
- D. It monitors USB0 waiting for a network device to be connected to it as an Ethernet device.
Answer: B
NEW QUESTION 52
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 -m "changed the property file" server.property. Which of the following commands did the engineer fail to perform?
- A. git add server.property
- B. git push server.property
- C. git merge server.property
- D. git init server.property
Answer: B
Explanation:
Reference:
https://www.earthdatascience.org/workshops/intro-version-control-git/basic-git-commands/
NEW QUESTION 53
Which of the following will provide a list of all flash, external, internal, and SSD drives?
- A. lsusb
- B. lsmod
- C. lsblk
- D. lspci
Answer: C
Explanation:
Explanation/Reference: https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage-devices-linux
NEW QUESTION 54
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?
- A. iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
- B. iptables -I OUTPUT -p tcp --sport 443 -j ACCEPT
- C. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
- D. iptables -I INPUT --dport 443 -j ACCEPT
Answer: D
Explanation:
Reference:
https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/
NEW QUESTION 55
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 -n:
Which of the following commands should the administrator run to correct the issue?
- A. route add 192.168.1.1 default 192.168.1.50 eth0
- B. route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- C. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- D. route host gw 192.168.1.1 eth0
Answer: B
NEW QUESTION 56
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 -n:
Which of the following commands should the administrator run to correct the issue?
- A. route add 192.168.1.1 default 192.168.1.50 eth0
- B. route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- C. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- D. route host gw 192.168.1.1 eth0
Answer: B
NEW QUESTION 57
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hostsand receives the following output:
127.0.0.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
- A. Modify the /etc/hostsfile, and add the ipv6 localhostentry to the file.
- B. Modify the /etc/hostsfile, and add the ipv4 localhostentry to the file.
- C. Modify the /etc/hostsfile, and add the 0.0.0.0 localhostentry to the file.
- D. Modify the /etc/hostsfile, and add the ::1 localhostentry to the file.
Answer: D
NEW QUESTION 58
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.
Answer:
Explanation:
NEW QUESTION 59
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.)
- A. yum upgrade
- B. rpm -qa
- C. rpm -e <package name>
- D. yum install <package name>
- E. apt-get upgrade
- F. apt-get <package name>
Answer: B,D
NEW QUESTION 60
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?
C)
D)
- A. Option C
- B. Option B
- C. Option D
- D. Option A
Answer: A
NEW QUESTION 61
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?
- A. chmod 000 /var/www/html/old_reports
- B. chown apache /var/www/html/old_reports
- C. setenforce apache /var/www/html/old_reports
- D. chgrp root /var/www/html/old_reports
Answer: C
NEW QUESTION 62
Which of the following is a difference between YAML and JSON?
- A. JSON only curly brackets, while YAML only uses square brackets
- B. JSON is used in web development, while YAML is used solely in back-end systems.
- C. YAML has been deprecated for JSON.
- D. Users can comment in YAML but not in JSON
Answer: D
Explanation:
Explanation/Reference: https://www.json2yaml.com/yaml-vs-json
NEW QUESTION 63
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df -m 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?
- A. Run the df -k command and notice the storage exhaustion
- B. Run the df -h command and notice the space exhaustion
- C. Run the df -B command and notice the block size
- D. Run the df -i command and notice the inode exhaustion
Answer: D
Explanation:
Reference:
https://www.tecmint.com/how-to-check-disk-space-in-linux/
NEW QUESTION 64
An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version. Which of the following is the BEST option to resolve the issue?
- A. git checkout master -- file
- B. git merge master testing
- C. git branch -b master file
- D. git stash branch master
Answer: A
Explanation:
Explanation/Reference:
Reference: https://www.git-scm.com/book/en/v2/Git-Basics-Undoing-Things
NEW QUESTION 65
......
2021 New DumpsTests XK0-004 PDF Recently Updated Questions: https://www.dumpstests.com/XK0-004-latest-test-dumps.html
XK0-004 Exam with Guarantee Updated 266 Questions: https://drive.google.com/open?id=17H-lfR4PytO8LrW27Y5EZgduhEi40XcT