XK0-006 Practice Test

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

Question 11

A systems administrator wants to prevent the current contents of a file from being overwritten and wants to allow new additions at the end of the file. Which of the following commands should the administrator use?

  1. setenforce file
  2. setfacl -m m::t file
  3. chattr +a file
  4. chmod +t file

Question 12

A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the administrator use?

  1. ssh-keygen -t rsa $ ssh-copy-id -i ~/.ssh/id_rsa.pub john@server2
  2. ssh-keyscan -t rsa $ ssh-copy-id john@server2 -i ~/.ssh/key
  3. ssh-agent -i rsa $ ssh-copy-id ~/.ssh/key john@server2
  4. ssh-add -t rsa $ scp -rp ~/.ssh john@server2

Question 13

An administrator updates the network configuration on a server but wants to ensure the change will not cause an outage if something goes wrong. Which of the following commands allows the administrator to accomplish this goal?

  1. netplan try
  2. netplan rebind
  3. netplan ip
  4. netplan apply

Question 14

Which of the following best describes journald?

  1. A system service that collects and stores logging data
  2. A feature that creates crash dumps in case of kernel failure
  3. A service responsible for keeping the filesystem journal
  4. A service responsible for writing audit records to a disk

Question 15

A Linux administrator wants to add a user to the Docker group without changing their primary group. Which of the following commands should the administrator use to complete this task?

  1. sudo groupmod docker user
  2. sudo usermod -g docker user
  3. sudo usermod -aG docker user
  4. sudo groupmod -G docker user