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 CompTIA Certifications XK0-004 Questions & Answers

  • Question 251:

    A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to report the amount of free disk space on the system and to send the output to a file named "freespace". Which of the following would meet this requirement?

    A. 13 15 * * 5 df > /freespace

    B. 15 13 * * 5 df > /freespace

    C. 15 1 * * 6 df > /freespace

    D. 15 13 6 * * df > /freespace

  • Question 252:

    A technician wants to secure a sensitive workstation by ensuring network traffic is kept within the local subnet. To accomplish this task, the technician executes the following command:

    echo 0 > /proc/sys/net/ipv4/ip_default_ttl

    Which of the following commands can the technician use to confirm the expected results? (Choose two.)

    A. tcpdump

    B. traceroute

    C. route

    D. iperf

    E. ip

    F. arp

  • Question 253:

    The development team has automated their software build process so each time a change is submitted to the source code repository, a new software build is compiled. They are requesting that the Linux operations team look into automating the deployment of the software build into the test environment. Which of the following is the benefit to the development team for implementing deployment automation?

    A. To ensure the build commits are also deployed to the test environment

    B. To enable notifications when builds are deployed to the test environment

    C. To ensure software builds in test are not accidentally deployed to production

    D. To streamline the deployment process for deploying builds into test environments

  • Question 254:

    An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?

    A. /proc/cpuinfo

    B. /etc/devices/info.conf

    C. /dev/proc/cpu

    D. /sys/dev/cpuinfo

  • Question 255:

    A junior systems administrator is creating a cron job. The cron job requirements are as follows:

    1.

    Run the hello.sh script every hour (24 times in one day).

    2.

    Run it on Monday only.

    Given this scenario, which of the following crontab options should be configured to meet these requirements?

    A. 0 *** 1 hello.sh

    B. 0 24 ** Monday hello.sh

    C. 24 *** Monday hello.sh

    D. 1 *** 0 hello.sh

  • Question 256:

    A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task?

    A. Use curl to copy each user's public key file to the respective system

    B. Use cp to copy each user's public key file to the respective system

    C. Use ssh-copy-id to copy each user's public key file to the respective system

    D. Use ssh-copy-id to copy each user's private key file to the respective system

  • Question 257:

    A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?

    A. ~/ssh/authorized-keys

    B. /etc/authorized_keys

    C. /etc/sshd/ssh.conf

    D. ~/.ssh/authorized_keys

  • Question 258:

    A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?

    A. fetch

    B. log

    C. init

    D. pull

  • Question 259:

    A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server's router is 192.168.1.1. The administrator reviews the output of route -n:

    Which of the following commands should the administrator run to correct the issue?

    A. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0

    B. route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0

    C. route add 192.168.1.1 default 192.168.1.50 eth0

    D. route host gw 192.168.1.1 eth0

  • Question 260:

    An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit -m "changed the property file" server.property. Which of the following commands did the engineer fail to perform?

    A. git init server.property

    B. git merge server.property

    C. git add server.property

    D. git push server.property

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.