LPI 102-500 Exam Practice Questions (P. 2)
- Full Access (120 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Which of the following statements is valid in the file /etc/nsswitch.conf?
- Amulti on
- B192.168.168.4 dns-server
- Cnamespaces: net mount procs
- Dinclude /etc/nsswitch.d/
- Ehosts: files dnsMost Voted
Correct Answer:
E
E

The correct statement for the file /etc/nsswitch.conf is 'hosts: files dns' as it accurately describes how the system should first use local files and then use DNS for hostname resolution. This setup is key for defining name service switch behavior in Unix-like systems, guiding the system on how to proceed with network services when querying for various types of data.
send
light_mode
delete
Question #7
Which of the following connection types, as seen in nmcli connection show, may exist in NetworkManager? (Choose three.)
- Atcp
- BethernetMost Voted
- CwifiMost Voted
- Dipv6
- EbridgeMost Voted
Correct Answer:
BCE
BCE

The correct choices, B, C, and E, directly correspond to valid connection types managed by NetworkManager, which are ethernet, wifi, and bridge respectively. This is consistent with the options available in the NetworkManager to administer network connections. While IPv6 is supported in NetworkManager, it's not listed as a connection type like 'ip4' or 'ip6'; rather, it is a protocol specification under IP configuration options. The command 'nmcli device show' indeed displays active connections and types like wifi when connected, thus confirming the inclusion of ethereum, wifi, and bridge as correct options.
send
light_mode
delete
Question #8
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?
- AThe local routing information may be corrupted and must be re-validated using a routing protocol.
- BOne of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout.
- CThere 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.
- DThe Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init script or systemd unit.
- EDNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
Correct Answer:
E
E

When the `route` command takes an unusually long time to generate the routing table, it's typically due to DNS resolution issues. This happens because `route` attempts to resolve IP addresses to hostnames by default, which can significantly slow down the process if DNS is not functioning correctly or if the DNS servers are experiencing delays. To avoid this, using the `-n` option with the `route` command can disable this name resolution, leading to faster output. This insight aligns with understanding common DNS-related delays in network commands.
send
light_mode
delete
Question #9
What is true about the Hop Limit field in the IPv6 header?
- AThe field is not changed during the transport of a package.
- BThe field is transmitted within a hop-by-hop extension header.
- CEach router forwarding the packet increases the field's value.
- DEach router forwarding the packet decreases the field's value.
- EFor multicast packages, the field's value is always 1.
Correct Answer:
D
D

The Hop Limit field in IPv6 functions similarly to the Time to Live (TTL) field in IPv4, designed to prevent packets from endlessly circulating the network. As each router encounters the packet, it decrements the Hop Limit by one. This decrement happens to ensure packets do not loop indefinitely in the network, which could potentially lead to network congestion or crashes. The packet is discarded when this value reaches zero, thereby controlling the lifespan of data packets in the network environment. Thus, option D is accurate as it states that each router forwarding the packet decreases the field's value.
send
light_mode
delete
Question #10
Which of the following nmcli subcommands exist? (Choose two.)
- Anmcli ethernet
- Bnmcli deviceMost Voted
- Cnmcli wifi
- Dnmcli address
- Enmcli connectionMost Voted
Correct Answer:
BE
BE

B) 'nmcli device' and E) 'nmcli connection' are indeed the correct choices among the listed nmcli subcommands. The command 'nmcli device' provides control and status information on network devices, while 'nmcli connection' is used for managing network connections such as creating, modifying, and deleting them. These subcommands are essential for network management in environments using NetworkManager, commonly found in many Linux distributions.
send
light_mode
delete
All Pages