XK0-005 Practice Test practice questions, page 2 of 19, with answer review and explanations.
Question 6
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 string?
if [ -f "$filename" ]; then
if [ -d "$filename" ]; then
if [ -f "$filename" ] then
if [ -f "$filename" ]; while
Question 7
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.
Question 8
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?
Ansible
Puppet
Chef
Terraform
Question 9
Which of the following technologies can be used as a central repository of Linux users and groups?
LDAP
MFA
SSO
PAM
Question 10
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?
The address ac:00:11:22:33:cd is not a valid Ethernet address.
The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
The network interface eth0 is using an old kernel module.
The network interface cable is not connected to a switch.