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 same time?
Answer(s): C
The tar -cJf command creates (-c) an archive, compresses it with XZ (-J), and writes it to a file (-f). This allows archiving and compression of the /home/ directory in one step.
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 responding?
The error log shows "cannot load certificate key /etc/pki/nginx/private/server.key", but the listing reveals that server.key is located in /etc/pki/nginx/ rather than the expected /etc/pki/nginx/private/ directory. Since the file exists but not where Nginx is configured to look, moving it to the correct directory resolves the issue.
Which of the following best describes a use case for playbooks in a Linux system?
Answer(s): A
In Ansible, a playbook is a YAML file that defines tasks, configurations, and automation workflows. It is commonly used to deploy applications, configure systems, and manage infrastructure on Linux systems.
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).
Answer(s): D,F
passwd -l user locks the user's account by disabling the password, preventing logins.Change the user's shell to /sbin/nologin ensures the account cannot be used for interactive logins, further securing it.
A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?
Answer(s): B
The shred command securely erases data by overwriting the specified device or file multiple times, making recovery nearly impossible. This is the best option for securely erasing a hard disk.
Which of the following utilities supports the automation of security compliance and vulnerability management?
Answer(s): D
OpenSCAP is a framework that automates security compliance checking and vulnerability management by using standardized security content (SCAP). It helps administrators enforce policies and detect vulnerabilities.
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 following is the system experiencing?
The load averages (8.71, 8.24, 7.71) are well above the number of CPUs (4), showing CPU saturation.Additionally, Output 2 indicates very high CPU usage (65.88% usr, 20.54% sys) with 0% idle, confirming the system is under heavy CPU load, which explains the unresponsiveness.
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 commands should the administrator use?
The chattr +a command sets the append-only attribute on a file. This prevents overwriting or deletion of existing contents, while still allowing new data to be appended to the end of the file.
Post your Comments and Discuss CompTIA XK0-006 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the XK0-006 content, but please register or login to continue.