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 61:

    A Linux administrator is trying to start the database service on a Linux server but is not able to run it. The administrator executes a few commands and receives the following output:

    Which of the following should the administrator run to resolve this issue? (Select two).

    A. systemctl unmask mariadb
    B. journalctl --g mariadb
    C. dnf reinstall mariadb
    D. systemctl start mariadb
    E. chkconfig mariadb on
    F. service mariadb reload

  • Question 62:

    A Linux administrator is enabling root log-in over SSH on a server. Which of the following combinations of files and parameters should the administrator modify to accomplish this task?

    A. /etc/ssh/ssh_config - PermitRootLogin
    B. /etc/ssh/ssh_config - AllowRootLogin
    C. /etc/ssh/sshd_config - PermitRootLogin
    D. /etc/ssh/sshd_config - AllowRootLogin

  • Question 63:

    Users have reported that the interactive sessions were lost on a Linux server. A Linux administrator verifies the server was switched to rescue.target mode for maintenance. Which of the following commands will restore the server to its usual target?

    A. telinit 0
    B. systemct1 reboot
    C. systemct1 get-default
    D. systemct1 emergency

  • Question 64:

    An administrator is trying to diagnose a performance issue and is reviewing the following output:

    System Properties:

    CPU: 4 vCPU

    Memory: 40GB

    Disk maximum IOPS: 690

    Disk maximum throughput: 44Mbps | 44000Kbps

    Based on the above output, which of the following BEST describes the root cause?

    A. The system has reached its maximum IOPS, causing the system to be slow.
    B. The system has reached its maximum permitted throughput, therefore iowait is increasing.
    C. The system is mostly idle, therefore the iowait is high.
    D. The system has a partitioned disk, which causes the IOPS to be doubled.

  • Question 65:

    A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

    A. partprobe vgcreate lvextend
    B. lvcreate fdisk partprobe
    C. fdisk partprobe mkfs
    D. fdisk pvcreate vgextend

  • Question 66:

    A Linux administrator created the directory /project/access2all. By creating this directory, the administrator is trying to avoid the deletion or modification of files from non-owners. Which of the following will accomplish this goal?

    A. chmod +t /project/access2all
    B. chmod +rws /project/access2all
    C. chmod 2770 /project/access2all
    D. chmod ugo+rwx /project/access2all

  • Question 67:

    A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?

    A. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j DROP
    B. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j RETURN
    C. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j REJECT
    D. iptables -A INPUT -p tcp -- dport ssh -s 2.2.2.2 -j QUEUE

  • Question 68:

    A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:

    The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?

    A. TRIGGERS=mariadb.service
    B. ONFAILURE=mariadb.service
    C. WANTEDBY=mariadb.service
    D. REQUIRES=mariadb.service

  • Question 69:

    A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:

    Which of the following commands will the administrator most likely run NEXT?

    A. vmstat
    B. strace
    C. htop
    D. lsof

  • Question 70:

    An administrator needs to allow remote administrative access to a Linux server only to employees who are using the authorized private key. Which of the following options should the administrator set in the SSHD configuration file to achieve the goal?

    A. AuthorizedKeysCommand sudo
    B. PermitRootLogin prohibit-password
    C. AuthorizedKeysCommandUser root
    D. PasswordAuthentication no

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.