111-120 Flashcards

1
Q

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

;; ANSWER SECTION:
db.example.com. 15 IN A 192.168.20.89

The administrator runs grep db.example.com /etc/hosts and receives the following output:

192.168.20.89 db.example.com

Given this scenario, which of the following should the administrator do to address this issue?

A. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
B. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
C. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
D. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

A

A. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.

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

Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:

Output 1:

2: eth0: <BROADCAST,MULTICAST,UP, LOWER_UP> mtu 1500 qdisc noqueue state UP group default glen 1000
link/ether ac:11:22:33:44:cd brd ff:ff:ff:ff:ff:ff
inet 192.168.168.10/24 brd 102. 168.169.255 scope global dynamic noprefixroute eth0 valid_lft 8097sec preferred_lft 8097sec
inet fe80::4daf:8c7c:a6ff:2771/64 scope link noprefixroute valid_lft forever preferred_lft forever

Output 2:

nameserver 192.168.168.53

Output 3:

FING 102.168.168.53 (192.168.168.53) 56(84) bytes of data.
64 bytes from 192.168.168.53: icmp_seq=1 ttl=64 time=2.85 ms

—102.168.168.53 ping statistics —
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 2.847/2.847/0.000 ms

Output 4:

192.168.168.0/24 dev eth0 proto kernel scope link src 192.168.168.10 metric 600

Output 5:


;; QUESTION SECTION:
;www.comptia.org. IN A

;; ANSWER SECTION:
. 0 CLASS4096 OPT 10 8 LgmNvk0AazU=

;; ADDITIONAL SECTION:
www.comptia.org. 3385 IN A 23.96.239.26

Based on the information above, which of the following is causing the issue?

A. The name www.comptia.org does not point to a valid IP address.
B. The server 192.168.168.53 is unreachable.
C. No default route is set on the server.
D. The network interface eth0 is disconnected.

A

C. No default route is set on the server.

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

A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?

A. gedit & disown
B. kill 9 %1
C. fg %1
D. bg %1 job name

A

A. gedit & disown

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

A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:

root@linux:~# uptime
18:43:47 up 1 day, 19:58, 1 user, load average: 9.90, 5.83, 2.49
root@linux:~# vmstat 10 10

procs—-memory—-swap—–io—-system —-cpu

r|b|swpd|free|buff|cache|si|so|bi|bo|in|cs|us|sy|id|wa|st

13|0|5520|141228|98932|2325312|0|2|10|28|192|167|1|0|99|0|0

13|0|5608|141228|98932|2325312|0|26211|10|28|192|167|1|0|99|0|0

13|0|5528|1096|98932|2325312|0|5242|10|28|192|167|1|0|99|0|0

root@linux:~# free -m

total|used|free|shared|buff/cache|available

Mem: 3933|1454|110|33|2368|2202
Swap: 1497|5|1491

Given there is a single CPU in the sever, which of the following is causing the slowness?

A. The system is running out of swap space.
B. The CPU is overloaded.
C. The memory is exhausted.
D. The processes are paging.

A

B. The CPU is overloaded.

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

Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:

admin@server: /opt/work$ ls -al file
-rw-rw—–+ 1 root it 4 Sep 5 17:29 file

Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?

A. chattr +i file
B. chown it:finance file
C. chmod 666 file
D. setfacl -m g:finance:rw file

A

D. setfacl -m g:finance:rw file

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

A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services. Which of the following processes would accomplish this task?

A. Create a unit file in the /etc/default/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
B. Create a unit file in the /etc/ske1/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
C. Create a unit file in the /etc/systemd/system/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
D. Create a unit file in the /etc/sysctl.d/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup

A

C. Create a unit file in the /etc/systemd/system/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup

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

A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems

Welcome to emergency mode! After logging in, type “journalctl -xb” to viewsystem logs, “systemctl reboot” to reboot, “systemctl default” to try again to boot into default mode.
Give root password for maintenance
(or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?

A. /etc/mtab
B. /dev/sda
C. /etc/fstab
D. /ete/grub.conf

A

C. /etc/fstab

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

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

A. /etc/ssh/sshd_config
B. /etc/ssh/moduli
C. ~/.ssh/config
D. ~/.ssh/authorized_keys

A

C. ~/.ssh/config

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

A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

A. systemctl stop sshd
B. systemctl mask sshd
C. systemctl reload sshd
D. systemctl start sshd

A

C. systemctl reload sshd

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

A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?

A. ifconfig hw eth1
B. netstat -r eth1
C. ss -ti eth1
D. ip link show eth1

A

D. ip link show eth1

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