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

    Users report that they cannot access some files located in the /opt/finapp directory after a power outage caused an unexpected server restart. A Linux administrator examines the following filesystem details and system logs: # mount | grep finapp /dev/mapper/rhel-opt_finapp on /opt/finapp type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk |-sda1 8:1 0 1G 0 part /boot

    |-sda2 8:2 0 930.5G 0 part |-rhel-root 253:0 0 30.5G 0 lvm / |-rhel-opt_finapp 253:1 0 900G 0 lvm /opt/finapp # grep opt_finapp /var/log/messages XFS (opt_finapp): Corruption detected in inode 3645, extent tree Which of the following commands should the administrator run in an attempt to fix the filesystem?

    A. fdisk /dev/mapper/rhel-opt_finapp
    B. xfs_repair /dev/mapper/rhel-opt_finapp
    C. lvcreate -L900G -n opt_finapp rhel
    D. fsck.ext4 /dev/mapper/rhel-opt_finapp

  • Question 462:

    A Linux system is getting an error indicating the root filesystem is full. Which of the following commands should be used by the systems administrator to resolve this issue? (Choose three.)

    A. df -h /
    B. fdisk -1 /dev/sdb
    C. growpart /dev/mapper/rootvg-rootlv
    D. pvcreate /dev/sdb
    E. lvresize -L +10G -r /dev/mapper/rootvg-rootlv
    F. lsblk /dev/sda
    G. parted -l /dev/mapper/rootvg-rootlv
    H. vgextend /dev/rootvg /dev/sdb

  • Question 463:

    A Linux administrator is configuring network traffic forwarding. Despite having proper iptables rules, the traffic forwarding is not working. Which of the following commands will allow Linux to pass network traffic between different interfaces?

    A. nmcli allow-forwarding eth0
    B. echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf; sysctl -p
    C. ip route forward allow --all-interfaces; systemctl restart network
    D. modprobe ip_forward

  • Question 464:

    A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?

    A. $RHOST
    B. SETENV
    C. $SHELL
    D. $DISPLAY

  • Question 465:

    A Linux systems administrator receives a report that a user is unable to start an application. The administrator reviews the following error: yaml

    Killed process 1141 (application) total-vm:5622584kB oom_score_adj:0 oom_reaper: reaped process 1141

    Which of the following describes the situation?

    A. The system does not have adequate CPU capacity to allocate to the application.
    B. The application is trying to connect to multiple remote systems without having an adequate number of connections available.
    C. The application is trying to open more files than the available disk can accommodate.
    D. The application is trying to allocate more memory than the available system and swap space can support.

  • Question 466:

    A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.

    Given the following output:

    Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?

    A. restorecon -rv .ssh/authorized_key
    B. mv .ssh/authorized_key .ssh/authorized_keys
    C. systemct1 restart sshd.service
    D. chmod 600 mv .ssh/authorized_key

  • Question 467:

    A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available. Which of the following commands should the administrator run to ensure both versions are available?

    A. docker image load java:7
    B. docker image pull java:7
    C. docker image import java:7
    D. docker image build java:7

  • Question 468:

    A cloud engineer wants to delete all unused networks that are not referenced by any container. Which of the following commands will achieve this goal?

    A. docker network erase
    B. docker network clear
    C. docker network prune
    D. docker network rm

  • Question 469:

    A Linux administrator provisioned a new web server with custom administrative permissions for certain users. The administrator receives a report that user1 is unable to restart the Apache web service on this server. The administrator reviews the following output:

    [ root@server ] # id user1

    UID=1011 (user1) gid=1011 (USER1) groups=1011 (user1), 101 (www-data), 1120 (webadmin)

    [ root@server ] # cat /etc/sudoers.d/custom.conf

    user1 ALL=/usr/sbin/systemctl start httpd, /usr/sbin/systemctl stop httpd

    webadmin ALL=NOPASSWD: /etc/init.d.httpd restart, /sbin/service httpd restart, /usr/sbin/apache2ctl restart

    #%wheel ALL=(ALL) NOPASSWD: ALL

    Which of the following would most likely resolve the issue while maintaining a least privilege security model?

    A. User1 should be added to the wheel group to manage the service.
    B. User1 should have "NOPASSWD:" after the "ALL=" in the custom. conf.
    C. The wheel line in the custom. conf file should be uncommented.
    D. Webadmin should be listed as a group in the custom. conf file.

  • Question 470:

    An average of one out of three users in a company cannot reach the company website. A Linux administrator determines that one of the three website servers is down. The administrator inspects the DNS configuration for the website and notices the following entry:

    www IN A 5.5.5.1 IN A 5.5.5.2 IN A 5.5.5.3

    Which of the following accurately explains the issue?

    A. The DNS configuration is missing corresponding AAAA records and PTR records, and this is causing clients to fail the hostname translation.
    B. The administrator has incorrectly configured the DNS server to be an iterative resolver instead of an authoritative resolver.
    C. One of the DNS records has not been signed with a DNSSEC-supported key, and this is causing some web browsers to reject the DNS response.
    D. DNS returns all three records in a different order each time, and the browser typically uses the first address in the DNS response.

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.