Comptia (XK0-004) Exam Questions And Answers page 47
An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?
ps eo pid,etime,cmd | grep bash (to obtain PID)
kill -9 PID
kill -9 PID
ps eo pid,etime| grep bash (to obtain PID)
killall -9 PID
killall -9 PID
killall -15 -o bash
Scripting and Automation
Shells, Scripting, and Data Management
Which ADM phase establishes the connection between the architecture organization and the implementation organization through the Architecture Contract?
Phase E
Phase F
Phase G
Phase H
Requirements Management
System Configuration and Management
Administrative Tasks
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked. Which of the following rules should be added in the firewall to allow this type of connection?
firewall-cmd --zone=public --add-port=443/tcp --permanent
firewall-cmd --zone=internal --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=internal --add-port=443/tcp --permanent
Networking Fundamentals
Which of the following is the architecture domain that describes the logical software and hardware capabilities?
Application Architecture
Business Architecture
Data Architecture
Technology Architecture
System Configuration and Management
Networking Fundamentals
An administrator wants to know the amount of memory installed on a Linux server. Which of the following commands can be used to accomplish this task?
cat /sys/proc/meminfo
cat /proc/meminfo
cat /proc/sys/meminfo
cat /sys/meminfo
Command Line Interface
Scripting and Automation
A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables L command appears to contain a complete firewall configuration.
Which of the following commands does the administrator need to issue for the router to be fully functional?
Which of the following commands does the administrator need to issue for the router to be fully functional?
echo 1 > /proc/sys/net/ipv4/ip_forward
echo 0 > /proc/sys/net/ipv4/tcp_abort_on_overflow
echo 0 > /proc/sys/net/ipv4/max_connections
echo 1 > /proc/sys/net/ipv4/ip_default_ttl
Networking Fundamentals
Security
Users are unable to connect to a server using HTTPS. The administrator runs the following command on the remote system:
Then, the administrator runs the following command from a local workstation:
Which of the following steps should the administrator take to address the issue?
Then, the administrator runs the following command from a local workstation:
Which of the following steps should the administrator take to address the issue?
Start the application to run on port 443
Configure the application to run on an active port
Allow port 443 through the firewall
Update the self-signed certificate
Networking Fundamentals
Security
What ADM phase includes establishing the Architecture Capability and definition of Architecture Principles?
Phase C: Data Architecture
Preliminary Phase
Phase A: Architecture Vision
Phase F: Migration Planning
Phase B: Business Architecture
System Configuration and Management
Administrative Tasks
A systems administrator needs to run the yum update command two hours after employees log off and leave for the day on Friday.
Which of the following is the BEST command to complete the task, if the task only needs to be run once?
Which of the following is the BEST command to complete the task, if the task only needs to be run once?
screen
cron
at
nohup
Command Line Interface
Administrative Tasks
A junior systems administrator is tasked with providing the network_administrators group the ability to perform sudo without prompting for a password. Which of the following steps should the administrator perform to accomplish this task? (Choose two.)
Use visudo to edit the /etc/sudoers file and add network_administrators to the wheel group
Use vi to edit the /etc/sudo file and add network_administrators to the wheel group
Provide all network_administrators with the root account password
Add the network_administrators ALL=(ALL) NOPASSWD: ALL directive to the /etc/sudoers file
Add the network_administrators =(ALL) NOEXEC: ALL directive to the /etc/sudoers file
Command Line Interface
Shells, Scripting, and Data Management
Comments