XK0-006 Practice Test

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

Question 21

A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?

  1. sudo rm -rf /dev/sda1
  2. sudo shred /dev/sda1
  3. sudo parted rm /dev/sda1
  4. sudo dd if=/dev/null of=/dev/sda1

Question 22

Which of the following utilities supports the automation of security compliance and vulnerability management?

  1. SELinux
  2. Nmap
  3. AIDE
  4. OpenSCAP

Question 23

Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?

  1. dmidecode
  2. lsmod
  3. dmesg
  4. lscpu

Question 24

A Linux administrator needs to analyze a compromised disk for traces of malware. To complete the analysis, the administrator wants to make an exact, block-level copy of the disk. Which of the following commands accomplishes this task?

  1. cp -rp /dev/sdc/* /tmp/image
  2. cpio -i /dev/sdc -ov /tmp/image
  3. tar cvzf /tmp/image /dev/sdc
  4. dd if=/dev/sdc of=/tmp/image bs=8192

Question 25

A systems administrator needs to set the IP address of a new DNS server. Which of the following files should the administrator modify to complete this task?

  1. /etc/whois.conf
  2. /etc/resolv.conf
  3. /etc/nsswitch.conf
  4. /etc/dnsmasq.conf