00:15:00

CompTIA Linux+ Practice Test (XK0-005)

Use the form below to configure your CompTIA Linux+ Practice Test (XK0-005). The practice test can be configured to only include certain exam objectives and domains. You can choose between 5-100 questions and set a time limit.

Logo for CompTIA Linux+ XK0-005
Questions
Number of questions in the practice test
Free users are limited to 20 questions, upgrade to unlimited
Seconds Per Question
Determines how long you have to finish the practice test
Exam Objectives
Which exam objectives should be included in the practice test

CompTIA Linux+ XK0-005 Information

CompTIA Linux+ (XK0-005) Exam

The CompTIA Linux+ (XK0-005) certification is designed for IT professionals who work with Linux systems. It validates skills in system administration, security, scripting, and troubleshooting. This certification is vendor-neutral, covering multiple distributions such as Ubuntu, CentOS, and Red Hat.

Exam Overview

The XK0-005 exam consists of a maximum of 90 questions, including multiple-choice and performance-based questions. Candidates have 90 minutes to complete the test. The exam costs $358 USD. A passing score is 720 on a scale of 100 to 900. The certification is valid for three years and can be renewed through CompTIA’s continuing education program.

Exam Content

The XK0-005 exam focuses on five main domains: system management, security, scripting and automation, troubleshooting, and Linux fundamentals. System management includes package management, system monitoring, and user administration. Security covers permissions, authentication, and encryption. Scripting and automation focus on Bash scripting and task automation. Troubleshooting tests problem-solving skills for system failures and performance issues. Linux fundamentals include file system hierarchy, networking, and command-line operations.

Who Should Take This Exam?

The CompTIA Linux+ certification is ideal for system administrators, Linux support technicians, and DevOps professionals. It is recommended for individuals with at least one year of Linux experience. This certification is beneficial for IT professionals working with servers, cloud infrastructure, and cybersecurity.

How to Prepare

Candidates should review the official CompTIA Linux+ Exam Objectives and study materials provided by CompTIA. Hands-on experience with Linux systems is essential. Practice exams can help assess readiness and identify weak areas. Using Linux in a lab or virtual environment can provide practical experience with commands, system configuration, and troubleshooting.

Summary

The CompTIA Linux+ (XK0-005) certification is a valuable credential for IT professionals working with Linux systems. It validates essential skills in system administration, security, and automation. This certification is ideal for those managing Linux-based environments in IT infrastructure, cybersecurity, and cloud computing.

Free CompTIA Linux+ XK0-005 Practice Test

Press start when you are ready, or press Change to modify any settings for the practice test.

  • Questions: 15
  • Time: Unlimited
  • Included Topics:
    System Management
    Security
    Scripting, Containers, and Automation
    Troubleshooting
Question 1 of 15

A Linux administrator is troubleshooting a file system mounted as /dev/sdb1 at /data that seems to be causing issues when users attempt to execute scripts stored there. The device is known to only store data files and should not contain any executable code. To enhance security, the administrator had previously set specific mount options for this file system. Which mount option might the administrator have set to cause this behavior, and should now be reviewed or removed to allow script execution?

  • noexec

  • nosuid

  • nodev

  • defaults

  • sync

Question 2 of 15

A system administrator needs to ensure a specific service starts automatically on system boot. Which of the following systemctl subcommands would allow the administrator to achieve this?

  • enable

  • reload

  • status

  • start

Question 3 of 15

An administrator notices that a backup process, which has a process ID (PID) of 2635, is consuming more resources than it should during peak hours, impacting the performance of other critical services on the server. The administrator decides to lower the priority of this backup process to minimize its impact on system performance. Which of the following commands should be used to change the niceness (priority) of the running process to a higher nice value, thereby giving it a lower scheduling priority, without stopping the process?

  • nice --adjustment=+5 --pid=2635

  • renice -5 2635

  • renice +5 2635

  • nice -5 -p 2635

Question 4 of 15

The command 'at' can be used to schedule a job for a specific time without the requirement for that to recur at regular intervals.

  • The statement is inaccurate

  • The statement is accurate

Question 5 of 15

Writing any data to /dev/null saves it in a special buffer that can be retrieved later.

  • False

  • True

Question 6 of 15

During your routine system maintenance, you need to create an archive of the /var/log directory to preserve the system logs before clearing them for the new fiscal year. You decide to use the tar command to create a compressed archive. Which of the following commands correctly creates a gzip compressed archive of the /var/log directory named system_logs.tar.gz?

  • tar -cv system_logs.tar.gz /var/log

  • tar cvzf /var/log > system_logs.tar.gz

  • tar -czvf system_logs.tar.gz /var/log

  • tar -rvf system_logs.tar.gz /var/log

Question 7 of 15

What operation should be periodically performed on a solid-state storage device to indicate which sectors are no longer in use?

  • Increasing the partition size

  • Conducting a sector-by-sector backup

  • Executing a trim command

  • Running a defragmentation program

  • Performing a surface scan

Question 8 of 15

A systems administrator notices that a user who was recently added as a member of the 'data-analysts' group cannot modify files in the 'analytics_reports' directory. The directory permissions are set to drwxrwx---. The user and group ownerships are 'datamgr' and 'data-analysts' respectively. The administrator has verified that the user is indeed a member of the 'data-analysts' group. What should the administrator investigate as the most likely cause of this issue?

  • The filesystem for the 'analytics_reports' directory is mounted as read-only

  • There is full disk space, preventing any changes to files

  • The user has not logged out and back in since being added to the group

  • There are file-specific ACLs that override group permissions and prevent modifications

Question 9 of 15

An organization is looking to improve its software development lifecycle by automatically building, testing, and deploying applications following code commits. Which of the following would BEST implement this requirement?

  • Configuring a Git hook to trigger deployment scripts

  • Setting up a Jenkins pipeline

  • Using cron jobs for scheduled deployments

  • Automating deployments using custom shell scripts

Question 10 of 15

Which command is used to display detailed information about a specific container, including its configuration and current state?

  • docker info

  • docker inspect

  • docker status

  • docker list

Question 11 of 15

The command xargs can be used to apply a single command to each line of input it receives.

  • True

  • False

Question 12 of 15

During the process of enhancing the security of your company's e-commerce platform, you are tasked to obtain a digital certificate for encrypting web traffic. Considering the critical nature of the data being protected, what aspect should be a top priority when choosing an entity to issue and manage the necessary digital certificates?

  • Proximity of the entity's operations to your data center

  • The pricing model of the entity for certificate issuance

  • Past security incidents involving the entity

  • The overall trust and reliability of the issuing entity

Question 13 of 15

What is the purpose of the Git command that is used to update your local repository with commits from a remote repository?

  • Push changes to a remote repository

  • Retrieve updates from a remote repository

  • Merge a remote branch into the current branch

  • Revert a local commit

Question 14 of 15

A Linux server cannot establish connections to devices located on another segment of the network. Upon inspection, you discover that the server has been assigned an address of 192.168.1.126 with a mask indicating it can host up to 126 devices. A noted detail is that the segment's gateway resides at 192.168.1.129. What is the BEST explanation for this connectivity issue?

  • The server is assigned the special address of its subnet that denotes the beginning of the IP range

  • The gateway's address falls outside the server's subnet range

  • The server is utilizing the address typically reserved for broadcasting within its subnet

  • The subnet does not provide an adequate number of host addresses for the network's needs

Question 15 of 15

Which command would you use to display detailed information about the CPU architecture on a Linux system?

  • lscpu

  • lsmod

  • lshw

  • lsblk