Docsity

Linux Network Professional Certification - Level 2 Exam, Exams of Cybersecurity

Toggle sidebar
bg1
Linux Network Professional Certification - Level 2
Exam
Question 1. Which command is primarily used to display the current network interfaces and their
statuses in a Linux system?
A) ifconfig
B) ip a
C) netstat -i
D) nmcli device status
Answer: B
Explanation: The 'ip a' command (or 'ip addr') shows all network interfaces with their IP addresses and
status, providing detailed information about each interface. While 'ifconfig' is legacy, 'ip' is the modern
utility recommended for interface management.
Question 2. How can you make network configuration changes persistent across reboots in a Linux
system using NetworkManager?
A) Edit /etc/network/interfaces
B) Use nmcli to modify connection settings and save them
C) Modify /etc/resolv.conf directly
D) Run ifdown and ifup commands
Answer: B
Explanation: Using 'nmcli' allows administrators to modify connection profiles and save the
configuration for persistence across reboots, leveraging NetworkManager's capabilities.
Question 3. Which command displays the kernel routing table?
A) route
B) ip route
C) netstat -r
D) All of the above
Answer: D
Explanation: All listed commands ('route', 'ip route', 'netstat -r') display the kernel routing table, with 'ip
route' being the most modern and recommended utility.
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b

Partial preview of the text

Download Linux Network Professional Certification - Level 2 Exam and more Exams Cybersecurity in PDF only on Docsity!

Exam

Question 1. Which command is primarily used to display the current network interfaces and their statuses in a Linux system? A) ifconfig B) ip a C) netstat - i D) nmcli device status Answer: B Explanation: The 'ip a' command (or 'ip addr') shows all network interfaces with their IP addresses and status, providing detailed information about each interface. While 'ifconfig' is legacy, 'ip' is the modern utility recommended for interface management. Question 2. How can you make network configuration changes persistent across reboots in a Linux system using NetworkManager? A) Edit /etc/network/interfaces B) Use nmcli to modify connection settings and save them C) Modify /etc/resolv.conf directly D) Run ifdown and ifup commands Answer: B Explanation: Using 'nmcli' allows administrators to modify connection profiles and save the configuration for persistence across reboots, leveraging NetworkManager's capabilities. Question 3. Which command displays the kernel routing table? A) route B) ip route C) netstat - r D) All of the above Answer: D Explanation: All listed commands ('route', 'ip route', 'netstat - r') display the kernel routing table, with 'ip route' being the most modern and recommended utility.

Exam

Question 4. To enable IP forwarding on a Linux system, which sysctl parameter must be set to 1? A) net.ipv4.ip_forward B) net.ipv4.conf.all.forwarding C) net.ipv6.conf.all.forwarding D) kernel.ip_forward Answer: A Explanation: 'net.ipv4.ip_forward' controls IPv4 packet forwarding; setting it to 1 enables the Linux kernel to forward IPv4 packets, essential for routing. Question 5. Which DNS record type is used to map a hostname to an IPv6 address? A) A B) AAAA C) PTR D) CNAME Answer: B Explanation: The AAAA record maps a hostname to an IPv6 address, analogous to the A record for IPv4. Question 6. When configuring a caching-only DNS server, which software is most commonly used? A) BIND B) dnsmasq C) PowerDNS D) Unbound Answer: D Explanation: Unbound is a popular open-source DNS resolver often used for caching-only DNS server configurations, offering security and performance benefits. Question 7. Which DNS record type is used to specify mail exchange servers for a domain? A) A B) MX

Exam

Answer: A Explanation: 'timedatectl status' shows the current system time, timezone, and synchronization status with systemd-timesyncd. Question 11. Which web server software is known for its event-driven architecture and high performance, often used as an alternative to Apache? A) Nginx B) Lighttpd C) IIS D) Caddy Answer: A Explanation: Nginx is renowned for its high-performance, event-driven, asynchronous architecture, making it suitable as an alternative to Apache. Question 12. Virtual hosts in Apache HTTP Server are primarily used to: A) Serve multiple websites from a single server B) Enable SSL/TLS encryption C) Load balance incoming requests D) Redirect HTTP traffic to HTTPS Answer: A Explanation: Virtual hosts allow Apache to host multiple domains or websites on a single server, differentiated by hostname or IP. Question 13. Which file contains the main configuration for NFS exports? A) /etc/exports B) /etc/nfs.conf C) /etc/nfs/exports.conf D) /etc/nfsd.conf Answer: A

Exam

Explanation: The '/etc/exports' file defines directories exported by the NFS server and their access permissions. Question 14. When configuring Samba for Windows file sharing, what is the primary configuration file? A) /etc/samba/smb.conf B) /etc/samba/smbsettings.conf C) /etc/smb/samba.conf D) /etc/samba.conf Answer: A Explanation: The main Samba configuration file is located at '/etc/samba/smb.conf', where shares and settings are defined. Question 15. Which protocol does 'vsftpd' primarily implement? A) FTP B) SFTP C) SCP D) FTPS Answer: A Explanation: 'vsftpd' is an FTP server daemon implementing the File Transfer Protocol (FTP). Question 16. Which Mail Transfer Agent (MTA) is widely used for its simplicity and security features? A) Sendmail B) Postfix C) Exim D) Microsoft Exchange Answer: B Explanation: Postfix is popular for its ease of configuration, security, and performance, making it a common choice for Linux mail servers.

Exam

C) A logging configuration file D) A network interface setting Answer: A Explanation: ACLs in Squid are used to specify rules that control access based on client IPs, URLs, or other criteria. Question 21. Which command is used to configure firewall rules in Linux using nftables? A) iptables B) nft C) firewall-cmd D) ufw Answer: B Explanation: 'nft' is the command-line utility to configure and manage nftables, the modern replacement for iptables. Question 22. Which VPN protocol is most commonly used for secure site-to-site or remote access VPNs? A) PPTP B) L2TP/IPsec C) OpenVPN D) SSTP Answer: C Explanation: OpenVPN is widely used for its security, open-source nature, and flexibility in VPN implementations. Question 23. Which PAM utility is used to authenticate users against LDAP directories? A) pam_unix B) pam_ldap C) pam_tally D) pam_securetty

Exam

Answer: B Explanation: 'pam_ldap' allows PAM to authenticate users against an LDAP directory. Question 24. Which command-line tool can be used to test open ports on a remote server? A) netcat (nc) B) ping C) traceroute D) dig Answer: A Explanation: 'netcat' (nc) can be used to test connectivity and open ports on remote servers. Question 25. Which tool provides real-time packet capture and analysis for troubleshooting network issues? A) tcpdump B) netstat C) ifconfig D) ping Answer: A Explanation: 'tcpdump' captures network packets, enabling detailed analysis for troubleshooting. Question 26. Which command shows active network connections and listening ports? A) ss B) netstat - tuln C) lsof - i D) All of the above Answer: D Explanation: All listed commands display active connections and listening ports, with 'ss' being the modern alternative to 'netstat'.

Exam

B) ip link C) ifconfig D) All of the above Answer: D Explanation: 'ethtool', 'ip link', and 'ifconfig' (legacy) can display interface statistics and status. Question 31. Which command is best suited to measure network throughput between two hosts? A) iperf B) ping C) traceroute D) netstat Answer: A Explanation: 'iperf3' measures bandwidth and throughput between two hosts, making it ideal for performance testing. Question 32. What does the command 'traceroute' do? A) Displays the route packets take to a destination host B) Resolves domain names to IP addresses C) Checks the reachability of a host D) Monitors network traffic in real time Answer: A Explanation: 'traceroute' shows the path and delay of each hop along the route to a target host. Question 33. Which command provides a quick overview of active TCP and UDP connections? A) netstat - tun B) ss - tuln C) lsof - i D) All of the above

Exam

Answer: D Explanation: All listed commands can display active network connections; 'ss' is the modern, preferred utility. Question 34. Which tool is used to analyze captured packets in Wireshark's format? A) tshark B) tcpdump C) snort D) netcat Answer: A Explanation: 'tshark' is the command-line version of Wireshark, capable of parsing and analyzing packet captures. Question 35. Which command is used to display the current hostname of the system? A) hostname B) uname - n C) hostnamectl D) All of the above Answer: D Explanation: All three commands display the system's hostname, with 'hostnamectl' providing additional information on systems using systemd. Question 36. Which tool can be used to monitor CPU, memory, and network resource usage over time? A) collectd B) Nagios C) Cacti D) All of the above Answer: D

Exam

Question 40. Which command is used to generate a key pair for SSH with a specific key type? A) ssh-keygen - t rsa B) ssh-copy-id C) ssh-add D) ssh-agent Answer: A Explanation: 'ssh-keygen - t rsa' generates an RSA key pair; '-t' specifies the key type. Question 41. Which configuration file is used to set up client-side DNS resolver options in Linux? A) /etc/hosts B) /etc/resolv.conf C) /etc/nsswitch.conf D) /etc/resolve.conf Answer: B Explanation: '/etc/resolv.conf' defines DNS servers, search domains, and resolver options for clients. Question 42. Which command is used to check the current IP addresses assigned to the system's network interfaces? A) ip addr B) ifconfig C) hostname - I D) All of the above Answer: D Explanation: All three commands display IP address information of network interfaces. Question 43. Which tool can be used to simulate network traffic and test firewall rules? A) hping

Exam

B) netcat C) tcpdump D) traceroute Answer: A Explanation: 'hping3' can generate custom network packets for testing and simulating traffic. Question 44. In iptables, what is the default policy if no rules are matched? A) ACCEPT B) DROP C) REJECT D) It depends on the chain's default policy setting Answer: D Explanation: The default policy for each chain (INPUT, OUTPUT, FORWARD) is defined by its 'policy' setting; often ACCEPT or DROP. Question 45. Which command is used to add a new rule to iptables to accept traffic on port 80? A) iptables - A INPUT - p tcp --dport 80 - j ACCEPT B) iptables - I INPUT - p tcp --dport 80 - j ACCEPT C) iptables - A OUTPUT - p tcp --sport 80 - j ACCEPT D) Both A and B Answer: D Explanation: Both commands ('-A' to append, '-I' to insert at top) add rules to accept TCP traffic on port 80 in the INPUT chain. Question 46. Which component of nftables defines the set of rules applied to network traffic? A) Table B) Chain C) Rule D) Set

Exam

Question 50. Which tool can be used to perform port scanning to identify open services on a target host? A) nmap B) netcat C) telnet D) tcpdump Answer: A Explanation: 'nmap' is a versatile network scanner used to identify open ports and services on target systems. Question 51. Which command is used to display detailed information about network interfaces, including driver info and speed? A) ethtool B) ip link show C) ifconfig - a D) lshw - C network Answer: A Explanation: 'ethtool' provides detailed info about NICs, including link speed, duplex, and driver details. Question 52. Which command can be used to test DNS server responsiveness? A) dig @<dns-server> B) nslookup <dns-server> C) host <dns-server> D) All of the above Answer: D Explanation: All three commands can query specific DNS servers to test their responsiveness. Question 53. Which command displays the current routing table with more details than 'netstat'? A) ip route show

Exam

B) route - n C) ip rule show D) Both A and C Answer: D Explanation: 'ip route show' displays routing information; 'ip rule show' shows routing rules; both provide detailed info. Question 54. Which utility is used to schedule recurring tasks in Linux? A) cron B) systemd timers C) at D) All of the above Answer: D Explanation: 'cron', 'systemd timers', and 'at' are used for scheduling tasks; cron and timers are most common for recurring jobs. Question 55. What does the command 'journalctl' do? A) View systemd journal logs B) Check system uptime C) Display kernel modules D) Show active processes Answer: A Explanation: 'journalctl' displays logs collected by systemd's journal, including system and service logs. Question 56. Which command is used to restart the networking service on a systemd-based Linux distribution? A) systemctl restart NetworkManager B) systemctl restart networking C) service network restart

Exam

Explanation: '/etc/ssh/sshd_config' contains configuration options for the SSH daemon. Question 60. Which utility is used to generate a certificate signing request (CSR) for SSL/TLS certificates? A) openssl req B) certbot C) keytool D) gnutls-cli Answer: A Explanation: 'openssl req' is used to generate a CSR for obtaining SSL/TLS certificates. Question 61. Which command is used to test the reachability of a network host? A) ping B) traceroute C) mtr D) All of the above Answer: D Explanation: All three commands test reachability; 'ping' is most common for quick checks. Question 62. Which tool is used to monitor real-time network traffic and bandwidth usage? A) iftop B) nload C) iptraf-ng D) All of the above Answer: D Explanation: All listed tools provide real-time network traffic and bandwidth monitoring. Question 63. Which command shows the process ID and command line for processes listening on network sockets?

Exam

A) lsof - i B) ss - ltnp C) netstat - ltnp D) All of the above Answer: D Explanation: All these commands can display listening processes and associated PIDs. Question 64. Which command is used to check the current system clock time and timezone? A) date B) timedatectl C) hwclock D) All of the above Answer: D Explanation: 'date', 'timedatectl', and 'hwclock' provide current time and timezone information. Question 65. Which command is used to add a static route to the kernel routing table? A) ip route add via B) route add - net gw C) Both A and B D) route - A add Answer: C Explanation: Both 'ip route add' and 'route add' commands can add static routes. Question 66. Which command provides a detailed view of all active network sockets, including their associated processes? A) ss - ltnp B) netstat - tulnp C) lsof - i