XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :Jul 13, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 11:

    The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs:

    Which of the following is the reason that the administrator is unable to perform the assigned duties?

    A. The administrator needs a password reset.
    B. The administrator is not a part of the correct group.
    C. The administrator did not update the sudo database.
    D. The administrator's credentials need to be more complex.

  • Question 12:

    A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

    A. dd of=/dev/sda if=/tmp/sda.img
    B. dd if=/dev/sda of=/tmp/sda.img
    C. dd --if=/dev/sda --of=/tmp/sda.img
    D. dd --of=/dev/sda --if=/tmp/sda.img

  • Question 13:

    Which of the following options describes the purpose of YAML?

    A. YAML is a binary format used to ensure data transfer in a non-human-readable format
    B. YAML is used for configuration files and data serialization in IaC tools in a human- readable format
    C. YAML is like HTML and is used to create web page structure content for web deployment
    D. YAML is designed for web development and has libraries for infrastructure automation

  • Question 14:

    A network administrator issues the dig www.foo.com command and receives an NXDOMAIN response. Which of the following files should the administrator check first?

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

  • Question 15:

    A Linux administrator is implementing a stateful firewall on the Linux server.

    Which of the following iptables options will be required to build the stateful rules? (Select two).

    A. --name established
    B. -m recent
    C. -m conntrack
    D. --state
    E. --remove
    F. -j DROP

  • Question 16:

    What is the main objective when using Application Control?

    A. To filter out specific content.
    B. To assist the firewall blade with handling traffic.
    C. To see what users are doing.
    D. Ensure security and privacy of information.

  • Question 17:

    A systems administrator is notified that the mysqld process stopped unexpectedly. The systems administrator issues the following command:

    sudo grep -i -r `out of memory' /var/log

    The output of the command shows the following:

    kernel: Out of memory: Kill process 9112 (mysqld) score 511 or sacrifice child.

    Which of the following commands should the systems administrator execute NEXT to troubleshoot this issue? (Select two).

    A. free -h
    B. nc -v 127.0.0.1 3306
    C. renice -15 $( pidof mysql )
    D. lsblk
    E. killall -15
    F. vmstat -a 1 4

  • Question 18:

    An administrator has generated an RSA SSH key pair to log in to a remote server. After copying the public key and attempting to log in, the administrator sees the following message:

    [email protected]: Permission denied (publickey,password)

    After seeing the message, the administrator attempts to connect using ssh -v [email protected] and notices the following debug output:

    debug1: send_pubkey_test: no mutual signature algorithm

    Which of the following actions should the administrator take first to remediate this issue?

    A. Issue systemctl restart sshd on the local server.
    B. Create a new key pair by running ssh-keygen -t ecdsa.
    C. Set PermitRootLogin yes in the /etc/ssh/sshd_config file.
    D. Update permissions on the /home/admin/.ssh directory to 700 on the remote server.

  • Question 19:

    A systems administrator is tasked with mounting a USB drive on a system. The USB drive has a single partition, and it has been mapped by the system to the device /dev/sdb. Which of the following commands will mount the USB to /media/ usb?

    A. mount /dev/sdb1 /media/usb
    B. mount /dev/sdb0 /media/usb
    C. mount /dev/sdb /media/usb
    D. mount -t usb /dev/sdb1 /media/usb

  • Question 20:

    A systems administrator is reviewing the following output on the text editor that is being used to update the company's internal database records: Which of the following extensions should the systems administrator use when saving the file?

    A. .json
    B. .yaml
    C. .tf
    D. .sh

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.