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

    A systems administrator needs to check if the service systemd-resolved.service is running without any errors. Which of the following commands will show this information?

    A. systemct1 status systemd-resolved.service

    B. systemct1 enable systemd-resolved.service

    C. systemct1 mask systemd-resolved.service

    D. systemct1 show systemd-resolved.service

  • Question 2:

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

    A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

    A. grep -i auto /etc/systemd/journald.conf andand systemct1 restart systemd-journald.service

    B. cat /etc/systemd/journald.conf | awk '(print $1,$3)'

    C. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf andand sed -i 'persistent/s/^#//q' /etc/systemd/journald.conf

    D. journalctl --list-boots andand systemct1 restart systemd-journald.service

  • Question 4:

    A Linux administrator cloned an existing Linux server and built a new server from that clone. The administrator encountered the following error after booting the cloned server:

    The administrator performed the commands listed below to further troubleshoot and mount the missing filesystem:

    Which of the following should administrator use to resolve the device mismatch issue and mount the disk?

    A. mount disk by device-id

    B. fsck -A

    C. mount disk by-label

    D. mount disk by-blkid

  • Question 5:

    A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server.

    To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

    Based on the information above, which of the following is causing the issue?

    A. The IP address 0.0.0.0 is not valid.

    B. The application is listening on the loopback interface.

    C. The application is listening on port 1234.

    D. The application is not running.

  • Question 6:

    A systems administrator checked out the code from the repository, created a new branch, made changes to the code, and then updated the main branch. The systems administrator wants to ensure that the Terraform state files do not appear in the main branch. Which of following should the administrator use to meet this requirement?

    A. clone

    B. gitxgnore

    C. get

    D. .ssh

  • Question 7:

    An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

    A. git clone https://github.com/comptia/linux+-.git git push origin

    B. git clone https://qithub.com/comptia/linux+-.git git fetch New-Branch

    C. git clone https://github.com/comptia/linux+-.git git status

    D. git clone https://github.com/comptia/linuxt+-.git git checkout -b

  • Question 8:

    Using AD Query, the security gateway connections to the Active Directory Domain Controllers using what protocol?

    A. Windows Management Instrumentation (WMI)

    B. Hypertext Transfer Protocol Secure (HTTPS)

    C. Lightweight Directory Access Protocol (LDAP)

    D. Remote Desktop Protocol (RDP)

  • Question 9:

    A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?

    A. docker rm -- all

    B. docker rm $ (docker ps -aq)

    C. docker images prune *

    D. docker rm -- state exited

  • Question 10:

    Following the migration from a disaster recovery site, a systems administrator wants a server to require a user to change credentials at initial login. Which of the following commands should be used to ensure the aging attribute?

    A. chage -d 2 user

    B. chage -d 0 user

    C. chage -E 0 user

    D. chage -d 1 user

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.