DumpsFree provides high-quality dumps PDF & dumps VCE for candidates who are willing to pass exams and get certifications soon. We provide dumps free download before purchasing dumps VCE. 100% pass exam!

Achieve the XK0-004 Exam Best Results with Help from CompTIA Certified Experts [Q282-Q306]

Share

Achieve the XK0-004 Exam Best Results with Help from CompTIA Certified Experts

Provide XK0-004 Practice Test Engine for Preparation

NEW QUESTION # 282
An administrator wants to run a script on the second Monday of every month. The script should be executed at 7:00 a.m. and 1:00 p.m. Which of the following entries to the crontab will accomplish this?

  • A. Option C
  • B. Option D
  • C. Option B
  • D. Option A

Answer: D


NEW QUESTION # 283
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. locate /etc -sort -name services > /var/tmp/foundservices
    #/bin/bash
  • C. find /etc -name services | sort > /var/tmp/foundservices
    #/bin/bash
  • D. find -name services -sort </var/tmp/foundservices
    #/bin/bash

Answer: C

Explanation:
Explanation/Reference:


NEW QUESTION # 284
A Systems administrator needs to examine the output of all kernel-related events since the system was booted. Which of the following would BEST display this information?

  • A. modinfo
  • B. systemctl
  • C. dmesg
  • D. logger

Answer: C

Explanation:
https://www.networkworld.com/article/3643696/use-dmseg-to-check-your-linux-systems-kernel-message-buffer.html


NEW QUESTION # 285
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 formatting of the file is incorrect.
  • C. The shebang points to the wrong path.
  • D. Nslookup is not installed.

Answer: C


NEW QUESTION # 286
A junior Linux administrator is performing version control on a Git repository. The administrator is given a list of tasks to complete:
List the currently installed Git release.
Show the status reporting of the clone.
Which of the following commands would allow the administrator to complete these tasks? (Choose two.)

  • A. git --help
  • B. git clone --recursive
  • C. git clone --dissociate
  • D. git clone --progress
  • E. git --version
  • F. git clone --shared

Answer: A,D


NEW QUESTION # 287
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 routeto ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and
    443
  • B. Run routeto ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and
    443
  • C. Run netstatto ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
  • D. 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

Answer: D

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


NEW QUESTION # 288
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. YAML
  • C. SOAP
  • D. AJAX

Answer: A


NEW QUESTION # 289
A Linux administrator suspects unauthorized users are attempting to log in to the Linux server remotely.
Which
of the following should the administrator check FIRST?

  • A. /var/log/kern.log
  • B. /var/log/messages
  • C. /var/log/dmesg
  • D. /var/log/secure

Answer: D


NEW QUESTION # 290
Which of the following should the systems administrator use to ensure the test account is disabled after 24 hours if the account's password has expired?

  • A. passwd -e test 24
  • B. passwd -1 test -t 24
  • C. passwd -i 1 test
  • D. passwd -d -l -n 1 test

Answer: A


NEW QUESTION # 291
Joe is no longer employed by a company and Ann is tatang over his protects several team members work out of the project directory inducing Ann. The administrator needs to assign ownership of all of Joe's files in the /project directory to Ann. Which of the following should the administrator run to accomplish this task?

  • A. Find /project -user joe -exec chown ann { } /;
  • B. Locate / projects | grep joe | chown -R jeo -f-
  • C. Restorecon -f joe ann -r /projects
  • D. Chown -R joe,ann /projects

Answer: A


NEW QUESTION # 292
A systems administrator wants to verify the DNS information of a system that is in production.
Which of the following will provide this information?

  • A. whois -r -h 10.10.1.10 10.10.20.21
  • B. route 10.10.20.21 gw 10.10.1.10
  • C. nmap -R 10.10.20.21 10.10.1.10
  • D. dig -x 10.10.20.21 @10.10.1.10

Answer: D


NEW QUESTION # 293
A Linux administrator is configuring a server to log security events for the ping command while allowing the request to occur. The Linux server is using AppArmor to manage its security services.
Which of the following commands is the BEST option?

  • A. aa-complain /bin/ping
  • B. aa-unconfined /bin/ping
  • C. aa-disable /bin/ping
  • D. aa-enforce /bin/ping

Answer: D


NEW QUESTION # 294
Joe, a user, reports there is data missing after a reboot of the system he is using. The data he was working on was located in /opt/data/user1. A Linux administrator runs the following commands and receives the resulting output.

Which of the following should the administrator perform to resolve the issue?

  • A. The administrator can conclude Joe no longer has permissions to his data and needs to change the data ownership to Joe.
  • B. The administrator can conclude the drive is not mounted properly and should be remounted.
  • C. The administrator can conclude the data is gone from the system and needs to be restored from a backup.
  • D. The administrator can conclude Joe has been using the wrong folder and should be using /opt/data/ user2.

Answer: D


NEW QUESTION # 295
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. NX
  • B. RDP
  • C. X11
  • D. VNC

Answer: D

Explanation:
Reference:
https://phoenixnap.com/kb/ssh-to-connect-to-remote-server-linux-or-windows


NEW QUESTION # 296
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. mkfs /mnt/test
  • B. mkdir -p /mnt/test
  • C. touch /mnt/test
  • D. mdadm -p /mnt/test
  • E. mount -a /mnt/test

Answer: B

Explanation:
Explanation/Reference: https://serverfault.com/questions/751113/mount-point-does-not-exist-despite-creating-it


NEW QUESTION # 297
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/foundservices file. Which of the following shell scripts will accomplish this task?

  • A. #/bin/bashfind -name services -sort </var/tmp/foundservices
  • B. #/bin/bashfind /etc -name services | sort > /var/tmp/foundservices
  • C. #/bin/bashlocate /etc -sort -name services > /var/tmp/foundservices
  • D. #/bin/bashfind /etc -name services -sort > /var/tmp/foundservices

Answer: C


NEW QUESTION # 298
Whenever an administrator merges the feature branch into master, a binary is created and saved in the artifact repository. Which of the following does this desenbe?

  • A. Infrastructure as code
  • B. Inventory
  • C. Agentiess architecture
  • D. Build automation

Answer: D


NEW QUESTION # 299
A junior systems administrator is tasked with providing the network_administrators group the ability to perform sudo without prompting for a password. Which of the following steps should the administrator perform to accomplish this task? (Choose two.)

  • A. Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file
  • B. Add the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file
  • C. Use vi to edit the /etc/sudo file and add network_administrators to the "wheel" group
  • D. Provide all network_administrators with the "root" account password
  • E. Use visudo to edit the /etc/sudoers file and add network_administrators to the "wheel" group

Answer: A,D


NEW QUESTION # 300
A junior Linux administrator is performing version control on a Git repository. The administrator is given a list of
* tasks to complete:
* List the currently installed Git release.
* Show the status reporting of the clone.
Which of the following commands would allow the administrator to complete these tasks? (Choose two.)

  • A. git --help
  • B. git clone --recursive
  • C. git clone --dissociate
  • D. git clone --progress
  • E. git --version
  • F. git clone --shared

Answer: A,D


NEW QUESTION # 301
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.
Which of the following commands will achieve this task?

  • A. sudo killall -USR1 dd
  • B. sudo killall -HUP dd
  • C. sudo killall dd
  • D. sudo killall -TERM dd

Answer: A


NEW QUESTION # 302
A Linux administrator is creating a new local Linux user account for a web application The account has the following requirements:
* Use/var/www as the home directory
* Have the service_accounts group as its pnmary group
* Have the www user group as a secondary group
* Disable the account when the password expires
Which of the following BEST meets these requirements?

  • A. useradd -D/var/www/-g service_accounts -G www -c 0
  • B. useradd -d/var/www/-g service_accounts -f www -g 0
  • C. useradd -D/var/www/-g service_accounts -g www -c 0
  • D. useradd -d/var/www/-g service_accounts -G www -f 0

Answer: A


NEW QUESTION # 303
A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?

  • A. log
  • B. pull
  • C. init
  • D. fetch

Answer: B


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

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

Answer: C


NEW QUESTION # 305
Which of the following servers provides encrypted tunnel SOCKS services?

  • A. SSH
  • B. VPN
  • C. CA
  • D. SNMP

Answer: A


NEW QUESTION # 306
......

Detailed New XK0-004 Exam Questions for Concept Clearance: https://prep4sure.dumpsfree.com/XK0-004-valid-exam.html