[Q26-Q50] Free XK0-005 Exam Files Downloaded Instantly UPDATED [2023]

Share

Free XK0-005 Exam Files Downloaded Instantly UPDATED [2023]

100% Pass Guaranteed Free XK0-005 Exam Dumps

NEW QUESTION # 26
A Linux system is failing to boot with the following error:

Which of the following actions will resolve this issue? (Choose two.)

  • A. Fix the partition modifying /etc/default/grub and reboot.
  • B. Interrupt the boot process in the GRUB menu and add single to the kernel line.
  • C. Boot the system on a LiveCD/ISO.
  • D. Interrupt the boot process in the GRUB menu and add rescue to the kernel line.
  • E. Execute grub-install --root-directory=/mnt and reboot.
  • F. Execute grub-install /dev/sdX and reboot.

Answer: A,F


NEW QUESTION # 27
A Linux engineer receives reports that files created within a certain group are being modified by users who are not group members. The engineer wants to reconfigure the server so that only file owners and group members can modify new files by default. Which of the following commands would accomplish this task?

  • A. chmod 775
  • B. chactr -Rv
  • C. umask. 002
  • D. chown -cf

Answer: C


NEW QUESTION # 28
After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?

  • A. systemctl status
  • B. systemctl daemon-reload
  • C. systemctl stop
  • D. systemctl reinstall

Answer: A


NEW QUESTION # 29
A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?

  • A. Create a unit file in the /etc/ske1/ directory.
    systemctl enable cleanup
    systemctl is-enabled cleanup
  • B. Create a unit file in the /etc/default/ directory.
    systemctl enable cleanup
    systemctl is-enabled cleanup
  • C. Create a unit file in the /etc/systemd/system/ directory.
    systemctl enable cleanup
    systemctl is-enabled cleanup
  • D. Create a unit file in the /etc/sysctl.d/ directory.
    systemctl enable cleanup
    systemctl is-enabled cleanup

Answer: C


NEW QUESTION # 30
A Linux administrator is creating a primary partition on the replacement hard drive for an application server. Which of the following commands should the administrator issue to verify the device name of this partition?

  • A. sudo fdisk -s /dev/sda
  • B. sudo fdisk -l
  • C. sudo fdisk /dev/sda
  • D. sudo fdisk -h

Answer: B


NEW QUESTION # 31
A Linux systems administrator needs to persistently enable IPv4 forwarding in one of the Linux systems. Which of the following commands can be used together to accomplish this task? (Choose two.)

  • A. sysctl -p
  • B. sysctl net.ipv4.ip_forward
  • C. sysctl -w net.ipv4.ip_forward=1
  • D. echo 1 > /proc/sys/net/ipv4/ip_forward
  • E. echo "net.ipv4.ip_forward=1" >> /etc/sysctl.conf
  • F. echo "net.ipv6.conf.all.forwarding=l" >> /etc/sysctl.conf

Answer: C,E


NEW QUESTION # 32
A systems administrator is investigating an issue in which one of the servers is not booting up properly. The journalctl entries show the following:

Which of the following will allow the administrator to boot the Linux system to normal mode quickly?

  • A. Comment out the /opt/app filesystem in /etc/fstab and reboot.
  • B. Perform filesystem checks on local filesystems and reboot.
  • C. Trigger a filesystem relabel and reboot.
  • D. Reformat the /opt/app filesystem and reboot.

Answer: A


NEW QUESTION # 33
A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?

  • A. /etc/ssh/sshd_config
  • B. /etc/host.conf
  • C. /etc/hostname
  • D. /etc/services

Answer: A


NEW QUESTION # 34
To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service. Which of the following should the administrator do?

  • A. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
  • B. Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
  • C. Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
  • D. Add the line DenyUsers root to the /etc/hosts.deny file.

Answer: B


NEW QUESTION # 35
A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server.
When adding the address, the following error appears:
# ip address add 192.168.168.1/33 dev eth0
Error: any valid prefix is expected rather than "192.168.168.1/33".
Based on the command and its output above, which of the following is the cause of the issue?

  • A. The IP address 192.168.168.1 is already in use.
  • B. The CIDR value /33 should be /32 instead.
  • C. The interface eth0 does not exist.
  • D. There is no route to 192.168.168.1/33.

Answer: C


NEW QUESTION # 36
A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:

The local machine DNS settings are:

Which of the following commands could the engineer use to query the DNS server to get mail server information?

  • A. dig @10.10.10.20 example.com mx
  • B. dig @example.com 10.10.10.20 a
  • C. dig @10.10.10.20 example.com ns
  • D. dig @example.com 10.10.10.20 ptr

Answer: A


NEW QUESTION # 37
A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights. Which of the following commands will achieve this goal?

  • A. chmod 744 --setuid dev_team.txt
  • B. chmod 4744 dev_team.txt
  • C. chmod -c 744 dev_team.txt
  • D. chmod -v 4744 --suid dev_team.txt

Answer: B


NEW QUESTION # 38
Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.

To which of the following configuration files will the required changes need to be made?

  • A. /etc/security/limits.conf
  • B. /etc/profile
  • C. /etc/default/useradd
  • D. /etc/login.defs

Answer: D


NEW QUESTION # 39
A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is presented:

Based on the output above, which of following is the MOST probable cause of the issue?

  • A. The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
  • B. The address ac:00:11:22:33:cd is not a valid Ethernet address.
  • C. The network interface eth0 is using an old kernel module.
  • D. The network interface cable is not connected to a switch.

Answer: D


NEW QUESTION # 40
A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?

  • A. iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
  • B. iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
  • C. iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
  • D. iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT

Answer: C


NEW QUESTION # 41
An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

  • A. git clone https://github.com/comptia/linuxt+-.git
    git checkout -b <new-branch>
  • B. git clone https://github.com/comptia/linux+-.git
    git push origin
  • C. git clone https://qithub.com/comptia/linux+-.git
    git fetch New-Branch
  • D. git clone https://github.com/comptia/linux+-.git
    git status

Answer: A


NEW QUESTION # 42
A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

  • A. /etc/ssh/sshd_config
  • B. ~/.ssh/authorized_keys
  • C. /etc/ssh/moduli
  • D. ~/.ssh/config

Answer: D


NEW QUESTION # 43
A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:

Which of the following commands can be used to resolve this issue?

  • A. chgrp -R 755 data/
  • B. chown -R data/
  • C. chattr -R -i data/
  • D. chmod -R 777 data/

Answer: C


NEW QUESTION # 44
A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

  • A. systemctl stop sshd
  • B. systemctl reload sshd
  • C. systemctl start sshd
  • D. systemctl mask sshd

Answer: B


NEW QUESTION # 45
A systems administrator created a new Docker image called test. After building the image, the administrator forgot to version the release. Which of the following will allow the administrator to assign the v1 version to the image?

  • A. docker image tag test test:vl
  • B. docker image version test:v1
  • C. docker image save test test:v1
  • D. docker image build test:vl

Answer: A


NEW QUESTION # 46
Based on an organization's new cybersecurity policies, an administrator has been instructed to ensure that, by default, all new users and groups that are created fall within the specified values below.

To which of the following configuration files will the required changes need to be made?

  • A. /etc/security/limits.conf
  • B. /etc/login.defs
  • C. /etc/profile
  • D. /etc/default/useradd

Answer: D


NEW QUESTION # 47
A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

  • A. sysctl -w net.ipv4.ip_forward=1
  • B. systemctl start ipv4_forwarding
  • C. echo 1 > /proc/sys/net/ipv4/ipv_forward
  • D. firewall-cmd --enable ipv4_forwarding

Answer: A


NEW QUESTION # 48
A Linux systems administrator receives a notification that one of the server's filesystems is full. Which of the following commands would help the administrator to identify this filesystem?

  • A. df -h
  • B. lsblk
  • C. fdisk
  • D. du -ah

Answer: A


NEW QUESTION # 49
A Linux user reported the following error after trying to connect to the system remotely:
ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable The Linux systems administrator executed the following commands in the Linux system while trying to diagnose this issue:

Which of the following commands will resolve this issue?

  • A. firewall-cmd --zone=public --permanent --add-service=ssh
  • B. firewall-cmd --zone=public --permanent --add-port=22/udp
  • C. firewall-cmd --zone=public --permanent --add-service=22
  • D. systemctl enable firewalld; systemctl restart firewalld

Answer: A


NEW QUESTION # 50
......


There are no formal prerequisites for the CompTIA XK0-005 certification exam. However, CompTIA recommends that candidates have at least 12 months of experience in Linux system administration before taking the exam. Candidates should also have a basic understanding of Linux commands, editors, and shell scripting. A good understanding of networking concepts and protocols is also recommended.

 

Latest XK0-005 dumps - Instant Download PDF: https://www.itexamsimulator.com/XK0-005-brain-dumps.html

Verified & Latest XK0-005 Dump Q&As with Correct Answers: https://drive.google.com/open?id=1aZ0YvtYuvB92ZljUlqKKeZL6DHZ1GGr5