Click Here to take the test. (You need an account. It's free)

 

1. Which of the following commands queries for the mail servers for the domain example.com?

  • dig example.com mx
  • dig example.com
  • host -t smtp example.com
  • dig example.com smtp

2. Which of the following netmasks is used for a subnet described with a /25 in CIDR notation?

  • 255.255.255.0
  • 255.255.0.0
  • 255.255.255.192
  • 255.255.255.128

3. Which option to the traceroute command will use TCP SYN packets for the path trace?

  • -T
  • -t
  • -s
  • -i

4. Which of the following commands displays information about addresses, specifically only IPv6 addresses, currently in use on the computer?

  • ip addr
  • ip -6 addr
  • ip6add
  • ipv6addr

5. When examining open ports on the server, you see that TCP port 3000 is listed with no corresponding protocol name, such as SMTP, IMAP over SSL (IMAPS), and so on. In which file would you find a list of port-to-protocol translations that could be customized to add this new port?

  • /etc/ports
  • /etc/p2p
  • /etc/ppp
  • /etc/services

6. How many IP addresses are available in the 172.16.0.0 private range in IPv4?

  • /32
  • 16,777,216
  • 65,536
  • 1,048,576

7. On which port does LDAP over SSL operate?

  • Port 53
  • Port 389
  • Port 636
  • Port 443

8. Which option to the arp command creates a new entry for a given IP address-to-MAC address pair?

  • -s
  • -c
  • -d
  • -add

9. Which of the following commands adds a default gateway of 192.168.1.1 for interface etho?

  • route add default gateway 192.168.1.1 eth0
  • eth0 -dg 192.168.1.1
  • route add default gw 192.168.1.1 eth0
  • route define eth0 192.168.1.1

10. Within which file can per-user default settings be created for the dig command?

  • /etc/dig.cfg
  • /etc/dig.conf
  • ~/.digrc
  • ~/.dig.conf

11. Which of the following describes a primary difference between IPv4 and IPv6?

  • IPv4 is for internai networks only, whereas IPv6 is for public networks.
  • IPv4 is for public networks, whereas IPv6 is for internai networks.
  • IPv4 uses a 32-bit address, whereas IPv6 uses a 128-bit address.
  • With IPv6, no subnetting is necessary.

12. Which command provides a method for sending ICMP requests for IPv6?

  • ping6
  • pingv6
  • tracert
  • 6.ping

13. Which of the following dig commands sends the query for example.com directly to the server at 192,168,2,5 rather than to a locally configured resolver?

  • dig example.com @192.168.2.5
  • dig -t 192.168.2.5 example.com
  • dig -s 192.168.2.5 example.com
  • dig server=192.168.2.5 example.com

14. Which option for the host command will query for the authoritative name servers for a given domain?

  • -t ns
  • -t all
  • -ns
  • -named

15. You need to offer internally facing NTP services. On which protocol and port does NTP listen?

  • TCP/20 and TCP/21
  • UDP/123
  • TCP/139
  • UDP/5150

16. Which option to the host command sets the query type to ANY?

  • -a
  • -b
  • -c
  • -d

17. Which command is used to show the settings for DNS resolution with systemd-resolved?

  • systemctl resolvers
  • resolvectl status
  • systemctl -resolvers
  • resolvectl -view-status

18. Which of the following ports is used for Secure Shell communication?

  • TCP/23
  • TCP/25
  • TCP/22
  • TCP/2200

19. Which of the following netstat options displays the send and receive queues for each socket?

  • -r
  • -M
  • -a
  • -v

20. Which option to the route command forces the kernel to use the specified device for the route rather than attempting to determine the correct device?

  • inet
  • addr
  • dev
  • device

21. Which command is used for setting parameters such as the essid, channel, and other related options for a wireless device?

  • ifconfig
  • iwconfig
  • wlancfg
  • iconf

22. Which of the following commands enables NetworkManager so that it can be used to configure Ethernet and Wi-Fi network devices?

  • nmcli networking on
  • netman enable
  • NetworkManager -enable
  • nmti -enable networking

23. Which ports need to be allowed through the firewall for Simple NetWork Management Protocol (SNMP) traffic?

  • Ports 23 and 25
  • Ports 110 and 143
  • Ports 80 and 443
  • Ports 161 and 162

24. Which file is read at boot to set the local computer’s hostname?

  • /etc/hostname
  • /etc/hosts
  • /etc/localhost
  • /etc/networkhost

25. Which of the following commands views systemd Journal entries for the NetworkManager unit?

  • systemd NetworkManager
  • systemd NetworkCtl
  • systemctl NetworkManager
  • journalctl -u NetworkManager

26. Which of the following commands will examine the system log for information regarding DHCP activity?

  • grep -i dhcp /var/log/syslog
  • grep -v dhcp /var/log/syslog
  • grep -vi dhcp /var/log/kern.log
  • dmesg | grep dhcp

27. Which of the following commands changes the Media Access Control (MAC) address of etho?

  • ifmac eth0
  • ifconfig eth0 hw ether
  • ifconfig eth0 mac
  • ifconfig eth0 hw mac

28. Which of the following describes a primary difference between traceroute and tracepath?

  • The traceroute command requires root privileges.
  • The tracepath command provides the MTU for each hop, whereas traceroute does not.
  • The tracepath command cannot be used for tracing a path on an externai network.
  • he traceroute command is not compatible with IPv6.

29. Which of the following configuration lines in /etc/nsswitch. conf causes a lookup for group information to first use local files and then use LDAP?

  • group: files Idap
  • lookup: group [local Idap]
  • group: [local ldap]
  • group: localfiles ldap

30. Which of the following commands prevents traffic from reaching the host 192.168.1.3?

  • route add -host 192.168.1.3 reject
  • route -nullroute 192.168.1.3
  • route add -null 192.168.1.3
  • route add -block 192.168.1.3

31. On which port does IMAP over SSL (IMAPS) listen?

  • 993
  • 995
  • 465
  • 514

32. Which of the following commands can be used to test network connectivity at the TCP level instead of telnet?

  • netstat
  • nc
  • nettest
  • ping

33. Which of the following commands should be executed after running ip route change?

  • ip route flush cache
  • ip route reload
  • ip route cache reload
  • ip route restart

34. When using the ip command, which protocol family is used as the default if not otherwise specified?

  • tcpip
  • ip
  • inet
  • arp

35. Which option to the ss command shows the process IDs associated with the socket?

  • -l
  • -a
  • -p
  • -f

36. Which of the following commands requests a zone transfer of example.org from the server at 192.168.1.4?

  • dig example.org @192.168.1.4 axfr
  • dig example.org @192.168.1.4
  • dig example.org @192.168.1.4 xfer
  • dig example.org #192.168.1.4 xfer

37. Which traceroute command is used exclusively for IPv6 route traces?

  • trace6
  • traceroute6
  • tracert6
  • 6trace

38. Which options for netcat will create a server listening on port 8080?

  • netcat -p 8080
  • nc -l -p 8080
  • nc -p 8080
  • nc -s 8080

39. Which option should be used to send a DNS query for a Sender Policy Framework (SPF) record with dig?

  • -t txt
  • -t spf
  • -t mx
  • -t mailspf

40. Which of the following characters are valid for hostnames in /etc/hosts?

  • Alphanumerics, minus, underscore, and dot
  • Alphanumerics, minus, and dot
  • Alphanumerics and dot
  • Alphanumerics

41. You are using the route command to view routes. However, name resolution is taking a long time and causing delay in the response from the route command. Which option to route can be added to cause it to not perform name resolution?

  • -d
  • -e
  • -f
  • -n

42. On which port does ICMP operate?

  • TCP/43
  • UDP/111
  • UDP/69
  • ICMP does not use ports.

43. You have replaced a device on the network but used the IP from another active device. Which command can be run to remove the MAC address entry from your computer so that it performs the address resolution again?

  • arp -d
  • netstat -rn
  • hostname
  • dig

44. Which programmatic function is used by the hostname command internally?

  • getaddr
  • gethost
  • gethostname
  • getname

45. When troubleshooting a potential hardware problem, you need to determine which physical interface is being used for a certain address. One way to accomplish this is with the ping command in order to monitor the activity lights on the device. Which of the following options to ping will flood the interface with ECHO_REQUEST packets?

  • -e
  • -a
  • -c
  • -f

46. Which of the following commands will emulate the ping command in Microsoft Windows, where the ping is sent for four packets and then the command exits?

  • ping -n 4
  • ping -t 4
  • ping -p 4
  • ping -c 4

47. Which of the following addresses represents the localhost in IPv6?

  • 0:1
  • ::1
  • 127:0:1
  • :127:o:o:1

48. Which of the following commands shows network sockets and their allocated memory?

  • ss -m
  • mpas
  • mem
  • free

49. If the traceroute6 command is not available, which option to the traceroute command can be used for an IPv6 traceroute?

  • -ipv6
  • -net6
  • -v6
  • -6

50. Which of the following configuration lines will set the DNS server to 192.168.1.4 using /etc/resolv.conf?

  • dns 192.168.1.4
  • dns-server 192.168.1.4
  • nameserver 192.168.1.4
  • name-server 192.168.1.4

51. Which of the following iproute2 commands changes the address of device etho to 192.168.1.1 with netmask 255.255.255.0?

  • ip addr add 192.168.1.1/24 dev eth0
  • ip addr eth0 192.168.1.1 255.255.255.0
  • ip addr dev eth0 192.168.1.1 255.255.255.0
  • ip addr 192.168.1.1/255.255.255.0 eth0

52. Which of the following commands sends an IPv6 ping to a unique local address?

  • ping -6 127.0.0.1
  • ping6 fddi/128
  • ping6 fdd6:551:b09f::
  • ping - 6 fdd6:551:b09f::

53. Which command for hostnamecti can be used to set the hostname?

  • set-host
  • set-hostname
  • set-name
  • hostname

54. You need to set the MTU to a specific value for a network interface. Which option to ifconfig facilitates this?

  • -mtu
  • mtu
  • metric
  • addrmtu

55. Which of the following configuration lines in /etc/resolv. conf enables debugging?

  • debug
  • options debug
  • option debug
  • enable-debug

56. Which of the following commands displays information such as link status about the wireless device wlano?

  • iw dev wlan0 link
  • wlan0 list
  • iw wlan0 -l
  • iw dev link

57. Which of the following commands will change the default gateway to 192.168.1.1 using etho?

  • ip route default gw 192.168.1.1
  • ip route change default via 192.168.1.1 dev eth0
  • ip route default gw update 192.168.1.1
  • ip route update default 192.168.1.1 eth0

58. Which option for the ping command enables you to choose the interface from which the Internet Control Message Protocol (ICMP) packets will be generated?

  • -i
  • -I
  • -t
  • -a

59. In a scripting scenario, which command will return the domain name configured for the server?

  • dnsname
  • fqdn
  • hostname
  • hostname -d

60. You need to prevent local clients from going to a certain host, www.example.com. and instead redirect them to localhost. Which of the following is a method to override DNS lookups for the specified host?

  • Add a firewall entry for the IP address of www.example.com to prevent traffic from passing through it.
  • Delete www.example.com from the route table using the route command.
  • Add a null route to prevent access to the IP address for www.example.com.
  • Add an entry for www.example.com in /etc/hosts to point to 127.0.0.1.

61. You are having difficulty with an interface on the server and it is currently down. Assuming that there is no hardware failure on the device itself, which command and option can you use to display information about the interface?

  • ifconfig -a
  • ifup
  • netstat -n
  • ifconfig

62. Which of the following commands will disable ARP on the interface etho?

  • ifconfig eth0 -arp
  • ip eth0 noarp
  • ifconfig eth0 noarp
  • if eth0 disable arp

63. Which of the following commands configures the etho device with an IP address of 192.168.1.1 in a /24 network?

  • ifconfig eth0 192.168.1.1/24
  • ifconfig eth0 192.168.1.1/255.255.255.0
  • ifconfig eth0 192.168.1.1 netmask 255.255.255.0
  • ifconfig 192.168.1.1 netmask 255.255.255.0 eth0

64. Which type of DNS record is used for specifying a POP3 server?

  • POP
  • PO
  • MX
  • There is no specific type for POP3 servers.

65. When viewing the available routes using the route command, one route contains UG flags and the others contain u flags. What do the letters UG signify in the route table?

  • The G signifies that the route is good.
  • The G signifies that the route is unavailable.
  • The G signifies that this is a gateway.
  • The G signifies that the route is an aggregate.

66. Which of the following is not used as a private address for internai, non-Internet, use?

  • 172.16.4.2
  • 192.168.40.3
  • 10.74.5.244
  • 143.236.32.231

67. Which of the following commands configures ethi with an additional IPv6 address of fdd6: 551: b09e:: ?

  • ifconfig eth1 inet6 add fdd6:551:b09e::/128
  • ifconfig add fdd6:551:b09e::
  • ifconfig fdd6:551:b09e:: eth1
  • ifconfig eth1 fdd6:551:b09e

68. You are troubleshooting a DNS problem using the dig command and receive a status: NXDOMAIN message. Which of the following best describes what NXDOMAIN means?

  • NXDOMAIN means that you have received a nonauthoritative answer for the query.
  • NXDOMAIN means that the domain or host is not found.
  • NXDOMAIN indicates a successful query.
  • NXDOMAIN signifies a new domain record has been added.

69. Which port(s) and protocol(s) should be opened in a firewall in order for the primary and secondary name servers to communicate for a given domain?

  • udp/53
  • Both tcp/53 and udp/53
  • tcp/53
  • udp/53 and tcp/503

70. Which of the following commands can be used to scan for available wireless networks?

  • iwlist get
  • iwconfig scan
  • iwlist scan
  • iw-scan

71. Which of the following commands shows the current default route without performing Domain Name System (DNS) lookups on the IP address(es) involved?

  • netstat -rn
  • netstat -n
  • netstat -r
  • netstat -f

72. Which option to tcpdump displays a list of available interfaces on which tcpdump can operate?

  • -a
  • -d
  • -D
  • -i

73. Which of the following commands will attempt to bring online all interfaces marked as auto within the networking configuration?

  • ifconfig -a
  • ifup auto
  • ifup -a
  • ifstat

74. Which of the following commands displays the Start of Authority information for the domain example.com?

  • dig example.com soa
  • dig example.com authority
  • dig example.com -auth
  • dig -t auth example.com

75. Which type can be used with the dig command to test a zone transfer?

  • xfr
  • transfer
  • zxfr
  • axfr

76. Which of the following commands adds a route to the server for the network 192.168.51.0/24 through its gateway of 192.168.51.1?

  • route add -net 192.168.51.0 netmask 255.255.255.0 gw 192.168.51.1
  • route add -net 192.168.51/24 gw 192.168.1.51
  • route -net 192.168.51.0/24 192.168.51.1
  • route add 192.168.51.1 -n 192.168.51.0//255.255.255.0

77. Which command provides an interface into NetworkManager that works from a terminal window?

  • nmcli
  • nmui
  • nm
  • nman

78. Which of the following commands displays the number of packets forwarded by the kernel?

  • ls
  • ipstat
  • ifconfig -a
  • netstat -s

79. Which of the following represents a correct configuration line for /etc/hosts?

  • 192.168.1.4 cwa.linux.org cwa
  • cwa.linux.org cwa 192.168.1.4
  • cwa.linux.org 192.168.1.8 alias cwa
  • alias cwa.linux.org cwa 192.168.1.4

80. Which command can be used to listen for netlink messages on a network?

  • ip monitor
  • netlink -a
  • ip netlink
  • route

81. You need to split a subnet to enable four subnets with up to 30 hosts each. Which subnet mask, in Classless Inter-Domain Routing (CIDR) notation, facilitates this scenario?

  • /25
  • /24
  • /32
  • /27

82. Which systemd daemon can be used to manage network interfaces through systemd?

  • networker
  • networked
  • networkd
  • netwrkd

83. Which of the following commands will enumerate the hosts database?

  • getent hosts
  • gethosts
  • nslookup
  • host

84. When you’re looking to parse the output of the ip command, which option can you set to remove newlines so that the output can be piped to the grep command?

  • -n
  • -o
  • -l
  • -f

85. Which of the following protocols uses a three-way handshake?

  • ICMP
  • TCP
  • UDP
  • IP

86. Which option to traceroute causes the command to use ICMP for requests?

  • -T
  • -A
  • -I
  • -i

87. When troubleshooting a connectivity issue, you have found that you can reach a server via the web but cannot ping it. Which of the following best describes a possible cause for this scenario?

  • TCP traffic has been blocked at the firewall.
  • The DNS lookup is failing.
  • ICMP traffic has been blocked.
  • There is a reject route in place.

88. Assume that you want to enable local client services to go to hosts on the network without needing to fully qualify the name by adding the domain for either example. com or example. org. Which option in /etc/resolv.conf will provide this functionality?

  • search
  • domain
  • local-domain
  • local-order

 

{jssocials}