[Sep 28, 2021] Updates Up to 365 days On Valid XK0-004 Braindumps
Best QualityXK0-004 Exam Questions CompTIA Test To Gain Brilliante Result
NEW QUESTION 50
After installing a new web server, you are unable to browse to the default web page.
INSTRUCTIONS
Review all the command output and select the command needed to remediate the issue.
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 51
Which of the following configuration management tools is considered agentless?
- A. Salt
- B. Ansible
- C. Chef
- D. Ouppet
Answer: B
Explanation:
Explanation/Reference: https://www.intigua.com/blog/puppet-vs.-chef-vs.-ansible-vs.-saltstack
NEW QUESTION 52
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
Explanation:
Reference:
https://www.tecmint.com/set-add-static-ip-address-in-linux/
NEW QUESTION 53
A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error No space left on device. The support engineer checks the /tmp directory, and it has 20GB of free space.
Which of the following BEST describes a possible cause for this error?
- A. The filesystem is formatted with a 4MB block size.
- B. The /tmp directory is not mounted.
- C. the filesystem ran out of inodes.
- D. The /tmp directory has been set with an immutable attribute.
Answer: C
Explanation:
Reference:
https://www.maketecheasier.com/fix-linux-no-space-left-on-device-error/
NEW QUESTION 54
A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment. Which of the following commands should be run on each of the testing systems to BEST meet this goal?
- A. # hostnamectl set-hostname "192.168.1.100 production.company.com"
- B. # ip addr add 192.168.1.100/24 dev eth0 && rndc reload production.company.com
- C. # grep -i IP "${ip addr show} production.company.com" > /etc/resolv.conf
- D. # echo "192.168.1.100 production.company.com" >> /etc/hosts
Answer: A
Explanation:
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/networking_guide/sec_configuring_host_names_using_hostnamectl
NEW QUESTION 55
Which of the following server roles would assign a host IP address?
- A. NTP
- B. DNS
- C. SSH
- D. DHCP
Answer: D
NEW QUESTION 56
A Linux systems administrator is troubleshooting an issue with the /home directory running out of space. The administrator needs to determine which /home directories are using the most space. Which of the following commands should be used?
- A. df
- B. lvs
- C. du
- D. fsck
Answer: C
NEW QUESTION 57
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwdfile and discovers the following entry:
joe:x:505:505::/home/joe:/bin/false
Which of the following commands should the administrator execute to resolve the problem?
- A. useradd -s /bin/bash joe
- B. passwd -u joe
- C. chage -E -1 joe
- D. usermod -s /bin/bash joe
Answer: D
NEW QUESTION 58
An organization wants to consolidate its entire user information in centralized storage using an X.500-based protocol. Which of the following protocols should be used for this implementation?
- A. DNS
- B. LDAP
- C. DHCP
- D. RADIUS
Answer: B
NEW QUESTION 59
A systems administrator wants to download a package from a remote server. Which of the following are the BEST commands to use for this task? (Choose two.)
- A. wget
- B. curl
- C. nc
- D. tar
- E. make
- F. zip
Answer: A,C
NEW QUESTION 60
An administrator needs a bootable USB for installing a new Linux machine. The administrator downloaded the image file and named it as Linux_OS.iso in the /tmp directory. Which of the following commands will accomplish that task?
- A. dd input=/tmp/Linux_OS.iso of=/dev/sda bs=512
- B. dd if=/tmp/Linux_OS.iso out=/dev/sdb1 bs=512
- C. dd if=/tmp/Linux_OS.iso of=/dev/sda bs=512
- D. dd in=/tmp/Linux_OS.iso out=/dev/sdb bs=512
Answer: C
Explanation:
Reference:
the-command-line-way-380fca04e096
NEW QUESTION 61
A junior administrator needs to unload an older video kernel module.
Which of the following commands would BEST accomplish this task?
- A. depmod
- B. chmod
- C. insmod
- D. modprobe
- E. rmmod
Answer: D
Explanation:
Explanation/Reference: https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/ Kernel_Administration_Guide/sec-Unloading_a_Module.html
NEW QUESTION 62
An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.
Which of the following commands would prevent the script from being killed?
- A. echo "service network restart" | at now
- B. service network restart &
- C. nohup service network restart
- D. bg service network restart
Answer: C
NEW QUESTION 63
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
NEW QUESTION 64
Which of the following configuration files should be modified to disable Ctrl-Alt-Del in Linux?
- A. /etc/security/limits.conf
- B. /etc/securetty
- C. /etc/inittab
- D. ~/.bash_profile
Answer: C
NEW QUESTION 65
As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.
INSTRUCTIONS
Fill the blanks to build a script that performs the actual compression of rotated log files.
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 66
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/port
- B. /dev/sg0
- C. /dev/tty0
- D. /dev/gpio
Answer: A
NEW QUESTION 67
The Apache web server was recently installed on a Debian/Ubuntu server. The web server fails and a review of log messages on another partition reveals the installation was not completed properly due to lack of disk space.
After clearing the files, the systems administrator has requested the installation to be performed again.
Which of the following command lines will perform this task? (Choose two.)
- A. apt-get --purge remove acache2
- B. apt-get --reinstall apache2
- C. apt-get install apache2
- D. apt-get --reinstall install apache2
Answer: A,C
Explanation:
Explanation/Reference: https://askubuntu.com/questions/111770/how-reinstall-apache2
NEW QUESTION 68
Which of the following BEST describes the purpose of the X11 system?
- A. X11 provides networking capabilities
- B. X11 provides telephony capabilities.
- C. X11 provides graphical display capabilities
- D. X11 provides command line capabilities
Answer: C
NEW QUESTION 69
A Linux server needs to be accessed, but the root password is not available.
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
- A. Boot into a single-user mode and reset the password via the passwd command.
- B. Boot into a single-user mode and reset the password via the chage command.
- C. Boot into a single-user mode and reset the password by editing the /etc/passwd file.
- D. Boot into a single-user mode and reset the password by editing the /etc/shadow file.
Answer: A
Explanation:
Reference:
https://phoenixnap.com/kb/how-to-change-root-password-linux
NEW QUESTION 70
A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the "dba" group and preserve existing group memberships?
- A. usermod -g dba jsmith
- B. useradd -g dba jsmith
- C. groupmod dba -u jsmith
- D. usermod -a -G dba jsmith
Answer: B,D
Explanation:
According to the reference given below. Both AC is correct.
Reference:
https://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
NEW QUESTION 71
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:
Reference:
https://www.rootusers.com/how-to-increase-the-size-of-a-linux-lvm-by-expanding-the-virtual-machine-disk/
NEW QUESTION 72
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
NEW QUESTION 73
A junior systems administrator is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
* View current settings of the LC_ALL environment variable only.
* Modify the LANGenvironment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
- A. echo $LC_ALL
- B. stty
- C. export LANG = en_US.UTF-8
- D. locale
- E. export $LANG = en_US.UTF
- F. cat $LC_ALL
Answer: C,D
Explanation:
Explanation/Reference: https://www.tecmint.com/set-system-locales-in-linux/
NEW QUESTION 74
......
Focus on XK0-004 All-in-One Exam Guide For Quick Preparation: https://www.verifieddumps.com/XK0-004-valid-exam-braindumps.html
Tested Material Used To XK0-004: https://drive.google.com/open?id=1-OB9_EwS7rZe-Vo6dcXbZxGFVnsF8PGj
