XK0-005 Exam Details

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

CompTIA XK0-005 Online Questions & Answers

  • Question 371:

    A non-privileged user is attempting to use commands that require elevated account permissions, but the commands are not successful. Which of the following most likely needs to be updated?

    A. /etc/passwd
    B. /etc/shadow
    C. /etc/sudoers
    D. /etc/bashrc

  • Question 372:

    A Linux systems administrator receives reports from various users that an application hosted on a server has stopped responding at similar times for several days in a row. The administrator logs in to the system and obtains the following output:

    Output 1:

    Output 2:

    Output 3:

    Which of the following should the administrator do to provide the BEST solution for the reported issue?

    A. Configure memory allocation policies during business hours and prevent the Java process from going into a zombie state while the server is idle.
    B. Configure a different nice value for the Java process to allow for more users and prevent the Java process from restarting during business hours.
    C. Configure more CPU cores to allow for the server to allocate more processing and prevent the Java process from consuming all of the available resources.
    D. Configure the swap space to allow for spikes in usage during peak hours and prevent the Java process from stopping due to a lack of memory.

  • Question 373:

    An administrator completes maintenance on a server but cannot remount the logical volume. Given the following output:

    # mount /dev/data/files /opt/data/

    mount: /opt/data: special device /dev/data/files does not exist.

    # lvs

    LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert

    files data -wi-a----- 600.00m

    # vgs

    VG #PV #LV #SN Attr VSize VFree

    data 1 1 0 wz--n- 1020.00m 420.00m

    Which of the following commands should the administrator execute to resolve the issue?

    A. vgchange -ay data
    B. lvscan --all
    C. vgimport data
    D. lvchange -ay /dev/data/files

  • Question 374:

    Which of the following concepts describes the approach of keeping all configurations in a repository?

    A. Inventory
    B. Infrastructure as Code
    C. Orchestration
    D. Agentless deployment

  • Question 375:

    Which of the following Git commands would send committed changes to a remote repository?

    A. git stash
    B. git commit -a
    C. git push origin master
    D. git add .

  • Question 376:

    Which of the following commands should a technician use to create an administrative account for the username Joe?

    A. sudo useradd -G wheel joe
    B. sudo useradd joe; sudo passwd -l joe
    C. sudo useradd joe; sudo cat key.pem > ~/.ssh/authorized_keys
    D. sudo useradd joe; groupadd admin joe

  • Question 377:

    An administrator is investigating an issue on a Linux-based router where packets enter the machine but are not sent to their destinations in the 10.0.6.0/24 subnet. The administrator inspects the following output from the diagnostic commands:

    Which of the following commands should the administrator run to enable the routing?

    A. ip route add 10.0.6.0/24 via 10.0.6.1
    B. iptables -P FORWARD ACCEPT
    C. systemctl enable --now firewalld
    D. systemctl restart network

  • Question 378:

    A Linux administrator is trying to remove the ACL from the file /home/user/data. txt but receives the following error message:

    Given the following analysis:

    Which of the following is causing the error message?

    A. The administrator is not using a highly privileged account.
    B. The filesystem is mounted with the wrong options.
    C. SELinux file context is denying the ACL changes.
    D. File attributes are preventing file modification.

  • Question 379:

    A systems administrator needs to integrate a new storage array into the company's existing storage pool. The administrator wants to ensure that the server is able to detect the new storage array. Which of the following commands should the administrator use to ensure that the new storage array is presented to the systems?

    A. lsscsi
    B. lsusb
    C. lsipc
    D. lshw

  • Question 380:

    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 -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT
    B. iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT
    C. iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT
    D. iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT

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.