[Q110-Q131] Latest CompTIA XK0-004 First Attempt, Exam real Dumps Updated [Oct-2021]

Share

Latest CompTIA XK0-004 First Attempt, Exam real Dumps Updated [Oct-2021]

Get the superior quality XK0-004 Dumps Questions from Lead1Pass. Nobody can stop you from getting to your dreams now. Your bright future is just a click away!

NEW QUESTION 110
A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet.
To accomplish this task, the technician executes the following command:
echo 0 > /proc/sys/net/ipv4/ip_default_ttl
Which of the following commands can the technician use to confirm the expected results? (Choose two.)

  • A. tcpdump
  • B. route
  • C. ip
  • D. traceroute
  • E. iperf
  • F. arp

Answer: B,F

 

NEW QUESTION 111
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server for one year. The Linux server has only the tar and bzip2 packages installed.
Which of the following commands will package and compress the files?

  • A. tar -zcvf applicationfiles.tar.bz2 /var/log/app/*
  • B. tar -xvf applicationfiles.tar.bz2 /var/log/app/*
  • C. tar -jcvf applicationfiles.tar.bz2 /var/log/app/*
  • D. tar -cvf applicationfiles.tar.bz2 /var/log/app/*

Answer: C

 

NEW QUESTION 112
A systems administrator received a request to change the hostname to a new name. Which of the following file configurations should be changed to fix the hostname in the server?

  • A. /etc/sysconfig/nsswitch.conf
  • B. /etc/hosts
  • C. /etc/sysconfig/network
  • D. /etc/resolv.conf

Answer: B

Explanation:
Explanation
Reference https://www.tecmint.com/set-hostname-permanently-in-linux/

 

NEW QUESTION 113
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local
.tmp files that are occasionally created by the scripts.
Which of the following is the BEST way to accomplish this task?

  • A. rm -rf .tmp
  • B. git add -x .tmp *
  • C. echo .tmp >> .gitignore
  • D. git rm .tmp

Answer: C

 

NEW QUESTION 114
A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications:
x64 bit
3.0GHz speed
Minimum quad core
The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat/proc/cpuinfo. The output of the command is as follows:

Which of the following is the recommended course of action the administrator should take based on this output?

  • A. Reconfigure lib modules to support the new application.
  • B. Install the application, as the system meets the application requirements
  • C. Recompile the Linux kernel to support the installation.
  • D. Procure new equipment that matches the recommended specifications

Answer: B

 

NEW QUESTION 115
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 0.0.0.0 localhostentry to the file.
  • B. Modify the /etc/hostsfile, and add the ::1 localhostentry to the file.
  • C. Modify the /etc/hostsfile, and add the ipv6 localhostentry to the file.
  • D. Modify the /etc/hostsfile, and add the ipv4 localhostentry to the file.

Answer: B

 

NEW QUESTION 116
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?

  • A. ip
  • B. host
  • C. netstat
  • D. route
  • E. nslookup

Answer: C

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

 

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

  • A. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
  • B. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.
  • C. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
  • D. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.

Answer: C

 

NEW QUESTION 118
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?

  • A. echo "blacklist bluetooth" > /etc/modprobe.d/blacklist-bluetooth
  • B. echo "rmod bluetooth" > /etc/modprobe.d/rmmod-bluetooth
  • C. echo "modprobe bluetooth" > /etc/modprobe.d/modprbe-bluetooth
  • D. echo "kill bluetooth" > /etc/modprobe.d/kill-bluetooth

Answer: C

 

NEW QUESTION 119
Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text editor says that the read-only option is set on the file. Ann checks the permissions on the file and sees the following:
-rw-rw-r-- 1 root wheel 30 Jun 13 15:38 infrastructure.yml
Which of the following commands is the BEST option to allow her to successfully modify the file?

  • A. chattr -i infrastructure.yml
  • B. chmod o+w infrastructure.yml
  • C. chown root: infrastructure.yml
  • D. chmod 600 infrastructure.yml

Answer: B

Explanation:
Reference:
https://cets.seas.upenn.edu/answers/chmod.html

 

NEW QUESTION 120
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

Explanation:
Reference:
https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-16E390B1-829D-4289-8442-270A474C106A.html

 

NEW QUESTION 121
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system:

The administrator issues the following commands at the terminal:

Respectively, the output of these commands is as follows:

Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?

  • A. Update the /etc/profilefile using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
  • B. Update the /etc/profile.dfile using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.
  • C. Update the /etc/profile.dfile using a text editor, navigate to the PATH element, add the missing locations, and run the bash_completion.shscript to update the changes.
  • D. Update the /etc/profilefile using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profilecommand to update the changes.

Answer: D

 

NEW QUESTION 122
A Linux administrator is updating iptables rules and is given the following tasks:
* Output a list of iptables rules.
* Remove all iptables rules.
Which of the following actions should be performed from the terminal console to accomplish these tasks?
(Choose two.)

  • A. iptables -I
  • B. iptables -F
  • C. iptables -A
  • D. iptables -N
  • E. iptables -C
  • F. iptables -L

Answer: B,F

Explanation:
Reference:
https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules

 

NEW QUESTION 123
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 INPUT -p tcp --dport 443 -j ACCEPT
  • B. iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
  • C. iptables -I INPUT --dport 443 -j ACCEPT
  • D. iptables -I OUTPUT -p tcp --sport 443 -j ACCEPT

Answer: C

Explanation:
Reference:
https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/

 

NEW QUESTION 124
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 125
A Linux administrator is using a public cloud provider to host servers for a company's website. Using the provider's tools, the administrator wrote a JSON file to define how to deploy the servers. Which of the following techniques did the administrator use?

  • A. Automated configuration
  • B. Infrastructure as code
  • C. Build automation
  • D. Platform as a service

Answer: C

 

NEW QUESTION 126
A Linux administrator is adding a static IP address to a network interface on a Linux system. The administrator modifies the ifcfg- eth0 configuration file with the following settings:

After the administrator restarts the Linux server, the system is not connected to the network. Which of the following configuration settings needs to be changed?

  • A. Set USERCTL to yes and ONBOOT to no.
  • B. Set NETMASK to 255.255.0.0 and ONBOOT to yes.
  • C. Set BOOTPROTO to BOOTP and USERCTL to yes.
  • D. Set BOOTPROTO to NONE and ONBOOT to yes.

Answer: B

 

NEW QUESTION 127
The following represents a partial listing of a user's .bashrc file:
HISTSIZE=800
HISTFILESIZE=1000
umask 2002
HISTCONTROL=ignoreboth
When the user opens a terminal, an error message appears:
Octal number out of range
Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?

  • A. HISTSIZE=800
  • B. HISTCONTROL=ignoreboth
  • C. HISTFILESIZE=1000
  • D. umask 2002

Answer: D

Explanation:
Explanation

 

NEW QUESTION 128
A Linux team is using Git to version a set of custom scripts. A team member has made an update to a script and published the changes to the repository.
Which of the following is the BEST way to retrieve the latest changes to the administrator's local working copy?

  • A. git commit
  • B. git merge
  • C. git pull
  • D. git fetch

Answer: C

 

NEW QUESTION 129
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 130
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
    init
  • B. fetch
  • C. pull

Answer: C

 

NEW QUESTION 131
......

CompTIA Practice Test Engine with XK0-004 Questions: https://drive.google.com/open?id=1K1CLwfaLDPshIx4jlnoPpDaK5hIvO5Yz

Guaranteed Success with Valid CompTIA XK0-004 Dumps: https://www.lead1pass.com/CompTIA/XK0-004-practice-exam-dumps.html