CompTIA Exam Dumps, XK0-004 Exam Dumps, XK0-004 Exam Questions, XK0-004 PDF Dumps, XK0-004 VCE Dumps

[March-2021]Latest Braindump2go XK0-004 PDF Dumps and XK0-004 VCE Dumps[Q260-Q280]

March/2021 Latest Braindump2go XK0-004 Exam Dumps with PDF and VCE Free Updated Today! Following are some new XK0-004 Real Exam Questions!

QUESTION 260
Joe, a user, creates a short shell script, shortscript.sh, and saves it in his home directory with default permissions and paths. He then attempts to run the script by typing ./shortscript.sh, but the command fails to execute.
Which of the following commands would have allowed the script to run?

A. chmod u+x shortscript.sh
B. source ./shortscript.sh
C. chmod 155 ~/shortscript.sh
D. chgrp shortscript.sh Joe

Answer: A

QUESTION 261
A Linux user needs to create a file named newfile in the home directory that mirrors the contents of the /etc/resolv.conf file.
Which of the following commands would accomplish this task?

A. cat /etc/resolv.conf > /home/user/newfile
B. echo /etc/resolv.conf > /home/user/newfile
C. grep /etc/resolv.conf < /home/user/newfile
D. printf /etc/resolv.conf > /home/user/newfile

Answer: A

QUESTION 262
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service, the site operates correctly for a few minutes before the process disappears again.
Which of the following should the administrator consider as the MOST likely possibility before troubleshooting the issue?

A. The CPU has too much load, causing it to overheat, and the kernel is automatically killing the processes to keep the CPU cool.
B. An external database to which the web server connects is offline, causing httpd to die due to execution errors.
C. Shared libraries, which were recently updated, are causing compatibility issues and httpd to die due to version mismatch.
D. The out-of-memory killer was activated due to low available memory, causing the kernel to kill the processes automatically.
E. The server is intermittently losing access to the network, causing socket errors that trigger httpd to die.

Answer: D

QUESTION 263
Which of the following Linux server roles should be installed to monitor and log local web traffic?

A. Proxy server
B. AAA server
C. SSH server
D. HTTP server
E. Name server

Answer: A

QUESTION 264
An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk usage check shows / has plenty of space.
Which of the following BEST represents where the administrator should check next?

A. /var
B. /proc
C. /boot
D. /etc

Answer: B

QUESTION 265
A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot.
Which of the following is the BEST command to do this?

A. systemctl reset-failed sendmail
B. systemctl mask sendmail
C. systemctl stop sendmail
D. systemctl disable sendmail

Answer: C

QUESTION 266
A user creates and installs a Linux VM on a local workstation. The VM can only connect to the local workstation.
Which of the following BEST represents the default virtual network configuration in this instance?

A. Host-only
B. Bridged
C. NAT
D. Dual-homed

Answer: A

QUESTION 267
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 logs all troubleshooting output from the monitor to external USB0 storage.
C. It monitors USB0 waiting for a network device to be connected to it as an Ethernet device.
D. It allows the administrator to interact with the character device connected to USB0.

Answer: D

QUESTION 268
A new IO card has been added to the security server to log the opening and closing of the main entrance.
A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when the door is closed.
Which of the following describes the Linux device to which this switch is attached?

A. /dev/tty0
B. /dev/port
C. /dev/gpio
D. /dev/sg0

Answer: B

QUESTION 269
A Linux administrator recently reprovisioned a new corporate web server to replace a legacy one. To minimize the impact on the company’s users, the administrator modified the network and DNS settings of the new server to be the same as the legacy server.
When attempting to log in to the new server remotely over SSH, the following error message is displayed:
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
Which of the following should the administrator do to resolve the issue?

A. Restart the network services on both the remote server and the local machine.
B. Remove the entry for the web server from the known_hosts file on the local machine.
C. Update the /etc/hosts file on the remote server and local machine.
D. Add the administrator’s public key to the authorized_keys on the remote server.

Answer: D

QUESTION 270
A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1.
Which of the following commands should the administrator execute to determine the default gateway of the server?

A. route -n
B. ip a default-gw
C. ifconfig
D. nslookup

Answer: A

QUESTION 271
A Linux user uses a VPN to securely access the company’s systems from a laptop.
Which of the following protocols are MOST likely used to secure the VPN connection? (Choose two.)

A. IPSec
B. HTTP
C. SFTP
D. VNC
E. SSL/TLS
F. SELinux

Answer: AE

QUESTION 272
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.
image_thumb
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 data is gone from the system and needs to be restored from a backup.
C. The administrator can conclude Joe has been using the wrong folder and should be using /opt/ .
data/user2
D. The administrator can conclude the drive is not mounted properly and should be remounted.

Answer: C

QUESTION 273
A systems administrator notices several intensive tasks executing from users Joe and Ann. These processes are impacting server operations but must be allowed to continue running.
Which of the following commands should the systems administrator run to reduce the impact on the server?

A. pkill -u joe ann
B. renice 11 -u joe ann
C. nohup -u joe ann
D. strace -u joe ann

Answer: B

QUESTION 274
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 stop postfix.service
B. /etc/init.d/postfix stop
C. systemctl disable postfix.service
D. /etc/init.d/postfix disable

Answer: B

QUESTION 275
A systems administrator manually added a new library to the server. The administrator wants to rebuild the library cache for immediate use.
Which of the following commands should the systems administrator run to achieve this goal?

A. make install
B. ldconfig
C. make
D. ldd

Answer: B

QUESTION 276
An administrator is troubleshooting to determine why backups are failing on a particular server. The administrator runs the ps command and analyzes the following output.
image_thumb[1]
The administrator runs kill -9 10112 yet the process remains.
Which of the following BEST describes the issue and how to fix it?

A. The backup process is still running and needs to be killed with kill -9 –force 10112.
B. The backup process is a zombie process, and the system needs to be rebooted.
C. The backup process is out of memory, and more memory needs to be added to the system.
D. The backup process is using 100% of system resources and needs to be rescheduled with renice.

Answer: B

QUESTION 277
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. 2 5 * * 1
/scripts/backup.sh
C. 5 2 * * 1
/scripts/backup.sh
D. 1 * * 2 5
/scripts/backup.sh
E. 5 2 * * 0 /scripts/backup.sh

Answer: C

QUESTION 278
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. du -sh /mnt
C. fdisk -l /mnt/storage
D. df -i /mnt/storage

Answer: C

QUESTION 279
A systems administrator clones copies of a Linux VM every time a new Linux server is needed. The administrator notices the command prompt always states localhost.localdomain.
Which of the following should the administrator run to have the command prompt consistently labeled as rather than localhost.localdomain?
Server1

A. host Server1
B. echo “127.0.0.1 Server1 Server1.localdomain” >> /etc/hosts
C. hostnamectl set-hostname “Server1” –pretty
D. hostnamectl set-hostname Server1 –transient
E. hostnamectl set-hostname Server1.localdomain –static

Answer: C

QUESTION 280
A systems administrator uses a remote execution engine to iterate through each IP address in a network and run a script on remote hosts. The script captures the remote system’s hostname, IP address, OS distribution, and system uptime. The output of the script gets saved to the administrator’s local workstation for future processing.
Which of the following is this an example of?

A. Performance monitoring
B. Inventory
C. Agentless
D. Infrastructure as code
E. Build automation

Answer: D


Resources From:

1.2021 Latest Braindump2go XK0-004 Exam Dumps (PDF & VCE) Free Share:
https://www.braindump2go.com/xk0-004.html

2.2021 Latest Braindump2go XK0-004 PDF and XK0-004 VCE Dumps Free Share:
https://drive.google.com/drive/folders/1CKa6jPAj_xZJUOpQDpD2r-JcM3pUDVpP?usp=sharing

3.2021 Free Braindump2go XK0-004 Exam Questions Download:
https://www.braindump2go.com/free-online-pdf/XK0-004-PDF-Dumps(236-256).pdf
https://www.braindump2go.com/free-online-pdf/XK0-004-VCE-Dumps(257-280).pdf

Free Resources from Braindump2go,We Devoted to Helping You 100% Pass All Exams!