XK0-006: CompTIA Linux+

Review 155 XK0-006 practice questions with answer explanations and community insights.

Question 1

A Linux administrator needs to create and then connect to the app-01-image container. Which of the following commands accomplishes this task?

  1. docker run -it app-01-image
  2. docker start -td app-01-image
  3. docker build -ic app-01-image
  4. docker exec -dc app-01-image

Question 2

To perform a live migration, which of the following must match on both host servers? (Choose two).

  1. USB ports
  2. Network speed
  3. Available swap
  4. CPU architecture
  5. Available memory
  6. Disk storage path

Question 3

A Linux systems administrator needs to extract the contents of a file named /home/dev/web.bkp to the /var/www/html/ directory. Which of the following commands should the administrator use?

  1. cd /var/www/html/ && gzip -c /home/dev/web.bkp | tar xf -
  2. pushd /var/www/html/ $ cpio -idv < /home/dev/web.bkp && popd
  3. tar -c -f /home/dev/web.bkp /var/www/html/
  4. unzip -c /home/dev/web.bkp /var/www/html/

Question 4

Which of the following Ansible components contains a list of hosts and host groups?

  1. Fact
  2. Inventory
  3. Playbook
  4. Collection

Question 5

Which of the following filesystems contains non-persistent or volatile data?

  1. /boot
  2. /usr
  3. /proc
  4. /var