XK0-006 Exam Questions
156 real XK0-006 exam questions with expert-verified answers and explanations. Page 1 of 4.
- Question #1System Configuration and Management
A systems administrator is preparing a Linux system for application setup. The administrator needs to create an environment variable with a persistent value in one of the user acco...
environment variablesbashrcshell configurationpersistence - Question #2Automation and Scripting
Which of the following describes PEP 8?
PEP 8Python style guidecoding standards - Question #3Security Best Practices
While hardening a system, an administrator runs a port scan with Nmap, which returned the following output: Which of the following is the best way to address this security issue?
Telnetport scanningservice hardeningNmap - Question #4Automation and Scripting
A DevOps engineer needs to create a local Git repository. Which of the following commands should the engineer use?
Gitrepository initializationversion control - Question #5Networking and Cloud Concepts
A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?
IP forwardingkernel parameterssysctlrouting - Question #6System Configuration and Management
A Linux user frequently tests shell scripts located in the /home/user/scripts directory. Which of the following commands allows the user to run the program by invoking only the scr...
PATH variableshell environmentscript executionexport - Question #7System Management
A systems administrator needs to check the statuses of all the services on a Linux server. Which of the following commands accomplishes this task?
systemctlsystemdservice managementlist-units - Question #8Security
Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?
LUKSdisk encryptionencryption at restfull disk encryption - Question #9Automation, Orchestration, and Scripting
Which of the following most accurately describes a webhook?
webhookHTTP callbackAPI integrationevent-driven - Question #10System Management
An administrator attempts to install updates on a Linux system but receives error messages regarding a specific repository. Which of the following commands should the administrator...
yumrepository managementrepolistpackage manager - Question #11Security Best Practices
Which of the following is the main reason for setting up password expiry policies?
password policypassword expirycredential managementaccount security - Question #12Automation and Scripting
A Linux administrator is making changes to local files that are part of a Git repository. The administrator needs to retrieve changes from the remote Git repository. Which of the f...
git stashGitlocal modificationsversion control - Question #13System Management
A systems administrator is creating a backup copy of the /home/ directory. Which of the following commands allows the administrator to archive and compress the directory at the sam...
tarcompressionbackuparchiving - Question #14Troubleshooting and Diagnostics
An administrator receives reports that a web service is not responding. The administrator reviews the following outputs: Which of the following is the reason the web service is not...
SSL/TLSprivate keycertificateweb service configuration - Question #15Automation, Orchestration, and Scripting
Which of the following best describes a use case for playbooks in a Linux system?
Ansible playbooksconfiguration managementautomationdeployment - Question #16Services and User Management
An administrator must secure an account for a user who is going on extended leave. Which of the following steps should the administrator take? (Choose two).
user account lockingpasswdnologinaccount management - Question #17Security
A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?
shredsecure erasedata sanitizationdisk wiping - Question #18Security Best Practices
Which of the following utilities supports the automation of security compliance and vulnerability management?
OpenSCAPsecurity compliancevulnerability managementSCAP - Question #19Troubleshooting and Diagnostics
Users report that a Linux system is unresponsive and simple commands take too long to complete. The Linux administrator logs in to the system and sees the following: Which of the f...
CPU loadperformance monitoringsystem diagnosticsload average - Question #20System Configuration and Management
A systems administrator wants to prevent the current contents of a file from being overwritten and wants to allow new additions at the end of the file. Which of the following comma...
chattrappend-onlyfile attributesimmutable flags - Question #21Troubleshooting and Diagnostics
A Linux administrator receives reports about MySQL service availability issues. The administrator observes the following information: Which of the following explains why the server...
OOM killerservice availabilitymemory managementsystemd - Question #22Security Best Practices
A systems administrator is configuring new Linux systems and needs to enable passwordless authentication between two of the servers. Which of the following commands should the admi...
SSH key authenticationssh-keygenssh-copy-idpasswordless auth - Question #23Troubleshooting and Diagnostics
Customers are unable to send emails to a company's domain When searching the naming service, they receive the following error message: Which of the following is a valid reason for...
DNSMX recordsdig commandname resolution - Question #24System Configuration and Management
To perform a live migration, which of the following must match on both host servers? (Choose two).
live migrationvirtualizationCPU architecturestorage path - Question #25Services and User Management
A Linux administrator is updating the group membership by executing the following commands: However, the group membership is not changing. Which of the following explains this issu...
usermodgroup membershipsudouser management - Question #26System Configuration and Management
A Linux systems administrator needs to extract the contents of a file named /home/dev/web.bkp to the /var/www/html/ directory. Which of the following commands should the administra...
cpiobackup extractionarchive managementfile restoration - Question #27System Configuration and Management
A Linux administrator needs to create and then connect to the app-01-image container. Which of the following commands accomplishes this task?
Dockerdocker runcontainer managementinteractive terminal - Question #29Troubleshooting and Diagnostics
SIMULATION 2 A junior system administrator removed an LVM volume by mistake. INSTRUCTIONS Part 1 Review the output and select the appropriate command to begin the recovery process....
LVM recoveryvgcfgrestorelogical volumesvolume group - Question #31Automation, Orchestration, and Scripting
Which of the following Ansible components contains a list of hosts and host groups?
Ansibleinventoryhost groupsautomation - Question #32System Configuration and Management
Which of the following filesystems contains non-persistent or volatile data?
/proc filesystemvirtual filesystemvolatile datakernel interface - Question #33Services and User Management
An administrator needs to verify the user ID, home directory, and assigned shell for the user named "accounting." Which of the following commands should the administrator use to re...
getentpasswd databaseuser attributesuser management - Question #34System Configuration and Management
A Linux user needs to download the latest Debian image from a Docker repository. Which of the following commands makes this task possible?
Dockerdocker image pullcontainer registryimage management - Question #35Automation, Orchestration, and Scripting
In the echo "profile-$num-$name" line of a shell script, the variable $num seems to not be expanding during execution. Which of the following notations ensures the value is expande...
shell scriptingvariable expansionbash syntaxstring interpolation - Question #36Troubleshooting and Diagnostics
A systems administrator wants to review the logs from an Apache 2 error.log file in real time and save the information to another file for later review. Which of the following comm...
tailteereal-time loggingpipe redirection - Question #37Troubleshooting and Diagnostics
Which of the following describes the method of consolidating system events to a single location?
log aggregationcentralized loggingevent consolidationmonitoring - Question #38Troubleshooting and Diagnostics
A Linux administrator receives reports that an application hosted in a system is not completing tasks in the allocated time. The administrator connects to the system and obtains th...
CPU utilizationperformance tuningsystem resourcesjob scheduling - Question #39Security
A systems administrator receives reports about connection issues to a secure web server. Given the following firewall and web server outputs: Which of the following commands best r...
ufwfirewall rulesHTTPSnetwork security - Question #40Networking and Cloud Concepts
An administrator updates the network configuration on a server but wants to ensure the change will not cause an outage if something goes wrong. Which of the following commands allo...
netplannetwork configurationrollbackUbuntu networking - Question #41System Configuration and Management
Which of the following best describes journald?
journaldsystem loggingsystemdlog management - Question #42Services and User Management
A Linux administrator wants to add a user to the Docker group without changing their primary group. Which of the following commands should the administrator use to complete this ta...
usermodgroup managementDockeruser administration - Question #43Security Best Practices
Which of the following is a reason multiple password changes on the same day are not allowed?
password policypassword historyaccount securitychage - Question #44System Configuration and Management
Which of the following commands should an administrator use to convert a KVM disk file to a different format?
qemu-imgKVMvirtualizationdisk conversion - Question #45Troubleshooting
Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands: Which of the following is the cause of the issue?
SSHfirewallservice accessnetwork troubleshooting - Question #46Security Best Practices
A Linux software developer wants to use AI to optimize source code used in a commercial product. Which of the following steps should the developer take first?
AI policygovernanceLLMsoftware development - Question #47Automation, Orchestration, and Scripting
A DevOps engineer made some changes to files on a local repository. The engineer realizes that the changes broke the application and the changes need to be reverted back. Which of...
git resetversion controlgitcode revert - Question #48System Configuration and Management
An administrator needs to remove the directory /home/user1/data and all of its contents. Which of the following commands should the administrator use?
rmdirectory removalfile managementcommand line - Question #49System Configuration and Management
Users cannot access an application that is running inside containers. The administrator wants to validate whether the containers are running. Which of the following commands should...
docker pscontainersDockercontainer management - Question #50Security
A Linux administrator just finished setting up passwordless SSH authentication between two nodes. However, upon test validation, the remote host prompts for a password. Given the f...
SELinuxSSHauthorized_keyssecurity context - Question #51System Configuration and Management
Which of the following commands should a Linux administrator use to determine the version of a kernel module?
modinfokernel modulesmodule managementmodule version - Question #52System Configuration and Management
A Linux user runs the following command: nohup ping comptia.com & Which of the following commands should the user execute to attach the process to the current terminal?
fgnohupjob controlprocess management