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

    A Linux administrator needs to remove software from the server. Which of the following RPM options should be used?

    A. rpm -s

    B. rm -d

    C. rpm -q

    D. rpm -e

  • Question 32:

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

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

    A systems administrator wants to delete app . conf from a Git repository. Which of the following commands will delete the file?

    A. git tag app. conf

    B. git commit app . conf

    C. git checkout app . conf

    D. git rm app. conf

  • Question 35:

    A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received: Which of the following commands can be used to resolve this issue?

    A. chgrp -R 755 data/

    B. chmod -R 777 data/

    C. chattr -R -i data/

    D. chown -R data/

  • Question 36:

    A systems administrator is tasked with installing GRUB on the legacy MBR of the SATA hard drive. Which of the following commands will help the administrator accomplish this task?

    A. grub-install /dev/hda

    B. grub-install /dev/sda

    C. grub-install /dev/sr0

    D. grub-install /dev/hd0,0

  • Question 37:

    Which of the following can be used as a secure way to access a remote termi-nal?

    A. TFTP

    B. SSH

    C. SCP

    D. SFTP

  • Question 38:

    Users report that connections to a MariaDB service are being closed unexpectedly. A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:

    Which of the following is causing the connection issue?

    A. The process mysqld is using too many semaphores.

    B. The server is running out of file descriptors.

    C. Something is starving the server resources.

    D. The amount of RAM allocated to the server is too high.

  • Question 39:

    A DevOps engineer wants to allow the same Kubernetes container configurations to be deployed in development, testing, and production environments. A key requirement is that the containers should be configured so that developers do not have to statically configure custom, environment-specific locations. Which of the following should the engineer use to meet this requirement?

    A. Custom scheduler

    B. Node affinity

    C. Overlay network

    D. Ambassador container

  • Question 40:

    A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?

    A. git clone https://git.company.com/admin/project.git

    B. git checkout https://git.company.com/admin/project.git

    C. git pull https://git.company.com/admin/project.git

    D. git branch https://git.company.com/admin/project.git

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.