XK0-004 Exam Questions
501 real XK0-004 exam questions with expert-verified answers and explanations. Page 1 of 11.
- Question #1System Management
A Linux administrator must identify a user with high disk usage. The administrator runs the # du - s /home/* command and gets the following output: Based on the output, User3 has t...
du commanddisk usagefile managementhome directory - Question #2Troubleshooting and Diagnostics
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP. Which of the following commands would BEST accomplish thi...
netstatport bindingnetwork socketsHTTP - Question #3Scripting, Containers and Automation
A systems administrator needs to append output of command to the contents of ls -lha /opt a test.txt file. Which of the following commands will accomplish this?
output redirectionappend operatorstdoutshell syntax - Question #4Scripting, Containers and Automation
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the serve...
infrastructure as codeserver provisioningautomationconfiguration management - Question #5Security
A Linux systems administrator needs to set permissions on an application with the following parameters: - The owner of the application should be able to read, write, and execute th...
chmodoctal permissionsuser group otherfile permissions - Question #6Troubleshooting and Diagnostics
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP. Which of the following commands should the ad...
pingICMPnetwork connectivityround-trip time - Question #7Server Side & Network Concepts
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hosts and receives the following output: 127.0.0.1 loc...
IPv6/etc/hostslocal name resolutionlocalhost - Question #8System Management
A Linux systems administrator needs to copy the contents of a directory named "working" on the local working system to a folder /var/www/html on a server named "corporate-web". Whi...
scpremote file copySSHfile transfer - Question #10Server Side & Network Concepts
A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. I...
IP forwardingroutingkernel parametersproc filesystem - Question #11Scripting, Containers and Automation
A systems administration team has decided to their systems as immutable instances. They keep the desired state of each of their systems in version control and apply automation when...
infrastructure as codeimmutable infrastructureautomationversion control - Question #12Scripting, Containers and Automation
A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries...
containersapplication isolationdependenciesminimal footprint - Question #13Security
An operator finds a user is having issues with opening certain files. Which of the following commands would allow the security administrator to list and check the SELinux context?
SELinuxsecurity contextls -Zmandatory access control - Question #14Security
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?
kernel modulesblacklistmodprobehardware disable - Question #15Troubleshooting and Diagnostics
A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications: - x64 bit - 3.0GHz speed - Minimum quad core...
/proc/cpuinfohardware requirementsCPU architecturex64 - Question #16Security
A Linux systems administrator wants the ability to access systems remotely over SSH using RSA authentication. to which of the following files should the RSA token be added to allow...
SSHRSA authenticationauthorized_keyspublic key authentication - Question #17Troubleshooting and Diagnostics
A Linux server needs to be accessed, but the root password is not available. Which of the following would BEST allow an administrator to regain access and set a new known password...
single-user moderoot password resetpasswd commandsystem recovery - Question #18Scripting, Containers and Automation
A Linux administrator wants to fetch a Git repository from a remote Git server. Which of the following is the BEST command to perform this task?
git cloneremote repositoryversion controlgit - Question #19Security
An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content. Which...
sticky bitshared directoryspecial permissionsfile permissions - Question #20Scripting, Containers and Automation
A systems administrator has finished building a new feature for the monitoring software in a separate Git branch. Which of the following is the BEST method for adding the new featu...
git mergebranchingfeature branchversion control - Question #21System Management
Which of the following will provide a list of all flash, external, internal, and SSD drives?
lsblkblock devicesstorage deviceshardware listing - Question #22Scripting, Containers and Automation
Which of the following configuration management tools is considered agentless?
Ansibleagentlessconfiguration managementDevOps tools - Question #23Scripting, Containers and Automation
An administrator reviews the following configuration file provided by a DevOps engineer: Which of the following would the application parsing this file MOST likely have to support?
YAMLconfiguration file formatsdata serializationDevOps - Question #24Scripting, Containers and Automation
Which of the following is a difference between YAML and JSON?
YAMLJSONdata formatsconfiguration - Question #25System Management
A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additiona...
swap spacemkswapswaponmemory management - Question #26System Management
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives th...
reniceprocess prioritynice valuesprocess management - Question #28System Management
A system administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role. Which of the fol...
KickstartAnacondaautomated installationanaconda-ks.cfg - Question #29Server Side & Network Concepts
A Linux administration is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces. Whic...
IP forwardingIPv4 routingip_forwardkernel parameters - Question #30System Management
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago. Which of the following commands will achieve th...
kill signalsUSR1dd commandbackground jobs - Question #32System Management
Which of the following is the purpose of the vmlinux file on a Linux system?
vmlinuxkernelLinux bootkernel image - Question #33Security
Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line: Ann perf...
chattrfile attributesimmutable flagfile permissions - Question #34System Management
A Linux administrator needs to take stock of USB devices attached to the system. Which of the following commands would be BEST to complete this task?
lsusbUSB deviceshardware listingdevice management - Question #35System Management
Given the output below: Which of the following commands can be used to remove MyPhoto.jpg from the current directory?
unlinkrmhard linksfile removal - Question #36Server Side & Network Concepts
Which of the following server roles would assign a host IP address?
DHCPIP addressingnetwork servicesserver roles - Question #37System Management
Which of the following commands would show the default printer on a Linux system?
lpstatprintinglpqprint queue - Question #38Security
A system administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts an...
SSH logsaudit.loglog aggregationfailed authentication - Question #39System Management
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server...
tarbzip2compressionarchiving - Question #40Security
In order to comply with new security policies, an administrator needs to prevent the SSH server from using insecure algorithms. Which of the following files should be edited to acc...
sshd_configSSH hardeningcipher algorithmsSSH server - Question #41System Management
Which of the following are init systems used within Linux systems? (Choose THREE correct answers.)
init systemssystemdSysV initUpstart - Question #42Troubleshooting and Diagnostics
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
lspciPCI deviceshardware inventorydevice identification - Question #43Security
Which of the following settings for umask ensures that new files have the default permissions -rw- r----- ?
umaskfile permissionspermission calculationLinux security - Question #44System Management
Which of the following is the device file name for the second partition on the only SCSI drive?
device filesSCSI disksdisk partitions/dev naming - Question #45Server Side & Network Concepts
Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely?
VNCremote GUI accessremote desktopX11 forwarding - Question #46Troubleshooting and Diagnostics
A technical support engineer receives a ticket from a user who is trying to create a 1KB file in the /tmp directory and is getting the following error No space left on device. The...
inodesfilesystem exhaustion/tmpdisk space troubleshooting - Question #47System Management
Which of the following is the BEST reason for not storing database files in the /var directory?
filesystem layout/var directoryFHSlog file management - Question #50Troubleshooting and Diagnostics
An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space...
lsofopen file handlesdeleted filesdisk space recovery - Question #51Server Side & Network Concepts
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
PXE bootnetwork bootbare metal provisioningremote installation - Question #52Scripting, Containers and Automation
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much sp...
job controlCTRL-Zbackground processesprocess suspension - Question #53System Management
Which of the following commands brings a system running SysV init into a state in which it is safe to perform maintenance tasks? (Choose TWO correct answers.)
SysV initrunlevelssingle-user modemaintenance mode - Question #54System Management
What is the first program that is usually started, at boot time, by the Linux kernel when using SysV init?
SysV initboot process/sbin/initkernel initialization - Question #55System Management
What does the command mount -a do?
mount command/etc/fstabauto mountfilesystem mounting