LPIC-2 Exam 202

Here you have the best LPI 202-450 practice exam questions

  • You have 120 total questions across 24 pages (5 per page)
  • These questions were last updated on February 13, 2026
  • This site is not affiliated with or endorsed by LPI.
Question 1 of 120

On a Linux router, packet forwarding for IPv4 has been enabled. After a reboot, the machine no longer forwards IP packets from other hosts. The command: echo 1 > /proc/sys/net/ipv4/ip_forward temporarily resolves this issue.
Which one of the following options is the best way to ensure this setting is saved across system restarts?
Answer

Suggested Answer

The suggested answer is C.

To ensure that the setting is saved across system restarts on a Linux router, you need to make a persistent change in the system configuration files. Modifying /etc/sysctl.conf to include net.ipv4.ip_forward=1 is the correct approach, as this file is read and applied during system boot. This ensures that the packet forwarding setting persists across reboots.

Community Votes4 votes
CSuggested
100%
Question 2 of 120

What information can be found in the file specified by the status parameter in an OpenVPN server configuration file? (Choose two.)
Answer

Suggested Answer

The suggested answer is C, D.

The file specified by the status parameter in an OpenVPN server configuration file contains statistical information regarding the currently running OpenVPN daemon and a list of currently connected clients. This status file provides insights such as the number of bytes sent and received, the client connection duration, and the routing table used by the clients. Errors and warnings (option A) are typically found in the log file, not the status file. Routing information (option B) is relevant but is more specific to the data structures and operations internally handled by the OpenVPN process rather than what's explicitly written in the status file. A history of all clients who have connected (option E) would be stored in separate logs, not in the status file.

Community Votes

No votes yet

Join the discussion to cast yours

Question 3 of 120

Which of the following lines in the sshd configuration file should, if present, be changed in order to increase the security of the server? (Choose two.)
Answer

Suggested Answer

The suggested answer is A, D.

To increase the security of the server, you should change these lines in the sshd configuration file if they are present: 'Protocol 2, 1' and 'PermitRootLogin yes'. The line 'Protocol 2, 1' allows the use of SSH protocol version 1, which is known to have security vulnerabilities; it should be set to 'Protocol 2' to only use the more secure version. The line 'PermitRootLogin yes' allows the root user to log in directly, which poses a significant security risk; it should be changed to 'PermitRootLogin no' to require users to log in as a regular user and then switch to root using sudo or su.

Community Votes1 vote
ADSuggested
100%
Question 4 of 120

Which of the following nmap parameters scans a target for open TCP ports? (Choose two.)
Answer

Suggested Answer

The suggested answer is C, E.

The nmap parameters that scan a target for open TCP ports are -sT and -sS. The -sT option performs a TCP connect scan, while the -sS option performs a TCP SYN scan. Both of these options are used specifically to scan for open TCP ports. The other options, -sO, -sU, and -sZ, are used for different types of scans, such as IP protocol, UDP, and SCTP scans, respectively.

Community Votes7 votes
CESuggested
100%
Question 5 of 120

Which of the statements below are correct regarding the following commands, which are executed on a Linux router? (Choose two.)
Exam 202-450: Question 5 - Image 1
Answer

Suggested Answer

The suggested answer is A, D.

The ip6tables commands provided are intended to manipulate the forwarding of IPv6 packets on a Linux router. The first rule drops any packets with a source address in the fe80::/64 range, and the second rule drops packets with a destination address in the same range. These addresses are link-local addresses typically used for communication within a single network segment and are not routed across multiple segments. Therefore, packets with fe80::/64 addresses should not typically appear in the FORWARD chain, making it accurate to say that such packets will not occur in the FORWARD chain. Additionally, the ip6tables commands are syntactically correct and will execute without producing errors or warnings, confirming that both commands will complete without errors.

Community Votes4 votes
ADSuggested
100%

About the LPI 202-450 Certification Exam

About the Exam

The LPI 202-450 (LPIC-2 Exam 202) validates your knowledge and skills. Passing demonstrates proficiency and can boost your career prospects in the field.

How to Prepare

Work through all 120 practice questions across 24 pages. Focus on understanding the reasoning behind each answer rather than memorizing responses to be ready for any variation on the real exam.

Why Practice Exams?

Practice exams help you familiarize yourself with the question format, manage your time, and reduce anxiety on the test day. Our 202-450 questions are regularly updated to reflect the latest exam objectives.