XK0-005 Exam Details

  • Exam Code
    :XK0-005
  • Exam Name
    :CompTIA Linux+
  • Certification
    :CompTIA Certifications
  • Vendor
    :CompTIA
  • Total Questions
    :476 Q&As
  • Last Updated
    :May 25, 2026

CompTIA XK0-005 Online Questions & Answers

  • Question 191:

    Users connecting to a MySQL database on a Linux system report frequent errors. An administrator reviews the following partial output of the /proc/meminfo and free commands: Which of the following should the administrator do to ensure that the MySQL service will continue to run even if the system runs out of swap space? (Select two.)

    A. Issue the sysctl -w vm.overcommit_ratio=100 command.
    B. Issue the sysctl -w vm.overcommit_memory=2 command.
    C. Issue the dd if=/dev/zero of=/swapfile bs=1024 count=65536 command.
    D. Issue the mkswap /dev/sda2; swapon -v /dev/sda2 command.
    E. Reload the /etc/fstab file by issuing the mount -a command.
    F. Use disk quotas on the swap space to prevent MySQL from overutilizing the swap partition.

  • Question 192:

    A systems administrator wants to check for running containers. Which of the following commands can be used to show this information?

    A. docker pull
    B. docker stats
    C. docker ps
    D. docker list

  • Question 193:

    A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?

    A. sudo passwd
    B. sudo userde 1
    C. sudo chage
    D. sudo usermod

  • Question 194:

    A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily. Which of the following is MOST likely causing the issue?

    A. The checkdiskspace.service is not running.
    B. The checkdiskspace.service needs to be enabled.
    C. The OnCalendar schedule is incorrect in the timer definition.
    D. The system-daemon services need to be reloaded.

  • Question 195:

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

    A. LUKS
    B. TLS
    C. SSL
    D. NFS

  • Question 196:

    A systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding. Which of the following commands is the correct way to accomplish this task?

    A. echo 1 > /proc/sys/net/ipv4/ipv_forward
    B. sysctl -w net.ipv4.ip_forward=1
    C. firewall-cmd --enable ipv4_forwarding
    D. systemct1 start ipv4_forwarding

  • Question 197:

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

    A User on a Linux workstation needs to remotely start an application on a Linux server and then forward the graphical display of that application back to the Linux workstation. Which of the following would enable the user to perform this action?

    A. ssh -X user@server application
    B. ssh -y user@server application
    C. ssh user@server application
    D. ssh -D user@server application

  • Question 199:

    A systems administrator engineer wants to configure a Linux server's time zone to America/Chicago. The engineer verifies that the server's time zone is configured for Asia/Tokyo:

    Which of the following commands should the engineer execute to make this change?

    A. date configure -set-timezone America/Chicago
    B. set-timezone -config America/Chicago
    C. time date set America/Chicago
    D. timedatect1 set-timezone America/Chicago

  • Question 200:

    A systems engineer has deployed a new application server, but the server cannot communicate with the backend database hostname. The engineer confirms that the application server can ping the database server's IP address. Which of the following is the most likely cause of the issue?

    A. Incorrect DNS servers
    B. Unreachable default gateway
    C. Missing route configuration
    D. Misconfigured subnet mask

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.