XK0-004 Exam Questions
501 real XK0-004 exam questions with expert-verified answers and explanations. Page 9 of 11.
- Question #430Scripting, Containers and Automation
A Linux administrator needs to schedule a backup job to run every Friday at 2:15 a.m. Which of the following lines should the administrator add to the crontab file?
crontabcron syntaxjob schedulingtask automation - Question #431System Management
A server technician deployed ten ctoned Linux devices in an organization. When testing network functionality of the devices, the technician notices the cloned devices have identica...
hostname configurationcloned systemsnetwork identitysystem configuration - Question #432Scripting, Containers and Automation
A new web server was recenly installed and configured according to vendor.......... management via SSH has shown slow screen responses. The systems administrator.. An administrator...
crontabcron syntaxscheduled tasksdaily jobs - Question #433Troubleshooting and Diagnostics
Which of the following will MOST likely fix the issue?
web server performanceantivirus exclusionslow responseperformance troubleshooting - Question #434Scripting, Containers and Automation
An administrator is writing a Bash script that contains a loop that increments the value of the variable count with each loop iteration by 1. Which of the following should the admi...
bash scriptingvariable incrementarithmetic operatorsloop counters - Question #435System Management
A Linux administrator is creating a new local Linux user account for a web application. The account has the following requirements: - Use/var/www as the home directory - Have the s...
useradduser account creationgroup assignmentaccount expiry - Question #436Scripting, Containers and Automation
The ability to add web servers dynamically during peak user activity and remove them when user activity decreases is an example of:
infrastructure automationauto-scalingelasticitydynamic provisioning - Question #437Troubleshooting and Diagnostics
An administrator is troubleshooting an issue where end users are waiting a very long time for processes to respond. The top command reveals that multiple processes seem to be in a...
zombie processesprocess cleanupkillallprocess management - Question #438Troubleshooting and Diagnostics
A Linux administrator updated the graphics drivers using a package manager but now the server does not boot. Which of the following is the BEST way to get the server back into an o...
kernel boot recoverydriver failuresystem recoverypackage management - Question #439System Management
The grub2-mXconfig command is used to generate a new GRUB2 configuration after:
GRUB2grub2-mkconfigbootloader configurationgrub.cfg - Question #440Security
An administrator is reviewing web application logs and discovers several external addresses are trying to perform port scans, SQL injections, or URL oVectory traversal attacks. The...
firewall-cmdipsetIP blockingintrusion prevention - Question #441System Management
A Linux administrator is tasked with implementing a solution that will centralize information and allow it to be searchable and available for reporting purposes. Which of the follo...
centralized logginglog aggregationserver roleslog reporting - Question #442System Management
A Linux administrator needs to configure a user account to notify the user ten days before the password will expire. Which of the following commands would BEST accomplish this task...
password agingchageuser accountspassword expiry - Question #443Troubleshooting and Diagnostics
A systems administrator needs to see if a mail server is listening on port 25. Which of the following is the BEST command for the administrator to run on the mail server to see if...
netstatport monitoringnetwork diagnosticsSMTP - Question #444Server Side & Network Concepts
An administrator is conftgunng two Linux VMs on one physical server. The VMs must be able to obtain a unique IP address from the host's subnet. Which of the following represents ho...
network bridgingVM networkingIP addressingvirtual adapters - Question #445System Management
A Linux administrator executed 1vextend to expand disk space to a partition from 8GB to 40GB. However, the filesystem is not showing the additional space. The administrator runs se...
LVMfilesystem resizexfs_growfsdisk expansion - Question #446System Management
A user does not want Bluetooth to start up event time the system starts. Which of the following commands should the user execute to accomplish this task?
systemctlservice managementboot servicessystemd - Question #447Scripting, Containers and Automation
Some Bash scripts arc being versioned and stored in a Git repository. Which of the following commands should the Linux administrator use to exclude tmp Wes from being added to the...
.gitignoreGitversion controlfile exclusion - Question #448Scripting, Containers and Automation
Whenever an administrator merges the feature branch into master, a binary is created and saved in the artifact repository. Which of the following does this desenbe?
build automationCI/CDGit branchingartifact repository - Question #449System Management
A virtual machine logs al limes using UTC The systems administrator would like to have one script that outputs times that are in the Amenca/Chicago time zone. Which of the followin...
timezoneTZ variabledate commandtimedatectl - Question #450Troubleshooting and Diagnostics
An administrator schedules downtime on a system to find out why it takes so long to boot. Which of the following commands will help the administrator determine the issue with this...
systemd-analyzeboot performanceservice analysissystemd - Question #452System Management
A systems administrator is attempting to connect a printer to the network. After installing the printer, the systems admnstrator wants to provide a pnnting interface for network us...
CUPSnetwork printingprinter servicedynamic discovery - Question #453System Management
A Linux administrator mounts a directory to a Linux workstation by executing the command mount -t ext4 /dev/sdb /mnt /leg. After rebooting the workstation the mounted device is mis...
fstabpersistent mountfilesystem configurationext4 - Question #454Security
A systems administrator needs to prevent the root account from being used to log in to a Linux server via SSH. Which of the following configuration ies does the systems administrat...
SSH hardeningroot loginsshd_configaccess control - Question #455Troubleshooting and Diagnostics
A user cannot access the application server from a laptop. The user does not know the name of the application's process but does know the port number. Which of the following comman...
netstatport investigationnetwork troubleshootingprocess ports - Question #456Troubleshooting and Diagnostics
An administrator is investigating issues with an unresponsive website hosted on an internal web server named websrv. After gathering diagnostics data the administrator performs the...
iptablesfirewall rulesweb server troubleshootingHTTP access - Question #457Security
An administrator needs to allow additional specific users and groups to have access to a foWer without removing the original owner or group. Which of the following commands should...
ACLsetfaclfile permissionsaccess control - Question #458Security
An end user is trying to execute a file within a different directory The end user executes the following command: Which of the following commands should the Linux administrator use...
chmodexecute permissionsfile permissionsshell scripts - Question #459System Management
Which of the following is an M.2 drive device name?
device namingNVMeM.2storage devices - Question #460Security
After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrat...
Telnetport 23security hardeningservice removal - Question #461System Management
Which of the following commands will verify the size of a swap partition? (Seled TWO).
swap partition/proc/meminfolsblkmemory management - Question #463Scripting, Containers and Automation
A Linux administrator wants to verify the default email address for all Git commits. Which of the following commands is the BEST to use to retneve the email address setting?
git configgit user settingsversion control - Question #464System Management
A Linux administrator needs to archive all the *.log files in the /var/log directory. The directory has several symbolic link files that need to be included in the car file. Which...
tarsymbolic linksarchivingfile compression - Question #465System Management
A technician needs to install the package, tar,gz, which contains the source code of custom software. The technician downloaded the file in /crap. Which of the following commands s...
source compilationmakeconfigurepackage installation - Question #466Scripting, Containers and Automation
A systems administrator would like to back up all of the'. conf' files on a server The administrator runs the command: Find / --name `'*conf'' > backup,tar After investigating the...
find commandcpiobackupfile archiving - Question #467Troubleshooting and Diagnostics
When performing a routine server process inspection the systems administrator notices that about 300 processes similar to the following are running: Root 7858 0 21:39 pts/0 00:00:0...
zombie processesdefunct processesprocess managementserver reboot - Question #468Security
A user is unable to execute the command sudo su -on a newly provisioned system. Which of the following should the Linux administrator do to allow the user to execute that command?
sudowheel groupprivilege escalationuser permissions - Question #469Troubleshooting and Diagnostics
A developer reports a web sever is unable to connect to the database server. The developer reviews the following output from each server: Web server output: Database server output:...
network routingstatic routesdatabase connectivityfirewall rules - Question #470Security
A security audit concludes that an organization's database servers need to be hardened. As a result, an administrator obtans tie fofcjwwng partial Nmap output from a database serve...
Nmapserver hardeningopen portssecurity audit - Question #471System Management
A Linux administrator wants to load the KVM module into the kernel. Which of the following commands should the administrator use?
modprobekernel modulesKVMmodule loading - Question #473Scripting, Containers and Automation
Which of the following techniques would BEST ensure the setup and desired state of a server are consistently maintained?
configuration managementdesired stateinfrastructure automation - Question #474System Management
A Linux administrator needs to ensure a service no longer starts when a system running SysVinit is booted. Which of the following commands should the administrator use?
SysVinitchkconfigservice managementrunlevels - Question #475System Management
A security tool relies on a specific version of libssl. Which of the following would an administrator implement to prevent libssM 0 0 from being upgraded?
apt-mark holdpackage pinningdependency managementpackage manager - Question #476Server Side & Network Concepts
A systems administrator is reviewing the following partial output: Which of the following should the administrator use to find contact information for the connections?
whoisdigreverse DNSnetwork connections - Question #478Security
An administrator is writing a Bash script to audit SSH logins. Which of the following logs would the administrator parse to find the needed information?
SSH logssecure logaudit logging/var/log/secure - Question #479Security
A Linux administrator needs to implement a secunty policy that prevents all connections from the marketing department that has the IP subnet 10.10.10.0/24 from reaching the current...
iptablesINPUT chainpacket filteringfirewall rules - Question #480Scripting, Containers and Automation
A Bash script is saving the following list of users from the home directory to a variable: User=''home/matt home/tom home/john home/mike''. Which of the following commands creates...
sedbash scriptingstring manipulationregex - Question #481Troubleshooting and Diagnostics
A Systems administrator needs to examine the output of all kernel-related events since the system was booted. Which of the following would BEST display this information?
dmesgkernel eventsboot messagessystem logs - Question #482Server Side & Network Concepts
Which of the following BEST describes the function of a DHCP server?
DHCPIP addressingnetwork servicesprotocol - Question #483System Management
Which of the following should the systems administrator use to ensure the test account is disabled after 24 hours if the account's password has expired?
passwd commandaccount expirationuser managementpassword policy