XK0-004 Exam Details

  • Exam Code
    :XK0-004
  • Exam Name
    :CompTIA Linux+ Certification
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :516 Q&As
  • Last Updated
    :Aug 23, 2023

CompTIA XK0-004 Online Questions & Answers

  • Question 91:

    Which of the following will provide a list of all flash, external, internal, and SSD drives?

    A. lspci
    B. lsmod
    C. lsblk
    D. lsusb

  • Question 92:

    A remote server reverts to the incorrect time when it is restarted. Which of the following will save the correct time to the BIOS clock once the time and date have been set on the server?

    A. btime -- settime B. btime -- setdate
    C. hwclock -- systohc
    D. date -- setclock

  • Question 93:

    An administrator needs to download a monitoring agent called node_exporter.0.16.0-Linux.amd64 from the internal web page https://company.local/downloads/. The server does not have graphical interface. Which of the following commands will accomplish this task?

    A. curl -K https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz
    B. curl -k https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz
    C. curl --auth https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz
    D. curl -A https://company.local/downloads/node_exporter.0.16.0-Linux.amd64.tar.gz -o node_exporter.tar.gz

  • Question 94:

    A Linux administrator is using a public cloud provider to host servers for a company's website. Using the provider's tools, the administrator wrote a JSON file to define how to deploy the servers. Which of the following techniques did the administrator use?

    A. Infrastructure as code
    B. Build automation
    C. Platform as a service
    D. Automated configuration

  • Question 95:

    An administrator wants to add a user named comptia to the system administrators group. Which of the following commands will accomplish this task?

    A. Usermod -sG wheel comptia
    B. Useradd -sG wheel comptia
    C. visudo -sG wheel comptia
    D. sudo -sG wheel comptia

  • Question 96:

    A Linux administrator is testing a configuration script and wants to change the hostname of a workstation temporarily, but it must return to its assigned workstation name after reboot. Which of the following is the BEST command for the administrator to use?

    A. Hostnamet1 set-hostname 璽ransient tempname
    B. Hostnamect1 璈 localhost tempname
    C. Hostnamect1 set-hostname tempname
    D. Hostnamect1 set-hostname 璼tatic tempname

  • Question 97:

    All users are reporting that they cannot connect to the SFTP server. The administrator runs a scan:

    Which of the following would allow the administrator to fix the problem?

    A. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
    B. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
    C. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
    D. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.

  • Question 98:

    Which of the following BEST describes the purpose of the X11 system?

    A. X11 provides graphical display capabilities
    B. X11 provides command line capabilities
    C. X11 provides networking capabilities
    D. X11 provides telephony capabilities.

  • Question 99:

    A senior systems administrator wants to standardize the commands used in the department and update documentation for junior Linux administrators for using systemd. Which of the following commands replaces the old command service named stop?

    A. systemctl kill named
    B. systemctl stop named
    C. systemctl named stop
    D. systemctl named kill

  • Question 100:

    A system administrator is troubleshooting a web server that runs in a container. After the log is retained, the container occasionally stops logging to a log file. Fortunately, the vendor provides a custom signal that allows the application to reconnect to the log file. Which of the following would be BEST for the administrator to run the containers?

    A. Kill 璈UP 1
    B. Kill 璘SR 1
    C. Kill 璗EAM 1
    D. Kill 璌ill 1

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-004 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.