XK0-006 Practice Test

XK0-006 Practice Test practice questions, page 2 of 7, with answer review and explanations.

Question 6

An administrator needs to verify the user ID, home directory, and assigned shell for the user named “accounting.” Which of the following commands should the administrator use to retrieve this information?

  1. qetent passwd accounting
  2. id accounting
  3. grep accounting /etc/shadow
  4. who accounting

Question 7

A Linux user needs to download the latest Debian image from a Docker repository. Which of the following commands makes this task possible?

  1. docker image init debian
  2. docker image pull Debian
  3. docker image import debian
  4. docker image save debian

Question 8

In the echo "profile-$num-$name" line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expanded?

  1. echo "profile-$(num)-$name"
  2. echo 'profile-$num-$name'
  3. echo "profile-‘Snum‘-$name"
  4. echo "profile-${num}-$name"

Question 9

A systems administrator wants to review the logs from an Apache 2 error.log file in real time and save the information to another file for later review. Which of the following commands should the administrator use?

  1. tail -f /var/log/apache2/error.log > logfile.txt
  2. tail -f /var/log/apache2/error.log | logfile.txt
  3. tail -f /var/log/apache2/error.log >> logfile.txt
  4. tail -f /var/log/apache2/error.log | tee logfile.txt

Question 10

Which of the following describes the method of consolidating system events to a single location?

  1. Log aggregation
  2. Health checks
  3. Webhooks
  4. Threshold monitoring