101-110 Flashcards

1
Q

A Linux administrator needs to determine whether a hostname is in the DNS. Which of the following would supply the information that is needed?

A. nslookup
B. rsynс
C. netstat
D. host

A

A. nslookup

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

A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity. The systems administrator inspects the server configuration:

Routing table:

default via 89.107.157.129 dev ens3 proto static metric 100
default via 10.0.5.1 dev sns11 proto dhcp metric 101
10.0.0.0/16 dev sn11 proto kernel scope link src 10.0.6.255 metric 101
89.107.157.128/26 via 89.107.157.129 dev ens3 proto static metric 100
89.107.157.129 dev ens3 proto static scope link metric 100
89.107.157.160/29 dev ens3 proto kernel scope link src 89.107.157.161 metric 100

IP configuration:

ens3:
inet 89.107.157.161/29 brd 89.107.157.167 scope global neprefixroute ens3

ens11:
inet 10.0.6.255/16 brd 10.0.255.255 scope global noprefixroute dynamic ens11

ARP table:

Address | Hwtype | Hwaddress | Flags | Mask| Iface

10.0.5.1|ether|64:d1:54:c4:75:cb|C| |ens11

89.107.157.129|ether|5c:5e:ab:01:85:cf|C| |ens3

89.107.157.162|ether|52:54:00:e1:44:0a|C| |ens3

10.0.255.1|ether|00:50:7f:e3:aa:1c|C| |ens11

/etc/resolv.conf:
Generated by NetworkHanger
search company.com
nameserver 10.0.5.1

Which of the following is MOST likely the cause of the issue?

A. An internal-only DNS server is configured.
B. The IP netmask is wrong for ens3.
C. Two default routes are configured.
D. The ARP table contains incorrect entries.

A

C. Two default routes are configured.

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

A cloud engineer needs to block the IP address 192.168.10.50 from accessing a Linux server. Which of the following commands will achieve this goal?

A. iptables -F INPUT -j 192.168.10.50 -m DROP
B. iptables -A INPUT -s 192.168.10.30 -j DROP
C. iptables -i INPUT –ipv4 192.168.10.50 -z DROP
D. iptables -j INPUT 192.168.10.50 -p DROP

A

B. iptables -A INPUT -s 192.168.10.30 -j DROP

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

A Linux systems administrator is configuring a new filesystem that needs the capability to be mounted persistently across reboots. Which of the following commands will accomplish this task? (Choose two.)

A. df -h /data
B. mkfs.ext4 /dev/sdc1
C. fsck /dev/sdc1
D. fdisk -l /dev/sdc1
E. echo “/data /dev/sdc1 ext4 defaults 0 0”&raquo_space; /etc/fstab
F. echo “/dev/sdc1 /data ext4 defaults 0 0”&raquo_space; /etc/fstab

A

B. mkfs.ext4 /dev/sdc1

F. echo “/dev/sdc1 /data ext4 defaults 0 0”&raquo_space; /etc/fstab

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

A Linux administrator is alerted to a storage capacity issue on a server without a specific mount point or directory. Which of the following commands would be MOST helpful for troubleshooting? (Choose two.)

A. parted
B. df
C. mount
D. du
E. fdisk
F. dd
G. ls

A

B. df

D. du

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

A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?

A. fg
B. su
C. bg
D. ed

A

A. fg

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

A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:

%Cpu (s): 2.7 us, 1.9 sy, 0.0 ni, 0.4 id, 95 wa, 0.0 hi, 0.0 si 0.0 st

Which of the following commands will the administrator most likely run NEXT?

A. vmstat
B. strace
C. htop
D. lsof

A

A. vmstat

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

Which of the following technologies provides load balancing, encryption, and observability in containerized environments?

A. Virtual private network
B. Sidecar pod
C. Overlay network
D. Service mesh

A

D. Service mesh

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

A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?

A. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
B. cat /etc/systemd/journald.conf | awk ‘(print $1,$3)’
C. sed -i ‘s/auto/persistent/g’ /etc/systemd/journald.conf && sed -i ‘persistent/s/ˆ#//q’ /etc/systemd/journald.conf
D. journalctl –list-boots && systemctl restart systemd-journald.service

A

A. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service

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

A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server.
To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

netstat -anp | grep appd | grep -w LISTEN tcp 0 0 127.0.0.1:9443 0.0.0.0:* LISTEN 1234/appd

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

A. The IP address 0.0.0.0 is not valid.
B. The application is listening on the loopback interface.
C. The application is listening on port 1234.
D. The application is not running.

A

B. The application is listening on the loopback interface.

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