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

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists.
Given the following:



Which of the following commands should replace the <CONDITIONAL> string?

  1. if [ -f "$filename" ]; then
  2. if [ -d "$filename" ]; then
  3. if [ -f "$filename" ] then
  4. if [ -f "$filename" ]; while

Answer(s): A



DRAG DROP

As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:

Add relevant content to /tmp/script.sh, so that it finds and compresses related files in /var/log without recursion.

INSTRUCTIONS

Drag and drop snippets to fill the blanks to build a script that performs the actual compression of rotated log files.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Select and Place:

  1. See Explanation section for answer.

Answer(s): A

Explanation:



A systems administrator is deploying three identical, cloud-based servers. The administrator is using the following code to complete the task:



Which of the following technologies is the administrator using?

  1. Ansible
  2. Puppet
  3. Chef
  4. Terraform

Answer(s): D



Which of the following technologies can be used as a central repository of Linux users and groups?

  1. LDAP
  2. MFA
  3. SSO
  4. PAM

Answer(s): A



A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to. When listing link parameters, the following is

presented:



Based on the output above, which of following is the MOST probable cause of the issue?

  1. The address ac:00:11:22:33:cd is not a valid Ethernet address.
  2. The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
  3. The network interface eth0 is using an old kernel module.
  4. The network interface cable is not connected to a switch.

Answer(s): D






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

XK0-005 Exam Discussions & Posts