XK0-005 Exam Questions
961 real XK0-005 exam questions with expert-verified answers and explanations. Page 12 of 20.
- Question #680Troubleshooting
A user (userA) has reported issues while logging in to the system. The following output has been provided: Which of the following describes the issue userA is having?
User managementFile permissionsLogin issuesTroubleshooting - Question #681System Management
Which of the following commands is used to tune kernel parameters?
Kernel parameterssysctl commandSystem tuningLinux administration - Question #682Security
A security team discovers that a web server has been running with elevated privileges and identifies it as a security violation. Which of the following items needs to be added to t...
systemdsecurity hardeningleast privilegeservice configuration - Question #683System Management
Which of the following paths stores the configuration files in a Linux filesystem?
Linux filesystemFile Hierarchy Standardconfiguration filessystem directories - Question #685System Management
A systems administrator is tasked with configuring a repository on an RPM-based Linux system. Which of the following need to be reviewed and modified? (Choose two.)
Package ManagementYumRepository ConfigurationLinux Configuration Files - Question #686Troubleshooting
A systems administrator receives the following errors via email from the system log: XFS (lcop0): Metadata CRC error detected at xfs_agi_read_verify+0xcb/Oxfe XFS (loop0): First 12...
Filesystem errorsWeb server troubleshootingService managementSystem diagnostics - Question #687System Management
A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Whi...
SSHLinux administrationKey managementSecurity - Question #688System Management
A systems administrator wants to list all local account names and their respective UIDs. Which of the following commands will provide output containing this information?
Linux commandsFile manipulation/etc/passwdUser management - Question #689System Management
A Linux systems administrator is trying to execute a particular shell script on a server. The administrator reviews the following outputs: Which of the following commands should th...
Linux File Permissionschmod CommandShell Script Execution - Question #691Scripting, Containers, and Automation
A Linux administrator is implementing a CI/CD process for the company's internal accounting web application. Which of the following best defines the purpose of this process?
CI/CDAutomationSoftware Deployment - Question #693System Management
An administrator accidentally installed the httpd RPM package along with several dependencies. Which of the following options is the best way for the administrator to revert the pa...
Package ManagementYUM HistorySystem AdministrationReverting Changes - Question #694Troubleshooting
A Linux administrator is configuring a log collector agent to monitor logs in /var/log/collector. The agent is reporting that it cannot write in the directory. The agent runs as th...
Linux PermissionsAccess Control Lists (ACLs)TroubleshootingFile System Management - Question #695Troubleshooting
An administrator is running a web server in a container named WEB, but none of the error output is showing. Which of the following should the administrator use to generate the erro...
DockerContainer LoggingTroubleshootingCLI - Question #696Scripting, Containers, and Automation
A Linux systems administrator is working to obtain the installed kernel version of several hundred systems. Which of the following utilities should the administrator use for this t...
AutomationConfiguration ManagementAnsibleLinux Administration - Question #698Security
A Linux administrator needs to check extended permissions applied to the directory test. Which of the following commands should the administrator use to help with this task?
Linux permissionsACLsgetfacl commandSystem administration - Question #699Scripting, Containers, and Automation
A DevOps engineer is working on a local copy of a Git repository. The engineer would like to switch from the main branch to the staging branch but notices the staging branch does n...
GitBranchingVersion ControlCLI Commands - Question #700Scripting, Containers, and Automation
An operations engineer is planning to start a container running a PostgreSQL database. The engineer wants the container to start automatically at system startup, mount the /home/db...
Docker commandsContainer managementVolume mountsPort mapping - Question #703System Management
A hardened physical Linux system allows regular, unprivileged users to remotely connect to the server using SSH only. No sudo tool has been installed. Which of the following should...
Privilege escalationsu commandRoot accessPhysical console - Question #704Scripting, Containers, and Automation
A Linux systems administrator needs to add additional code to code that resides within a repository without changing the original code. Once completed, the additional code will be...
GitVersion ControlBranching and MergingCode Management - Question #705Scripting, Containers, and Automation
Which of the following options describes the purpose of YAML?
YAMLConfiguration filesData serializationInfrastructure as Code (IaC) - Question #706Troubleshooting
Users are reporting that a production application has slow performance. A systems administrator logs in to the server and performs some basic checks. Given the following: Which of...
Server performanceMemory managementSwappingPerformance troubleshooting - Question #707Troubleshooting
The development team created a new branch with code changes that a Linux administrator needs to pull from the remote repository. When the administrator looks for the branch in Git,...
GitVersion ControlRemote RepositoriesBranch Management - Question #708Troubleshooting
An administrator is investigating why a Linux workstation is not resolving a website. The output of dig and nslookup shows that IPv4 resolution is working, but IPv6 resolution fail...
Linux NetworkingName ResolutionIPv6Troubleshooting - Question #711System Management
An administrator added a new disk to expand the current storage. Which of the following commands should the administrator run first to add the new disk to the LVM?
LVMDisk ManagementStorage ExpansionLinux Commands - Question #714Troubleshooting
A systems administrator needs to know the mail exchange (MX) record for the foo.com domain. Which of the following commands will accomplish this task?
DNS lookupMX recorddig commandNetwork utilities - Question #715System Management
A Linux administrator needs to forward port 8000 on a remote server remote to port 8000 on a local server. Which of the following commands should the administrator run on the local...
SSHPort ForwardingRemote AccessNetworking - Question #716System Management
A systems administrator created a user cron to run a scheduled database backup cronjob on the server at 1 a.m. everyday. The following is the cronjob syntax: 01 * * * /bin/sh backu...
CronPermissionsAccess Control - Question #717System Management
A Linux administrator needs to run a web application on a server that requires the use of a desktop web browser to enter the final configuration information. The administrator dete...
systemdsystemctlsystem targetsgraphical environment - Question #718Scripting, Containers, and Automation
A security analyst is monitoring the network to identify latency or slowdowns during a vulnerability scan. Which of the following functions will best achieve this? bash function x(...
Bash ScriptingNetwork MonitoringPing UtilityAwk Utility - Question #719System Management
Joe, a user, is unable to log in to the system. The Linux administrator checks the /etc/passwd file and reviews the following output: Joe:x:1002:1002::/home/Joe:/sbin/nologin Which...
User management/etc/passwdLogin shellTroubleshooting - Question #721System Management
A server administrator has scheduled a cron job to run YUM updates on all servers without manual intervention, but kernel packages must be excluded from the updates at all times. W...
YUM package managerPackage exclusionSystem configurationKernel updates - Question #722System Management
A Linux administrator wants a permission bit on a shared folder that allows only the owner of the file within that directory or the root user to delete or rename the file. Which of...
Linux PermissionsSticky BitchmodDirectory Permissions - Question #723Security
Which of the following is a benefit of a service mesh?
Service MeshKubernetesmTLSCommunication Security - Question #724Troubleshooting
While troubleshooting server issues, a Linux systems administrator obtains the following output: Which of the following best describes the state of the system?
Linux memorySwap spaceSystem resourcesTroubleshooting - Question #725System Management
An administrator made a change to a system's network configuration. Which of the following best represents what the administrator should do to have the new configuration take effec...
systemctlservice managementnetwork configurationLinux administration - Question #726System Management
An administrator thinks that a package was installed using a snap. Which of the following commands can the administrator use to verify this information?
snap package managerpackage managementCLI commands - Question #727System Management
A Linux administrator is creating a directory called CompTIA_doc and needs to switch to another location to perform some system-related tasks. Which of the following commands shoul...
Linux commandsFile system managementCommand chainingShell operators - Question #728Scripting, Containers, and Automation
A Linux administrator needs to expose port 9000 for a container to listen during runtime. The Linux administrator creates a Dockerfile with the following entries. # Test-Container...
DockerContainerizationDockerfilePort Mapping - Question #732System Management
Which of the following directories contains binaries that only a root user should run?
Linux filesystemFHSSystem administrationRoot binaries - Question #733Troubleshooting
Linux system users report that over the past few months a server has stopped responding at least two times each day. Every time this happens, the users have to restart the server t...
Memory managementServer stabilityResource utilizationSystem diagnostics - Question #734System Management
A Linux administrator is configuring network traffic forwarding. Despite having proper iptables rules, the traffic forwarding is not working. Which of the following commands will a...
Network ConfigurationIP ForwardingKernel Parameterssysctl - Question #735Security
A systems administrator created a new directory with specific permissions. Given the following output: # file: comptia # owner: root * group: root user::rwx group::r-x other::--- d...
ACLsFile PermissionsDirectory PermissionsDefault ACLs - Question #737System Management
A Linux administrator updated the configuration file for the httpd web service. The administrator needs to apply the updated changes to the service without interrupting any running...
systemdservice managementconfiguration reloadhttpd - Question #741System Management
A Linux engineer wants to give read-write-execute permissions for the cloud_users directory to user Oliver. Which of the following commands should the engineer use?
Linux PermissionsAccess Control Lists (ACLs)setfacl commandFile System Management - Question #742Troubleshooting
An administrator is troubleshooting a database service outage that was reported by a monitoring system. Given the following output: Which of the following is the reason for the out...
Memory ManagementSystem ResourcesService OutageDatabase Troubleshooting - Question #743Troubleshooting
A Linux administrator is creating a user that can run the FTP service but cannot log in to the system. The administrator sets /bin/false as a login shell for the user. When the use...
User managementLogin shellsFTP/etc/shells - Question #744System Management
A Linux administrator needs to harden a system and guarantee that the Postfix service will not run, even after a restart or system upgrade. Which of the following commands allows t...
systemctlservice managementservice maskingLinux hardening - Question #745Scripting, Containers, and Automation
A DevOps engineer pushed the updated configuration to an existing branch of a remote Git repository. Which of the following commands should the Linux administrator use to obtain th...
GitVersion ControlRemote RepositoryDevOps - Question #746Troubleshooting
The MySQL database process that was running on a Linux server suddenly stopped, and the process was killed. Which of the following commands can help identify whether this issue was...
OOM killerLinux logsSystem troubleshootinggrep command - Question #747Troubleshooting
After trying to install an RPM package unsuccessfully, a systems administrator verifies the integrity of the package's database. The administrator discovers that the database is co...
RPMPackage ManagementDatabase RepairLinux Administration