XK0-005 Practice Test Questions

361 Questions


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:

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


A.

The checkdiskspace.timer unit should be enabled via systemctl.


B.

The timers.target should be reloaded to get the new configuration.


C.

The checkdiskspace.timer should be configured to allow manual starts.


D.

The checkdiskspace.timer should be started using the sudo command.





C.
  

The checkdiskspace.timer should be configured to allow manual starts.



A cloud engineer is installing packages during VM provisioning. Which of the following should the engineer use to accomplish this task?


A.

Cloud-init


B.

Bash


C.

Docker


D.

Sidecar





A.
  

Cloud-init



One leg of an LVM-mirrored volume failed due to the underlying physical volume, and a systems administrator is troubleshooting the issue. The following output has been provided:

Given this scenario, which of the following should the administrator do to recover this volume?


A.

Reboot the server. The volume will automatically go back to linear mode.


B.

Replace the failed drive and reconfigure the mirror.


C.

Reboot the server. The volume will revert to stripe mode.


D.

Recreate the logical volume.





B.
  

Replace the failed drive and reconfigure the mirror.



Which of the following directories is the mount point in a UEFI system?


A.

/sys/efi


B.

/boot/efi


C.

/efi


D.

/etc/efi





B.
  

/boot/efi



A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH. Which of the following environment variables must be set in remote shell in order to launch the graphical interface?


A.

$RHOST


B.

SETENV


C.

$SHELL


D.

$DISPLAY





D.
  

$DISPLAY



Junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.

INSTRUCTIONS
Install Apache and start the service. Verify that the Apache service is running with the defaults.

Typing “help” in the terminal will show a list of relevant event commands. If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.






Answer: See the explanation below.
Explanation:
yum install httpd
systemctl -now enable httpd
systemctl status httpd
netstat -tunlp | grep 80
pkill <processname>
systemctl restart httpd
systemctl status httpd

A systems administrator configured firewall rules using firewalld. However, after the system is rebooted, the firewall rules are not present:

Which of the following is the reason the firewall rules are not active?


A.

iptables is conflicting with firewalld.


B.

The wrong system target is activated.


C.

FIREWALL_ARGS has no value assigned.


D.

The firewalld service is not enabled.





D.
  

The firewalld service is not enabled.



Several users reported that they were unable to write data to the /oracle1 directory. The following output has been provided:

Which of the following commands should the administrator use to diagnose the issue?


A.

df -i /oracle1


B.

fdisk -1 /dev/sdb1


C.

lsblk /dev/sdb1


D.

du -sh /oracle1





A.
  

df -i /oracle1



A systems administrator is tasked with preventing logins from accounts other than root, while the file /etc/nologin exists. Which of the following PAM modules will accomplish this task?


A.

pam_login.so


B.

pam_access.so


C.

pam_logindef.so


D.

pam_nologin.so





D.
  

pam_nologin.so



A Linux administrator is troubleshooting SSH connection issues from one of the
workstations. When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

Which of the following is causing the connectivity issue?


A.

The workstation has the wrong IP settings.


B.

The sshd service is disabled.


C.

The server’s firewall is preventing connections from being made.


D.

The server has an incorrect default gateway configuration.





B.
  

The sshd service is disabled.



A DevOps engineer needs to download a Git repository from https://git.company.com/admin/project.git. Which of the following commands will achieve this goal?


A.

git clone https://git.company.com/admin/project.git


B.

git checkout https://git.company.com/admin/project.git


C.

git pull https://git.company.com/admin/project.git


D.

git branch https://git.company.com/admin/project.git





A.
  

git clone https://git.company.com/admin/project.git



Explanation: git clone is the best option if its a new project. git pull would work best if it was an ongoing project that had multiple team members that had pushed their updates to the main repository

Using AD Query, the security gateway connections to the Active Directory Domain
Controllers using what protocol?


A.

Windows Management Instrumentation (WMI)


B.

Hypertext Transfer Protocol Secure (HTTPS)


C.

Lightweight Directory Access Protocol (LDAP)


D.

Remote Desktop Protocol (RDP)





A.
  

Windows Management Instrumentation (WMI)




Page 13 out of 31 Pages
Previous