XK0-004 Exam Questions
501 real XK0-004 exam questions with expert-verified answers and explanations. Page 5 of 11.
- Question #217System Management
An administrator needs a bootable USB for installing a new Linux machine. The administrator downloaded the image file and named it as Linux_OS.iso in the /tmp directory. Which of t...
ddbootable USBISO imagedisk imaging - Question #218Scripting, Containers and Automation
A junior Linux administrator needs to create 16 empty files quickly that will contain sales information for each quarter for the past four years. Which of the following commands wi...
brace expansiontouch commandshell scriptingfile creation - Question #219Server Side & Network Concepts
An administrator needs to change the DNS domain search order of a single Linux host to localize it better. Which of the following files should the administrator edit?
/etc/nsswitch.confname resolution orderDNS search ordername service switch - Question #220Scripting, Containers and Automation
A user issues the following command: ls -l /var/log | egrep -e '^d[rwx]{3}.*[rw-]{3}.*' The list of files in the system is shown below: Which of the following results matches the c...
egrepregular expressionsls output parsingfile permission patterns - Question #221Scripting, Containers and Automation
Which of the following BEST describes build automation?
build automationCI/CDsoftware buildDevOps concepts - Question #222Security
A Linux administrator needs to configure a new firewall without an existing ACL to allow incoming web traffic. The firewall must log the allowed network traffic. Which of the follo...
iptablesfirewall rulespacket loggingACL - Question #223Server Side & Network Concepts
An organization wants to consolidate its entire user information in centralized storage using an X.500- based protocol. Which of the following protocols should be used for this imp...
LDAPX.500directory servicescentralized authentication - Question #226Server Side & Network Concepts
Which of the following boot methods can a Linux administrator use to boot a Linux server remotely via a network interface card instead of a local disk?
PXE bootnetwork bootNICremote boot - Question #227System Management
A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver support. The administrator tested the device installation and access,...
usermoddialout groupserial portuser permissions - Question #228Troubleshooting and Diagnostics
A system ran out of storage space on a particular mount and will not allow anything to be written to disk. The df command shows there are 6GB free on the mount, and there is no ino...
lsofdisk spacelog truncationfile handles - Question #229Security
A Linux administrator suspects unauthorized users are attempting to log in to the Linux server remotely. Which of the following should the administrator check FIRST?
/var/log/secureauthentication logsSSHunauthorized access - Question #230Troubleshooting and Diagnostics
A junior systems administrator is diagnosing an issue with latency. The administrator issues the Given this scenario and the output, which of the following should be reported to th...
ICMP filteringpacket losstraceroutenetwork latency - Question #231Security
A user receives an access_denied error when trying to modify a file, even though the file permissions are set to 777. Which of the following commands should be used to view additio...
SELinuxextended permissionsfile access controlls -z - Question #232System Management
A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 f...
mdadmRAID 1disk failurearray degradation - Question #233Server Side & Network Concepts
A systems administrator needs to connect to a remote Linux machine to run system updates from within a graphical interface. Which of the following should the administrator use?
VNCremote desktopgraphical accessremote administration - Question #234Security
When requesting SSH access to a remote system, a user accidentally emailed the id_rsa key to the administrator. Which of the following should the user do NEXT?
SSH keysprivate key exposuressh-keygenkey management - Question #235Troubleshooting and Diagnostics
An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition i...
df commanddisk usagepartition spacestorage - Question #236Scripting, Containers and Automation
A Linux team is using Git to version a set of custom scripts. A team member has made an update to a script and published the changes to the repository. Which of the following is th...
git pullversion controlrepository syncGit - Question #237Troubleshooting and Diagnostics
A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap. Which of the following commands would allow...
tcpdumppacket captureHTTP trafficpcap - Question #238Scripting, Containers and Automation
A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local .tmp files that are occasionally created by the scripts. Which of the...
.gitignoreGitfile exclusionversion control - Question #239Troubleshooting and Diagnostics
A systems administrator is receiving errors while trying to install a popular virtualization software. The software specifications state the processor needs to support virtualizati...
CPU flagshyperthreadingvirtualization extensions/proc/cpuinfo - Question #240System Management
A systems administrator needs to conduct maintenance on a server. Which of the following commands will place the administrator in the appropriate runlevel?
runleveltelinitsingle-user modesystem maintenance - Question #241Server Side & Network Concepts
Which of the following are classified as Linux GUI servers? (Choose two.)
display serverX11WaylandGUI architecture - Question #242Troubleshooting and Diagnostics
A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and ve...
lsofdeleted filesdisk spacefilesystem diagnostics - Question #243Scripting, Containers and Automation
A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login. Which of the following is the BEST act...
aliasbash profileshell configurationlogin scripts - Question #244System Management
A systems administrator needs to run the yum update command two hours after employees log off and leave for the day on Friday. Which of the following is the BEST command to complet...
at commandjob schedulingone-time tasksyum - Question #245System Management
The Apache web server was recently installed on a Debian/Ubuntu server. The web server fails and a review of log messages on another partition reveals the installation was not comp...
apt-getpackage managementreinstallDebian - Question #246Troubleshooting and Diagnostics
Given the output below: [root@appserver ~]# rm config.txt rm: remove regular file 'config.txt'? yes rm: cannot remove 'config.txt': Operation not permitted Which of the following m...
file attributesimmutablechattroperation not permitted - Question #247Security
Users in the sales department are unable to create new files in the shared directory /Sales. A junior Linux administrator determines the permissions on the /Sales directory are set...
chmodgroup permissionsdirectory accessfile permissions - Question #248Troubleshooting and Diagnostics
A user is reporting unusual slowness when trying to transfer a large file to an NFS server from a workstation. The administrator runs tracepath and gets the following output: Which...
MTUtracepathNFS performancepath MTU discovery - Question #249System Management
A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator copied the files last week but must ensure any files created or modi...
rsyncincremental backupremote transferscp - Question #250Scripting, Containers and Automation
A systems administrator documents the instructions on the internal wiki regarding how to turn the company's code into Debian packages. The instructions include the commands used to...
proceduresdocumentationinfrastructure as codepackage building - Question #251System Management
Which of the following is used in unattended server installation via PXE?
PXEKickstartunattended installationnetwork boot - Question #252System Management
A new video card was added to a customer workstation. To get the new video card to work correctly, a systems administrator needs to remove support for the nouveau video driver on t...
kernel modulesrmmodmodprobedriver management - Question #253Troubleshooting and Diagnostics
A technician suspects a company's border firewall is down, thus blocking Internet access. The technician executes the following commands: #ping -c 1 firewall.company.com 64 bytes f...
traceroutenetwork diagnosticsfirewallping - Question #254Server Side & Network Concepts
A Linux user needs to connect to a remote email server named mail.foo.com through the SMTP port. Which of the following commands will accomplish this task?
netcatSMTPport 25network connectivity - Question #255System Management
A company requires all servers to be configured with the BIOS on Coordinated Universal Time and the OS on Central Standard Time. Which of the following can be used to change the ti...
hwclockdate commandtimezonesystem time - Question #256Scripting, Containers and Automation
A Linux administrator recently changed the IP addresses of all the web servers from 10.10.50.x to 10.10.100.x. The administrator needs to update the serverlist.txt file to reflect...
sedin-place editingtext processingregex substitution - Question #257Security
Which of the following servers provides encrypted tunnel SOCKS services?
SSHSOCKS proxytunnelingencryption - Question #258Troubleshooting and Diagnostics
The following represents a partial listing of a user's .bashrc file: HISTSIZE=800 HISTFILESIZE=1000 umask 2002 HISTCONTROL=ignoreboth When the user opens a terminal, an error messa...
umaskoctal permissionsbashrcshell configuration - Question #259Server Side & Network Concepts
Which of the following can be used to check the status of wireless devices that are connected to the system?
iwconfigwireless interfacesWiFinetwork tools - Question #260Scripting, Containers and Automation
Joe, a user, creates a short shell script, shortscript.sh, and saves it in his home directory with default permissions and paths. He then attempts to run the script by typing ./sho...
chmodexecute permissionsshell scriptsfile permissions - Question #261System Management
A Linux user needs to create a file named newfile in the home directory that mirrors the contents of the /etc/resolv.conf file. Which of the following commands would accomplish thi...
catshell redirectionfile operationsresolv.conf - Question #262Troubleshooting and Diagnostics
An administrator notices a website hosted on an httpd web server is not loading. Upon further inspection, the administrator learns there are no httpd processes running. When starti...
OOM killermemory managementhttpdprocess termination - Question #263Server Side & Network Concepts
Which of the following Linux server roles should be installed to monitor and log local web traffic?
proxy serverweb traffic monitoringserver rolestraffic logging - Question #264Troubleshooting and Diagnostics
An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk usage check shows / has plenty of space. Which of the followin...
/boot filesystemkernel installationdisk spacefilesystem hierarchy - Question #265System Management
A Linux administrator needs to disable the Sendmail service on a Linux server and prevent it from being started manually and during boot. Which of the following is the BEST command...
systemctl maskservice managementboot preventionSendmail - Question #266Server Side & Network Concepts
A user creates and installs a Linux VM on a local workstation. The VM can only connect to the local workstation. Which of the following BEST represents the default virtual network...
virtual networkinghost-onlyVM network modesnetwork isolation - Question #267System Management
A systems administrator is using a Linux laptop to troubleshoot network devices. The administrator runs the following command: # screen /dev/USB0 Which of the following does this c...
screen commandcharacter devicesserial consoleUSB devices - Question #268System Management
A new IO card has been added to the security server to log the opening and closing of the main entrance. A switch is attached, so the interface card returns a 1 when the door is op...
/dev/portI/O portsdevice fileshardware interfaces