Free CompTIA XK0-005 Exam Questions (page: 12)

A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure. Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?

  1. docker export <container_id>
  2. docker info <container_id>
  3. docker start <container_id>
  4. docker inspect <container_id>

Answer(s): D



A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:



The Linux administrator attempts to start the timer service but receives the following error message:



Which of the following is MOST likely the reason the timer will not start?

  1. The checkdiskspace.timer unit should be enabled via systemctl.
  2. The timers.target should be reloaded to get the new configuration.
  3. The checkdiskspace.timer should be configured to allow manual starts.
  4. The checkdiskspace.timer should be started using the sudo command.

Answer(s): C



A Linux administrator wants to find out whether files from the wget package have been altered since they were installed. Which of the following commands will provide the correct information?

  1. rpm -i wget
  2. rpm -qf wget
  3. rpm -F wget
  4. rpm -V wget

Answer(s): D



A Linux engineer set up two local DNS servers (10.10.10.10 and 10.10.10.20) and was testing email connectivity to the local mail server using the mail command on a local machine when the following error appeared:



The local machine DNS settings are:



Which of the following commands could the engineer use to query the DNS server to get mail server information?

  1. dig @example.com 10.10.10.20 a
  2. dig @10.10.10.20 example.com mx
  3. dig @example.com 10.10.10.20 ptr
  4. dig @10.10.10.20 example.com ns

Answer(s): B



A Linux engineer has been notified about the possible deletion of logs from the file /opt/app/logs. The engineer needs to ensure the log file can only be written into without removing previous entries.



Which of the following commands would be BEST to use to accomplish this task?

  1. chattr +a /opt/app/logs
  2. chattr +d /opt/app/logs
  3. chattr +i /opt/app/logs
  4. chattr +c /opt/app/logs

Answer(s): A



Viewing page 12 of 97



Post your Comments and Discuss CompTIA XK0-005 exam prep with other Community members:

XK0-005 Exam Discussions & Posts