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

    Joe, a user, reports there is data missing after a reboot of the system he is using. The data he was working on was located in /opt/data/user1. A Linux administrator runs the following commands and receives the resulting output.

    Which of the following should the administrator perform to resolve the issue?

    A. The administrator can conclude Joe no longer has permissions to his data and needs to change the data ownership to Joe.
    B. The administrator can conclude the data is gone from the system and needs to be restored from a backup.
    C. The administrator can conclude Joe has been using the wrong folder and should be using /opt/ data/user2.
    D. The administrator can conclude the drive is not mounted properly and should be remounted.

  • Question 362:

    A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap.

    Which of the following commands would allow the administrator to accomplish this task?

    A. netcat -p 80 -w test.pcap
    B. tshark -r test.pcap -o http
    C. tcpdump -i eth0 port 80 -r test.pcap
    D. tcpdump -i eth0 port 80 -w test.pcap

  • Question 363:

    In order to comply with new security policies, an administrator needs to prevent the SSH server from using insecure algorithms. Which of the following files should be edited to accomplish this?

    A. /etc/ssh/sshd_config
    B. /etc/ssh/ssh_config
    C. ~/.ssh/ssh_config
    D. /etc/ssh/known_hosts

  • Question 364:

    A user cannot reach the internet from a workstation. A systems administrator performs diagnostics with the following results:

    Which of the following is the cause for lack of internet connectivity?

    A. The workstation is not using a DNS server.
    B. The network gateway is not reachable from the workstation.
    C. The incorrect network mask is set for the interface enp2so on the workstation.
    D. The company's firewall is blocking connections from the workstation to the internet.

  • Question 365:

    An administrator is reviewing suspicious activity on a server and needs to determine which users logged into the system within the past 24 hours. Which of the following commands should the administrator run to determine this?

    A. last
    B. who
    C. id
    D. usermod

  • Question 366:

    A Linux administrator needs to run a few virtual machines and containers on the physical machines with a single network interface. Which of the following networking would allow the administrator to connect with the outside world?

    A. Bridging
    B. VLAN
    C. Bonding/teaming
    D. VPN

  • Question 367:

    An administrator is utilizing an automation engine that engine that uses SSH to run command on remote systems. Which of the following does this describe?

    A. Inventory
    B. Agentless architecture
    C. Build automation
    D. Version control

  • Question 368:

    A Linux administrator recently reprovisioned a new corporate web server to replace a legacy one. To minimize the impact on the company's users, the administrator modified the network and DNS settings of the new server to be the same as the legacy server.

    When attempting to log in to the new server remotely over SSH, the following error message is displayed:

    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! Which of the following should the administrator do to resolve the issue?

    A. Restart the network services on both the remote server and the local machine.
    B. Remove the entry for the web server from the known_hosts file on the local machine.
    C. Update the /etc/hosts file on the remote server and local machine.
    D. Add the administrator's public key to the authorized_keys on the remote server.

  • Question 369:

    A server administrator is attempting to reserve the IP address of 10.0.0.51 for a Linux workstation named PC-10021 using a Windows DHCP service. However, after several reboots, the workstation is not receiving the reserved address. The administrator checks the DHCP leases and sees the following entry: Which of the following should the administrator do to ensure the Linux workstation uses the proper reservation address?

    A. Specify the MAC address in the Windows DHCP reservation as the first 16 characters of the MAC address listed in the existing lease
    B. Create the file /etc/dhcp/dhclient.conf on the workstation and add the entry send: dhcp-client-identifier = hardware;
    C. Disable IPv6 on the Linux Ethernet adapter and change the settings in NetworkManager to Automatic (Address Only) under the IPv4 setting
    D. Edit the interface connection in NetworkManager and manually specify the MAC address of 1C:83:C3:46:4D:3E:7F:8C

  • Question 370:

    A systems administrator needs to write a script that performs unattended package upgrades. Which of the folowing flags should be used with either yum or apt to meet this goal?

    A. -u
    B. -q
    C. -y
    D. -d

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.