CompTIA XK0-005 Exam (page: 2)
CompTIA Linux+
Updated on: 25-Dec-2025

Viewing Page 2 of 61

Which of the following technologies can be used as a central repository of Linux users and groups?

  1. LDAP
  2. MFA
  3. SSO
  4. PAM

Answer(s): A



A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is

presented:



Based on the output above, which of following is the MOST probable cause of the issue?

  1. The address ac:00:11:22:33:cd is not a valid Ethernet address.
  2. The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
  3. The network interface eth0 is using an old kernel module.
  4. The network interface cable is not connected to a switch.

Answer(s): D



A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443. Which of the following commands will accomplish this task?

  1. podman run -d -p 443:8443 httpd
  2. podman run -d -p 8443:443 httpd
  3. podman run ­d -e 443:8443 httpd
  4. podman exec -p 8443:443 httpd

Answer(s): A



A Linux administrator needs to analyze a failing application that is running inside a container. Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?

  1. docker run -ti app /bin/sh
  2. podman exec -ti app /bin/sh
  3. podman run -d app /bin/bash
  4. docker exec -d app /bin/bash

Answer(s): B



A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1. Which of the following commands will accomplish this task?

  1. tar -cvzf /dev/sdd1 /dev/sdc1
  2. rsync /dev/sdc1 /dev/sdd1
  3. dd if=/dev/sdc1 of=/dev/sdd1
  4. scp /dev/sdc1 /dev/sdd1

Answer(s): C



When trying to log in remotely to a server, a user receives the following message:



The server administrator is investigating the issue on the server and receives the following outputs:



Which of the following is causing the issue?

  1. The wrong permissions are on the user's home directory.
  2. The account was locked out due to three failed logins.
  3. The user entered the wrong password.
  4. The user has the wrong shell assigned to the account.

Answer(s): D



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.)

  1. wget
  2. ssh-keygen
  3. ssh-keyscan
  4. ssh-copy-id
  5. ftpd
  6. scp

Answer(s): D,F



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?

  1. echo 1 > /proc/sys/net/ipv4/ipv_forward
  2. sysctl -w net.ipv4.ip_forward=1
  3. firewall-cmd --enable ipv4_forwarding
  4. systemctl start ipv4_forwarding

Answer(s): B



Viewing Page 2 of 61



Share your comments for CompTIA XK0-005 exam with other users:

soheib 7/24/2023 7:05:00 PM

question: 78 the right answer i think is d not a
Anonymous