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?
Which of the following files should the administrator check to determine the default port?
/etc/default/ufw
/etc/resolv.conf
/etc/services
Command Line Interface
Networking Fundamentals
Which of the following Linux server roles should be installed to monitor and log local web traffic?
Proxy server
AAA server
SSH server
HTTP server
Name server
Networking Fundamentals
Security
Which phase of the ADM ensures that implementation projects conform to the defined architecture?
Phase G
Phase H
Requirements Management
Phase D
Phase F
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?
Define candidate roadmap components
Conduct formal stakeholder review
Create Architecture Definition Document
Develop Architecture Definition Document
Resolve impacts across the Architecture Landscape
Develop Baseline Architecture
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?
Which of the following files should be watched by the agents?
/var/log/audit/audit.log
/var/log/kern.log
/var/log/monitor
/etc/rsyslog.conf
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?
mtr www.comptia.org
tracert www.comptia.org
ping www.comptia.org
netstat www.comptia.org
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?
umask
chcon
chmod
setfacl
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?
lsusb
iwconfig
netstat
ifconfig
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?
kill `pidof application`
killall application
kill -9 `ps aux | grep application`
pkill -9 application
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.
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
Comments