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

    SIMULATION

    After installing a new web server, you are unable to browse to the default web page.

    INSTRUCTIONS

    Review all the command output and select the command needed to remediate the issue.

    If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

    Correct Answer. Systemctl restart nginx

  • Question 202:

    A security audit concludes that an organization's database servers need to be hardened As a result, an administrator obtans tie fofcjwwng partial Nmap output from a database server.

    Which of the following commands should the administrator execute to mitigate security risks?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 203:

    A storage administrator added a new primary partition to a drive and wants to create a filesystem without rebooting. Which of the following commands will allow this to happen?

    A. fdisk
    B. fsck2
    C. partprobe
    D. parted

  • Question 204:

    A systems administrator is implementing disk quotas on /home. During the process, the administrator receives the following error:

    Cannot find filesystem to check or filesystem not mounted with user quota option.

    Which of the following is the correct order of steps the administrator should follow to resolve this error?

    A. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 2. Remount /home. 3. Create the quota database files and generate the disk usage table. 4. Assign user quota policies.
    B. 1. Create the quota database files and generate the disk usage table. 2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 3. Remount /home. 4. Assign user quota policies.
    C. 1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 2. Create the quota database files and generate the disk usage table. 3. Remount /home. 4. Assign user quota policies.
    D. 1. Assign user quota policies. 2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it. 3. Create the quota database files and generate the disk usage table. 4. Remount /home.

  • Question 205:

    A user sent the following log to the help desk:

    Which of the following should the help desk technician do to resolve this issue?

    A. chmod 700 /home/user02/.ssh
    B. chown -R user01 /home/user02
    C. chmod u+x /home/user02
    D. chmod 600 /home/user02/.bash_profile

  • Question 206:

    A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?

    A. pvcreate
    B. vgcreate
    C. lvcreate
    D. mkfs.xfs

  • Question 207:

    A customer reports a Linux production server is randomly suffering degraded performance. The administrator verifies that the sysstat package is installed and enabled on the server. Which of the following would BEST determine what is causing the impact on performance?

    A. Create a cron job that runs uptime every 15 minutes to collect historical data of the load average of the system.
    B. Leave a ping running overnight from a laptop to the server to catch any latency encountered.
    C. Analyze the data in /var/log/sa using the sar command.
    D. Open a screen session and run top inside of it. Let it run over night and collect the data.

  • Question 208:

    A Linux administrator needs to configure a new firewall without an existing ACL to allow incoming web traffic. The firewall must log the allowed network traffic. Which of the following command sequences would accomplish this task when they are executed in order?

    A. iptables -A INPUT -p tcp --dport 80 -J LOG iptables -A INPUT -p tcp --dport 443 -J LOG iptables -I INPUT -p tcp --dport 80 -J ACCEPT iptables -I INPUT -p tcp --dport 443 -J ACCEPT
    B. iptables -I INPUT -m multiport -p tcp --dports 80,443 -J LOG iptables -I INPUT -m multiport -p tcp --dports 80,443 -J ACCEPT
    C. iptables -A INPUT -m multiport -p tcp --dports 80,443 -J LOG iptables -A INPUT -m multiport -p tcp --dports 80,443 -J ACCEPT
    D. iptables -A INPUT -p tcp --dport 80 -J ACCEPT iptables -A INPUT -p tcp --dport 443 -J ACCEPT iptables -A INPUT -p tcp --dport 80 -J LOG iptables -A INPUT -p tcp --dport 443 -J LOG

  • Question 209:

    A junior systems administrator is diagnosing an issue with latency. The administrator issues the command mtr www.comptia.org at a terminal and receives the following output:

    Given this scenario and the output, which of the following should be reported to the network team for investigation? (Choose two.)

    A. Host 1 is set to filter ICMP reply packets.
    B. Host 1 is set to filter ICMP echo packets.
    C. Host 2 is experiencing high packet loss, indicating the link is overloaded.
    D. Host 2 is experiencing low bandwidth, indicating the ISP is blocking traffic.
    E. Host 3 is set to filter ICMP reply packets.
    F. Host 3 is set to filter ICMP echo packets.

  • Question 210:

    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

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.