231-240 Flashcards

1
Q

A Linux administrator logs in to a system and identifies that an important backup has been started. The backup process is consuming a considerable amount of CPU lime but needs to continue. Which of the following should the administrator use to reduce the impact this process has on other services?

A. renice -n 15 -p
B. nice -n 15 -p
C. renice -n -15 -p
D. nice -n -15 -p

A

A. renice -n 15 -p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

echo ‘net.core.net_backlog = 5000000’&raquo_space; /etc/sysctl.conf

The application team has reported latency issues that are causing the application to crash on the Linux server. The Linux administrator starts troubleshooting and receives the following output:

netstat -s
15762 packets pruned from receive queue because of socket buffer over
690 times the listen queue of a socket overflowed
690 SYNs to LISTEN sockets ignored
2150128 packets collapsed in receive queue due to low socket buffer
TCPBacklogDrop: 844165

ethtool -s eth0
rx_fw_discards: 4487

Which of the following commands will improve the latency issue?

A.
# echo ‘net.core.net_backlog = 5000000’&raquo_space; /etc/sysctl.conf
# sysctl -p
# systemctl daemon-reload

B.
# ifdown eth0
# ip link set dev eth0 mtu 800
# ifup eth0

C.
# systemctl stop network
# ethtool -g eth0 512
# systemctl start network

D.
# echo ‘net.core.rmem_max = 12500000’&raquo_space; /etc/sysctl.conf
# echo ‘net.core.wmem_max = 12500000’&raquo_space; /etc/sysctl.conf
# sysctl -p

A

D.
# echo ‘net.core.rmem_max = 12500000’&raquo_space; /etc/sysctl.conf
# echo ‘net.core.wmem_max = 12500000’&raquo_space; /etc/sysctl.conf
# sysctl -p

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

An administrator recently updated the BIND software package and would like to review the default configuration that shipped with this version. Which of the following files should the administrator review?

A. /etc/named.conf.rpmnew
B. /etc/named.conf.rpmsave
C. /etc/named.conf
D. /etc/bind/bind.conf

A

A. /etc/named.conf.rpmnew

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

A systems administrator received a request to change a user’s credentials. Which of the following commands will grant the request?

A. sudo passwd
B. sudo userdel
C. sudo chage
D. sudo usermod

A

A. sudo passwd

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

A user is unable to log on to a Linux workstation. The systems administrator executes the following command:

cat /etc/shadow | grep user1

The command results in the following output:

user1: !$6$QERgAsdvojadv4asdvaarC/9dj34GdafGVaregmkdsfa:18875:0:99999:7:::

Which of the following should the systems administrator execute to fix the issue?

A. chown -R user1:user1 /home/user1
B. sed -i ‘/:::/::/g’ /etc/shadow
C. chgrp user1:user1 /home/user1
D. passwd -u user1

A

D. passwd -u user1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

A systems administrator is tasked with creating an Ansible playbook to automate the installation of patches on several Linux systems. In which of the following languages should the playbook be written?

A. SQL
B. YAML
C. HTML
D. JSON

A

B. YAML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

A systems administrator is working on a security report from the Linux servers. Which of the following commands can the administrator use to display all the firewall rules applied to the Linux servers? (Choose two.)

A. ufw limit
B. iptables -F
C. systemctl status firewalld
D. firewall-cmd –list-all
E. ufw status
F. iptables -A

A

D. firewall-cmd –list-all

E. ufw status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

A Linux administrator intends to start using KVM on a Linux server. Which of the following commands will allow the administrator to load the KVM module as well as any related dependencies?

A. modprobe kvm
B. insmod kvm
C. depmod kvm
D. hotplug kvm

A

A. modprobe kvm

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

The group owner of the /home/test directory would like to preserve all group permissions on files created in the directory. Which of the following commands should the group owner execute?

A. chmod g+s /home/test
B. chgrp test /home/test
C. chmod 777 /home/test
D. chown -hR test /home/test

A

A. chmod g+s /home/test

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The administrator comptia is not able to perform privileged functions on a newly deployed system. Given the following command outputs:

[root@newserver ~]# id compita
uid=1000(comptia) gid=1000(comptia) groups=1000(comptia)

[root@newserver ~]# cat /etc/sudoers.d/admin
%admin ALL- (root) NOPASSWD: EXEC: /usr/bin/ps, /usr/bin/chmod, /usr/bin/yum, /usr/bin/cat, /usr/sbin/lvm, /usr/sbin/pvs

[root@newserver ~]# chage -l comptia
last password change : never
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7

Which of the following is the reason that the administrator is unable to perform the assigned duties?

A. The administrator needs a password reset.
B. The administrator is not a part of the correct group.
C. The administrator did not update the sudo database.
D. The administrator’s credentials need to be more complex.

A

B. The administrator is not a part of the correct group.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly