Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :396 Q&As
  • Last Updated
    :Apr 08, 2025

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 161:

    A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

    A. partprobe vgcreate lvextend

    B. lvcreate fdisk partprobe

    C. fdisk partprobe mkfs

    D. fdisk pvcreate vgextend

  • Question 162:

    Which of the following technologies provides load balancing, encryption, and observability in containerized environments?

    A. Virtual private network

    B. Sidecar pod

    C. Overlay network

    D. Service mesh

  • Question 163:

    Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?

    A. route -i etho -p add 10.0.213.5 10.0.5.1

    B. route modify eth0 +ipv4.routes "10.0.213.5/32 10.0.5.1"

    C. echo "10.0.213.5 10.0.5.1 eth0" > /proc/net/route

    D. ip route add 10.0.213.5/32 via 10.0.5.1 dev eth0

  • Question 164:

    A systems administrator is tasked with creating a cloud-based server with a public IP address.

    Which of the following technologies did the systems administrator use to complete this task?

    A. Puppet

    B. Git

    C. Ansible

    D. Terraform

  • Question 165:

    A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content:

    The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

    A. Add #!/bin/bash to the bottom of the script.

    B. Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.

    C. Add #!//bin/bash to the top of the script.

    D. Restart the computer to enable the new service.

    E. Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.

    F. Shut down the computer to enable the new service.

  • Question 166:

    A Linux administrator has defined a systemd script docker-repository.mount to mount a volume for use by the Docker service. The administrator wants to ensure that Docker service does not start until the volume is mounted. Which of the following configurations needs to be added to the Docker service definition to best accomplish this task?

    A. After=docker-respository.mount

    B. ExecStart=/usr/bin/mount -a

    C. Requires=docker-repository.mount

    D. RequiresMountsFor=docker-repository.mount

  • Question 167:

    An administrator would like to mirror the website files on the primary web server, www1, to the backup web server, www2. Which of the following commands should the administrator use to most efficiently accomplish this task?

    A. [wwwl ] rsync --a --e ssh /var/www/html/ user1@www2 : /var/www/html

    B. [ wwwl ] scp --r /var/www/html user1@www2 : / var/www/html

    C. [www2 ] cd /var/www/html; wget --m http: //wwwl/

    D. [wwwl ] cd /var/www/html andand tar cvf -

  • Question 168:

    After listing the properties of a system account, a systems administrator wants to remove the expiration date of a user account. Which of the following commands will accomplish this task?

    A. chgrp system accountname

    B. passwd -s accountname

    C. chmod -G system account name

    D. chage -E -1 accountname

  • Question 169:

    An administrator started a long-running process in the foreground that needs to continue without interruption. Which of the following keystrokes should the administrator use to continue running the process in the background?

    A. bg

    B. bg

    C. jobs -1

    D. bg and

  • Question 170:

    Which of the following specifications is used to perform disk encryption in a Linux system?

    A. LUKS

    B. TLS

    C. SSL

    D. NFS

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-005 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.