Exam Details

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

CompTIA CompTIA Linux+ XK0-004 Questions & Answers

  • Question 11:

    A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1.

    Which of the following commands should the administrator execute to determine the default gateway of the server?

    A. route -n

    B. ip a default-gw

    C. ifconfig

    D. nslookup

  • Question 12:

    A Linux user uses a VPN to securely access the company's systems from a laptop.

    Which of the following protocols are MOST likely used to secure the VPN connection? (Choose two.)

    A. IPSec

    B. HTTP

    C. SFTP

    D. VNC

    E. SSL/TLS

    F. SELinux

  • Question 13:

    An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk usage check shows / has plenty of space.

    Which of the following BEST represents where the administrator should check next?

    A. /var

    B. /proc

    C. /boot

    D. /etc

  • Question 14:

    A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot.

    Which of the following is the BEST command to do this?

    A. systemctl reset-failed sendmail

    B. systemctl mask sendmail

    C. systemctl stop sendmail

    D. systemctl disable sendmail

  • Question 15:

    A user creates and installs a Linux VM on a local workstation. The VM can only connect to the local workstation. Which of the following BEST represents the default virtual network configuration in this instance?

    A. Host-only

    B. Bridged

    C. NAT

    D. Dual-homed

  • Question 16:

    A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command:

    # screen /dev/USB0

    Which of the following does this command MOST likely accomplish?

    A. It copies the network traffic from the device connected to USB0 and screens out rejected traffic.

    B. It logs all troubleshooting output from the monitor to external USB0 storage.

    C. It monitors USB0 waiting for a network device to be connected to it as an Ethernet device.

    D. It allows the administrator to interact with the character device connected to USB0.

  • Question 17:

    A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is opened and a 0 when the door is closed.

    Which of the following describes the Linux device to which this switch is attached?

    A. /dev/tty0

    B. /dev/port

    C. /dev/gpio

    D. /dev/sg0

  • Question 18:

    Which of the following Linux server roles should be installed to monitor and log local web traffic?

    A. Proxy server

    B. AAA server

    C. SSH server

    D. HTTP server

    E. Name server

  • Question 19:

    An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starting the service, the site operates correctly for a few minutes before the process disappears again.

    Which of the following should the administrator consider as the MOST likely possibility before troubleshooting the issue?

    A. The CPU has too much load, causing it to overheat, and the kernel is automatically killing the processes to keep the CPU cool.

    B. An external database to which the web server connects is offline, causing httpd to die due to execution errors.

    C. Shared libraries, which were recently updated, are causing compatibility issues and httpd to die due to version mismatch.

    D. The out-of-memory killer was activated due to low available memory, causing the kernel to kill the processes automatically.

    E. The server is intermittently losing access to the network, causing socket errors that trigger httpd to die.

  • Question 20:

    Joe, a user, creates a short shell script, shortscript.sh, and saves it in his home directory with default permissions and paths. He then attempts to run the script by typing ./shortscript.sh, but the command fails to execute.

    Which of the following commands would have allowed the script to run?

    A. chmod u+x shortscript.sh

    B. source ./shortscript.sh

    C. chmod 155 ~/shortscript.sh

    D. chgrp shortscript.sh Joe

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.