Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Mar 23, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 61:

    A systems engineer has deployed a new application server, but the server cannot communicate with the backend database hostname. The engineer confirms that the application server can ping the database server's IP address. Which of the following is the most likely cause of the issue?

    A. Incorrect DNS servers

    B. Unreachable default gateway

    C. Missing route configuration

    D. Misconfigured subnet mask

  • Question 62:

    A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?

    A. tar -cvzf /dev/sdd1 /dev/sdc1

    B. rsync /dev/sdc1 /dev/sdd1

    C. dd if=/dev/sdc1 of=/dev/sdd1

    D. scp /dev/sdc1 /dev/sdd1

  • Question 63:

    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. /etc/ssh/moduli

    C. ~/.ssh/config

    D. ~/.ssh/authorized_keys

  • Question 64:

    User1 is a member of the accounting group. Members of this group need to be able to execute but not make changes to a script maintained by User2. The script should not be accessible to other users or groups. Which of the following will give proper access to the script?

    A. chown user2:accounting script.sh chmod 750 script.sh

    B. chown user1:accounting script.sh chmod 777 script.sh

    C. chown accounting:user1 script.sh chmod 057 script.sh

    D. chown user2:accounting script.sh chmod u+x script.sh

  • Question 65:

    An administrator needs to make an application change via a script that must be run only in console mode. Which of the following best represents the sequence the administrator should execute to accomplish this task?

    A. systemct1 isolate multi-user.target sh script.sh systemct1 isolate graphical.target

    B. systemct1 isolate graphical.target sh script.sh systemct1 isolate multi-user.target

    C. sh script.sh systemct1 isolate multi-user.target systemct1 isolate graphical.target

    D. systemct1 isolate multi-user.target systemct1 isolate graphical.target sh script.sh

  • Question 66:

    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. Add the line DenyUsers root to the /etc/hosts.deny 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. Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.

  • Question 67:

    A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?

    A. Cloud-init

    B. Bash

    C. Docker

    D. Sidecar

  • Question 68:

    A systems administrator is tasked with setting up key-based SSH authentication. In which of the following locations should the administrator place the public keys for the server?

    A. ~/.sshd/authkeys

    B. ~/.ssh/keys

    C. ~/.ssh/authorized_keys

    D. ~/.ssh/keyauth

  • Question 69:

    Some servers in an organization have been compromised. Users are unable to access to the organization's web page and other services. While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules:

    Which of the following commands will remediate and help resolve the issue?

    A. Option A

    B. Option B

    C. Option C

    D. Option D

  • Question 70:

    In order to copy data from another VLAN, a systems administrator wants to temporarily assign IP address 10.0.6 5/24 to the newly added network interface enp1s0f1. Which of the following commands should the administrator run to achieve the goal?

    A. ip addr add 10.0.6.5/24 dev enpls0f1

    B. echo "IPV4_ADDRESS=10.0.6.5/24" > /etc/sysconfig/network-scripts/ifcfg-enplsOfl

    C. ifconfig 10.0.6.5/24 enpsIs0f1

    D. nmcli conn add lpv4.address-10.0.6.5/24 ifname enpls0f1

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-005 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.