Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Apr 08, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 181:

    A Linux administrator is configuring a two-node cluster and needs to be able to connect the nodes to each other using SSH keys from the root account. Which of the following commands will accomplish this task?

    A. [root@nodea ssh --i ~/ . ssh/±d rsa root@nodeb

    B. [root@nodea scp -i . ssh/id rsa root@nodeb

    C. [root@nodea ssh--copy-id --i .ssh/id rsa root@nodeb

    D. [root@nodea # ssh add -c ~/ . ssh/id rsa root@nodeb

    E. [root@nodea # ssh add -c ~/. ssh/id rsa root@nodeb

  • Question 182:

    Which of the following enables administrators to configure and enforce MFA on a Linux system?

    A. Kerberos

    B. SELinux

    C. PAM

    D. PKI

  • Question 183:

    Which of the following would significantly help to reduce data loss if more than one drive fails at the same time?

    A. Server clustering

    B. Load balancing

    C. RAID

    D. VDI

  • Question 184:

    A systems administrator is checking the system logs. The administrator wants to look at the last 20 lines of a log. Which of the following will execute the command?

    A. tail -v 20

    B. tail -n 20

    C. tail -c 20

    D. tail -l 20

  • Question 185:

    Which of the following technologies can be used as a central repository of Linux users and groups?

    A. LDAP

    B. MFA

    C. SSO

    D. PAM

  • Question 186:

    A Linux administrator is troubleshooting SSH connection issues from one of the workstations.

    When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

    The administrator reviews the information below:

    Which of the following is causing the connectivity issue?

    A. The workstation has the wrong IP settings.

    B. The sshd service is disabled.

    C. The server's firewall is preventing connections from being made.

    D. The server has an incorrect default gateway configuration.

  • Question 187:

    A Linux administrator is creating a new sudo profile for the accounting user. Which of the following should be added by the administrator to the sudo configuration file so that the accounting user can run / opt/ acc/ report as root?

    A. accounting localhost=/opt/acc/report

    B. accounting ALL=/opt/acc/report

    C. %accounting ALL=(ALL) NOPASSWD: /opt/acc/report

    D. accounting /opt/acc/report= (ALL) NOPASSWD: ALL

  • Question 188:

    After installing some RPM packages, a systems administrator discovers the last package that was installed was not needed. Which of the following commands can be used to remove the package?

    A. dnf remove packagename

    B. apt-get remove packagename

    C. rpm -i packagename

    D. apt remove packagename

  • Question 189:

    A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:

    Which of the following commands should replace the string?

    A. if [ -f "$filename" ]; then

    B. if [ -d "$filename" ]; then

    C. if [ -f "$filename" ] then

    D. if [ -f "$filename" ]; while

  • Question 190:

    At what point is the Internal Certificate Authority (ICA) created?

    A. During the primary Security Management Server installation process.

    B. Upon creation of a certificate.

    C. When an administrator decides to create one.

    D. When an administrator initially logs into SmartConsole.

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.