Free LPI LPIC-1 102-500 practice questions

10 free LPI LPIC-1 102-500 practice questions with the correct answer and a full explanation for each, taken from the CertStash pack of 120 questions. Work through them, then open each answer to check your reasoning.

Question 1

Which of the following is a valid IPv6 address?

  1. 2001:db8:0g21::1
  2. 2001::db8:4581::1
  3. 2001:db8:3241::1
  4. 2001%db8%9990%%1
  5. 2001.db8.819f..1
Show answer and explanation

Correct answer: C. 2001:db8:3241::1

2001:db8:3241::1 is a valid IPv6 address using proper hexadecimal notation (0-9, a-f) and the :: compression for consecutive zero groups. Option A contains 'g' which is not a valid hexadecimal character. Option B uses :: twice which violates IPv6 compression rules. Option D uses % delimiters instead of colons. Option E uses dots and contains consecutive dots instead of proper IPv6 notation.

Why the other options are wrong

  • A. Contains the character 'g' which is not valid in hexadecimal notation.
  • B. Uses the :: compression twice, which is not permitted in IPv6 addresses.
  • D. Uses percent signs (%) instead of colons as separators.
  • E. Uses dots instead of colons and has malformed consecutive dots.

Question 2

Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?

  1. dnsq
  2. hostname
  3. dig
  4. dnslookup
  5. zoneinfo ✅Correct Answer: C, dig dig (Domain Information Groper) is the standard DNS debugging tool that reports both the query it sent and the response received from the name server, including query flags, response codes, and authoritative answers. hostname only prints the system hostname. dnsq, dnslookup and zoneinfo are not standard DNS utilities; the classic resolver tool is nslookup, which shows far less detail.
Show answer and explanation

Answer and explanation for question 2

Question 3

Which of the following statements is valid in the file /etc/nsswitch.conf?

  1. multi on
  2. 192.168.168.4 dns-server
  3. namespaces: net mount procs
  4. include /etc/nsswitch.d/
  5. hosts: files dns
Show answer and explanation

Correct answer: E. hosts: files dns

The line 'hosts: files dns' is a valid nsswitch.conf statement that specifies the order in which name resolution sources are consulted for hostname lookups (first files, then DNS). Option A uses invalid syntax. Option B mixes IP addresses with DNS configuration incorrectly. Option C uses invalid namespace declaration. Option D attempts to include a directory which is not a valid nsswitch.conf feature.

Why the other options are wrong

  • A. "multi on" is not valid syntax in nsswitch.conf.
  • B. IP addresses cannot be specified this way in nsswitch.conf for DNS servers.
  • C. The "namespaces:" statement with this syntax is not valid in nsswitch.conf.
  • D. nsswitch.conf does not support directory inclusion via the include directive.

Question 4

Which of the following connection types, as seen in nmcli connection show, may exist in NetworkManager? (Choose three.)

  1. tcp
  2. ethernet
  3. wifi
  4. ipv6
  5. bridge
Show answer and explanation

Correct answer: B, C, E

B. ethernet C. wifi E. bridge NetworkManager supports ethernet (wired connections), wifi (wireless connections), and bridge (virtual bridge connections) as connection types. These are all recognized connection types visible in nmcli connection show output. tcp is a transport protocol rather than a connection type in NetworkManager. ipv6 is an IP protocol version, not a connection type.

Why the other options are wrong

  • A. TCP is a transport layer protocol, not a NetworkManager connection type.
  • D. IPv6 is a protocol version, not a NetworkManager connection type in the sense of connection media.

Question 5

On a Linux workstation, the route command takes a long time before printing out the routing table.

Which of the following errors does that indicate?

  1. The local routing information may be corrupted and must be re-validated using a routing protocol.
  2. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARFD) to wait for a timeout.
  3. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default.
  4. The Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init script or systemd unit.
  5. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
Show answer and explanation

Correct answer: E. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.

The route command displays a delay when DNS resolution is not working properly because it attempts to resolve hostnames of routers and destinations by default, causing timeouts when DNS queries fail. The other options describe non-existent mechanisms or incorrect troubleshooting approaches for this symptom.

Why the other options are wrong

  • A. Automatic route re-validation is not a standard Linux feature that would cause this delay.
  • B. ARFD (Automatic Router Failure Detection) is not a standard Linux kernel mechanism.
  • C. Default router election is not an automatic workstation-level feature in this manner.
  • D. The Linux Kernel Routing Daemon (LKRD) is not a real daemon; delay is not caused by missing routing daemons.

Question 6

What is true about the Hop Limit field in the IPv6 header?

  1. The field is not changed during the transport of a package.
  2. The field is transmitted within a hop-by-hop extension header.
  3. Each router forwarding the packet increases the field's value.
  4. Each router forwarding the packet decreases the field's value.
  5. For multicast packages, the field's value is always 1.
Show answer and explanation

Correct answer: D. Each router forwarding the packet decreases the field's value.

The Hop Limit field in the IPv6 header is decremented by one at each router that forwards the packet, similar to the TTL field in IPv4. This prevents packets from circulating indefinitely in the network. The field is a regular part of the main IPv6 header, not an extension header, and is changed during transport.

Why the other options are wrong

  • A. The Hop Limit field is actively modified (decremented) during packet transport.
  • B. The Hop Limit is part of the main IPv6 header, not a hop-by-hop extension header.
  • C. Each router decreases the field, not increases it.
  • E. Multicast packets do not have special Hop Limit restrictions; the field can have various values.

Question 7

Which of the following nmcli subcommands exist? (Choose two.)

  1. nmcli ethernet
  2. nmcli device
  3. nmcli wifi
  4. nmcli address
  5. nmcli connection
Show answer and explanation

Correct answer: B, E

B. nmcli device E. nmcli connection nmcli device and nmcli connection are valid subcommands in NetworkManager's command-line interface. device manages network devices while connection manages connection profiles. ethernet, wifi, and address are not primary nmcli subcommands at the top level.

Why the other options are wrong

  • A. nmcli ethernet is not a valid subcommand; device is used to manage ethernet interfaces.
  • C. nmcli wifi is not a valid subcommand; device is used to manage wifi connections.
  • D. nmcli address is not a valid subcommand for managing IP addresses.

Question 8

Which of the following changes may occur as a consequence of using the command ip? (Choose three.)

  1. Network interfaces may become active or inactive.
  2. New name servers may be added to the resolver configuration.
  3. The system's host name may change.
  4. IP addresses may change.
  5. The routing table may change.
Show answer and explanation

Correct answer: A, D, E

A. Network interfaces may become active or inactive. D. IP addresses may change. E. The routing table may change. The ip command can activate or deactivate network interfaces, modify IP addresses, and change the routing table. These are its primary use cases for dynamic network configuration. The ip command does not modify the resolver configuration (nameservers in resolv.conf) or change the system hostname; these require other tools.

Why the other options are wrong

  • B. The ip command does not modify resolver configuration or add nameservers to /etc/resolv.conf.
  • C. The ip command cannot change the system hostname; the hostname command or hostnamectl is used for that.

Question 9

How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?

  1. 6
  2. 14
  3. 30
  4. 62
  5. 126
Show answer and explanation

Correct answer: D. 62

A /26 subnet has 26 bits for the network and 32-26=6 bits for hosts. With 6 host bits, there are 2^6=64 total addresses. Subtracting 2 addresses (network and broadcast), 64-2=62 usable host addresses remain.

Why the other options are wrong

  • A. 6 is the number of host bits, not usable addresses.
  • B. 14 would result from a /28 subnet, not /26.
  • C. 30 is the usable count for a /27 subnet.
  • E. 126 is the usable count for a /25 subnet.

Question 10

Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose three.)

  1. 10.0.0.0/8
  2. 127.0.0.0/8
  3. 169.255.0.0/16
  4. 172.16.0.0/12
  5. 192.168.0.0/16
Show answer and explanation

Correct answer: A, D, E

A. 10.0.0.0/8 D. 172.16.0.0/12 E. 192.168.0.0/16 IANA reserves three ranges for private use: 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16 as defined in RFC 1918. These are used for internal networks that do not route on the public Internet.

Why the other options are wrong

  • B. 127.0.0.0/8 is the loopback range, not a private address range for general use.
  • C. 169.255.0.0/16 is not a valid IANA-reserved private range; 169.254.0.0/16 is lin-ocal.

That was 10 of 120.

The full LPI LPIC-1 102-500 pack has all 120 questions, each with the answer, the explanation and why the other options are wrong, plus a questions-only copy for timed runs. US$39, paid once, with free monthly updates and a pass-or-your-money-back guarantee.

Get the full pack