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

    Which of the following is modified to reconfigure the boot environment?

    A. grub-mkconfig
    B. grub.cfg
    C. update-grub
    D. grub2-mkconfig

  • Question 172:

    Which of the following statements BEST represents what the term "agentless" means regarding orchestration?

    A. Installation of a tool is not required on the remote system to perform orchestration tasks
    B. It facilitates version control when using infrastructure as code during orchestration
    C. It automatically removes malware from the remote system during orchestration
    D. A tool can only be accessed remotely to perform orchestration tasks

  • Question 173:

    A Linux systems administrator needs to copy the contents of a directory named "working" on the local working system to a folder /var/www/html on a server named "corporate-web". Which of the following commands will allow the administrator to copy all the contents to the web server?

    A. scp -r working/* webuser@corporate-web:/var/www/html
    B. tar working/* webuser@corporate-web:/var/www/html
    C. cp -r working/* webuser@corporate-web:/var/www/html
    D. mv working webuser@corporate-web:/var/www/html

  • Question 174:

    An administrator notices a directory on a web server named /var/www/html/old_reports that should no longer be accessible on the web. Which of the following commands will accomplish this task?

    A. chmod 000 /var/www/html/old_reports
    B. chgrp root /var/www/html/old_reports
    C. chown apache /var/www/html/old_reports
    D. setenforce apache /var/www/html/old_reports

  • Question 175:

    Due to security policies, a restriction was implemented that forbids direct access to the database server. The junior administrator needs to connect using SSH tunneling. Which of the following commands allows the junior administrator to connect from a desktop?

    A. ssh -L dbserver.local:5432:localhost:95432 [email protected]
    B. ssh -L 5432:localhost dbserver.local:5432 postgres
    C. ssh -L 95432:localhost [email protected]
    D. ssh -L 9432:localhost:5432 [email protected]

  • Question 176:

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

    Which of the following commands will result in the HIGHEST compression level when using gzig to compress a file name file, txt?

    A. Gzip -9 file. text
    B. Gzip -100-file. Text
    C. Crip 環igh file.txt
    D. Gzip -5 file.txt
    E. Gzip 璮ast file. text

  • Question 178:

    A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring parameters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in size. In addition, five rotations of the file should exist in the /var/log directory.

    Which of the following should be added to the /etc/logrotate.conf file to meet this objective?

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

  • Question 179:

    A junior systems administrator is scanning archive.tar files with an antivirus scanner. The administrator is given the following tasks:

    1.

    List all files that are in the archive.tarfiles.

    2.

    Extract all files from the archive.tarfiles.

    Which of the following actions should be performed to meet these requirements? (Choose two.)

    A. tar -tvf archive.tar
    B. tar -xf archive.tar
    C. tar -A archive.tar
    D. tar -av archive.tar
    E. tar -r archive.tar
    F. tar -uvz archive.tar

  • Question 180:

    Which of the following is a file that can define how to build, deploy, and install various components for a Linux application hosted in a cloud environment?

    A. OVF
    B. YAML
    C. Virsh
    D. VMM

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.