Exam Details

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

CompTIA CompTIA Certifications XK0-005 Questions & Answers

  • Question 121:

    The development team created a new branch with code changes that a Linux administrator needs to pull from the remote repository. When the administrator looks for the branch in Git, the branch in question is not visible. Which of the following commands should the Linux administrator run to refresh the branch information?

    A. git fetch

    B. git checkout

    C. git clone

    D. git branch

  • Question 122:

    A systems administrator is encountering performance issues. The administrator runs 3 commands with the following output

    The Linux server has the following system properties

    CPU: 4 vCPU Memory: 50GB

    Which of the following accurately describes this situation?

    A. The system is under CPU pressure and will require additional vCPUs

    B. The system has been running for over a year and requires a reboot.

    C. Too many users are currently logged in to the system

    D. The system requires more memory

  • Question 123:

    A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?

    A. ufw allow out dns

    B. systemct1 reload firewalld

    C. iptables -A OUTPUT -p udp -ra udp -dport 53 -j ACCEPT

    D. flrewall-cmd --zone-public --add-port-53/udp --permanent

  • Question 124:

    A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers. Which of the following commands can be used to copy a key file to remote servers? (Choose two.)

    A. wget

    B. ssh-keygen

    C. ssh-keyscan

    D. ssh-copy-id

    E. ftpd

    F. scp

  • Question 125:

    An administrator needs to increase the system priority of a process with PID 2274. Which of the following commands should the administrator use to accomplish this task?

    A. renice --n --15 2274

    B. nice -15 2274

    C. echo "--15" > /proc/PID/2274/priority

    D. ps --ef I grep 2274

  • Question 126:

    A Linux administrator needs to redirect all HTTP traffic temporarily to the new proxy server 192.0.2.25 on port 3128. Which of the following commands will accomplish this task?

    A. iptables -t nat -D PREROUTING -p tcp --sport 80 -j DNAT - -to-destination 192.0.2.25:3128

    B. iptables -t nat -A PREROUTING -p top --dport 81 -j DNAT -to-destination 192.0.2.25:3129

    C. iptables -t nat -I PREROUTING -p top --sport 80 -j DNAT -to-destination 192.0.2.25:3129

    D. iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT -to-destination 192.0.2.25:3128

  • Question 127:

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

    A systems administrator was tasked with assigning the temporary IP address/netmask 192.168.168.1/255.255.255.255 to the interface eth0 of a Linux server.

    When adding the address, the following error appears:

    # ip address add 192.168.168.1/33 dev eth0

    Error: any valid prefix is expected rather than "192.168.168.1/33".

    Based on the command and its output above, which of the following is the cause of the issue?

    A. The CIDR value /33 should be /32 instead.

    B. There is no route to 192.168.168.1/33.

    C. The interface eth0 does not exist.

    D. The IP address 192.168.168.1 is already in use.

  • Question 129:

    A Linux system is failing to boot with the following error: Which of the following actions will resolve this issue? (Choose two.)

    A. Execute grub-install --root-directory=/mnt and reboot.

    B. Execute grub-install /dev/sdX and reboot.

    C. Interrupt the boot process in the GRUB menu and add rescue to the kernel line.

    D. Fix the partition modifying /etc/default/grub and reboot.

    E. Interrupt the boot process in the GRUB menu and add single to the kernel line.

    F. Boot the system on a LiveCD/ISO.

  • Question 130:

    A cloud engineer is asked to copy the file deployment.yaml from a container to the host where the container is running. Which of the following commands can accomplish this task?

    A. docker cp container_id/deployment.yaml deployment.yaml

    B. docker cp container_id:/deployment.yaml deployment.yaml

    C. docker cp deployment.yaml local://deployment.yaml

    D. docker cp container_id/deployment.yaml local://deployment.yaml

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.