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

    A Linux administrator is testing a new web application on a local laptop and consistently shows the following 403 errors in the laptop's logs:

    The web server starts properly, but an error is generated in the audit log. Which of the following settings should be enabled to prevent this audit message?

    A. httpd_can_network_connect = 1
    B. httpd_enable_scripting = 1
    C. httpd_enable_homedirs = 1
    D. httpd_enable_cgi = 1

  • Question 112:

    A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:

    Given this scenario, which of the following steps will address this issue?

    A. Issue the command renice -n 0 -p 8481
    B. Issue the command renice -p 8481
    C. Issue the command renice -p 0 -n 8481
    D. Issue the command renice -n 8481

  • Question 113:

    A user issues the following command: ls -l /var/log | egrep -e `^d[rwx]{3}.*[rw-]{3}.*' The list of files in the system is shown below:

    Which of the following results matches the command issued?

    A. drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
    B. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade drwxr-x--- 2 root adm 4096 Apr 25 14:41 unattended-upgrades
    C. drwxr-xr-x 2 root root 4096 Apr 24 08:36 apt drwxr-xr-x 2 root root 4096 Apr 9 14:25 dist-upgrade drwxr-x--- 2 root adm 4096 Apr 25 15:41 attended-upgrades
    D. -rw-r--r-- 1 root root 2877 Apr 24 14:14 alternatives.log -rw-r--r-- 1 syslog adm 246139 Jun 12 15:21 cloud-init.log -rw-r--r-- 1 root root 8872 Jun 12 15:21 cloud-init-output.log

  • Question 114:

    A user is reporting unusual slowness when trying to transfer a large file to an NFS server from a workstation. The administrator runs tracepath and gets the following output:

    Which of the following BEST describes the issue and a possible solution?

    A. The path MTU is lower than the source MTU. Reduce the source MTU setting.
    B. There is latency at the storage device. Work with the storage team to correct the issue.
    C. There is latency on an intermediate router. Increase the path MTU to compensate.
    D. There are dropped packets at an intermediate router. Work with the network team to correct the issue.

  • Question 115:

    A Bash script is saving the following list of users from the home directory to a variable:

    User=''home/matt home/tom home/john home/mike''.

    Which of the following commands creates a list of only the usernames?

    A. Users='' (sed -r 's/home///g'
    B. Users=$ (sed -r 's?|home/||'
    C. Users=$(Users//home\ /)
    D. Users='sed -r 's/home\ ///g'

  • Question 116:

    An administrator needs to ensure the JAVA_HOME variable is set correctly for all users that log in to the server. Which of the following files should be edited to set this variable?

    A. /etc/profile
    B. /etc/skel/.profile
    C. /home/user/.profile
    D. /etc/rc.local

  • Question 117:

    A systems administrator has received reports of intermittent network connectivity to a particular website. Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?

    A. mtr www.comptia.org
    B. tracert www.comptia.org
    C. ping www.comptia.org
    D. netstat www.comptia.org

  • Question 118:

    Joe, a Linux administrator implemented an IP blocking solution to secure a server, but he is now unable to connect to the server from the office. Which of the following should Joe review to determine if the office desktop was blocked by this solution?

    A. journalctl
    B. /etc/ufw
    C. dmesg
    D. /var/log/audit
    E. /etc/hosts.deny

  • Question 119:

    A Linux administrator suspects unauthorized users are attempting to log in to the Linux server remotely. Which of the following should the administrator check FIRST?

    A. /var/log/messages
    B. /var/log/secure
    C. /var/log/dmesg
    D. /var/log/kern.log

  • Question 120:

    An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?

    A. ps axjf | grep bash to obtain PID kill -9 PID
    B. ps -eo pid,etime,cmd | grep bash (to obtain PID) kill -9 PID
    C. ps -eo pid,etime| grep bash (to obtain PID) killall -9 PID
    D. killall -15 -o bash

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.