Exam Logo

Comptia (XK0-004) Exam Questions And Answers page 15

A Linux administrator is developing a Bash script to close specific ports on a server firewall. The administrator is not certain of the default port for the Internet Message Access Protocol.

Which of the following files should the administrator check to determine the default port?
Command Line Interface Networking Fundamentals
Which of the following Linux server roles should be installed to monitor and log local web traffic?
Networking Fundamentals Security
Which phase of the ADM ensures that implementation projects conform to the defined architecture?
System Configuration and Management Administrative Tasks
In Phase D of the ADM cycle, if you are following the order of the steps defined and the current is to perform gap analysis, what is the next step?
System Configuration and Management Administrative Tasks
A systems administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts and the usernames used.

Which of the following files should be watched by the agents?
Command Line Interface Devices, Linux Filesystems, and Filesystem Hierarchy Standard
A systems administrator has received reports of intermittent network connectivity to a particular website. Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?
Networking Fundamentals
Two specific users need access to a directory owned by root where backups are located. Which of the following commands would BEST ensure the specified users can access the backup files?
Shells, Scripting, and Data Management Administrative Tasks
Which of the following can be used to check the status of wireless devices that are connected to the system?
Networking Fundamentals Security
A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive. Which of the following commands will stop each application process?
Command Line Interface Devices, Linux Filesystems, and Filesystem Hierarchy Standard
As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:

Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.

INSTRUCTIONS

Fill the blanks to build a script that performs the actual compression of rotated log files.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Scripting and Automation Devices, Linux Filesystems, and Filesystem Hierarchy Standard