Question 490
The engineer proposes this implementation: Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. The requirement is: A host must consult local files before DNS for resolving service hostnames. Which technical explanation best supports the proposed action?
- The hosts database provides explicit local name-to-address mappings consulted by the resolver per NSS order.
- Name Service Switch controls source precedence independent of the contents of resolv.conf.
- NetworkManager commonly manages resolver settings and may regenerate /etc/resolv.conf from profile data.
- systemd-networkd reads .network units for interfaces it manages; NetworkManager profile changes may not affect such a host.
Explanation
Correct Answer
B:Name Service Switch controls source precedence independent of the contents of resolv.conf. It specifically supports the proposed action of Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Add the entry in /etc/hosts and confirm the hosts source precedes DNS in nsswitch.conf., where The hosts database provides explicit local name-to-address mappings consulted by the resolver per NSS order. It does not explain why Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. satisfies the stated condition.
C:This explains another Linux operation, namely Set ipv4.dns on the appropriate NetworkManager connection profile and reactivate it., where NetworkManager commonly manages resolver settings and may regenerate /etc/resolv.conf from profile data. It does not explain why Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. satisfies the stated condition.
D:This explains another Linux operation, namely Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd., where systemd-networkd reads .network units for interfaces it manages; NetworkManager profile changes may not affect such a host. It does not explain why Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. satisfies the stated condition.
Question 491
The action Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. was applied for this goal: A host must consult local files before DNS for resolving service hostnames. Which observation provides the most direct acceptance evidence?
- After reconnect, the resolver query uses the intended DNS server and persists across restart.
- networkctl status reports the intended address/gateway on the managed interface after restart.
- getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer.
- The workstation reconnects automatically to the authorized SSID after reboot.
Explanation
Correct Answer
C:getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer. This checks the effect of Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. against the stated operational goal.
Incorrect Answers
A:That observation checks A corporate client must send DNS queries to a new resolver persistently under NetworkManager. In this scenario it does not demonstrate Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate.; the relevant evidence must establish getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer.
B:That observation checks A small host uses systemd-networkd, not NetworkManager, for its persistent wired network configuration. In this scenario it does not demonstrate Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate.; the relevant evidence must establish getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer.
D:That observation checks A workstation Wi-Fi profile must join a secured SSID automatically after reboot. In this scenario it does not demonstrate Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate.; the relevant evidence must establish getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer.
Question 492
A team is validating its implementation of this requirement: A host must consult local files before DNS for resolving service hostnames. Which observed mistake most specifically identifies that the intended persistent network configuration behavior has NOT been met?
- A temporary hostname command succeeds but the name reverts after reboot.
- Editing generated /etc/resolv.conf is overwritten when NetworkManager reactivates the connection.
- The operator edits an inactive duplicate profile while the active one retains wrong settings.
- NSS is configured dns files and unexpectedly ignores the desired local override.
Explanation
Correct Answer
D:NSS is configured dns files and unexpectedly ignores the desired local override. This shows the requested behavior is absent, so the deployment needs the correction: Set hosts: files dns in nsswitch.conf subject to system resolver policy.
Incorrect Answers
A:That symptom concerns The system's static hostname must survive reboot and be reported consistently to utilities. This concerns a separate requirement, not the one being tested. The relevant failure is NSS is configured dns files and unexpectedly ignores the desired local override. The current requirement calls for a different check.
B:That symptom concerns A corporate client must send DNS queries to a new resolver persistently under NetworkManager. This concerns a separate requirement, not the one being tested. The relevant failure is NSS is configured dns files and unexpectedly ignores the desired local override. The current requirement calls for a different check.
C:That symptom concerns An operator needs to inspect all NetworkManager connection profiles and identify which one is active. This concerns a separate requirement, not the one being tested. The relevant failure is NSS is configured dns files and unexpectedly ignores the desired local override. The current requirement calls for a different check.
Question 493
During validation, this problem was found: NSS is configured dns files and unexpectedly ignores the desired local override. The original goal was: A host must consult local files before DNS for resolving service hostnames. Which targeted correction best resolves it?
- Set hosts: files dns in nsswitch.conf subject to system resolver policy.
- Configure the search domain on the persistent network profile and verify expansion.
- Change the managed connection DNS setting instead of an ephemeral generated resolver file.
- Persist the hostname through hostnamectl or the distribution's hostname configuration.
Explanation
Correct Answer
A:Set hosts: files dns in nsswitch.conf subject to system resolver policy. It directly addresses the observed symptom: NSS is configured dns files and unexpectedly ignores the desired local override. The relevant mechanism is Name Service Switch controls source precedence independent of the contents of resolv.conf.
Incorrect Answers
B:This fix is aimed at The configured DNS server is reachable but a short hostname fails without its expected search suffix. and would be relevant if A machine must use a stable DNS search domain for unqualified internal hostnames under NetworkManager. The incident instead states NSS is configured dns files and unexpectedly ignores the desired local override. and needs Set hosts: files dns in nsswitch.conf subject to system resolver policy.
C:This fix is aimed at Editing generated /etc/resolv.conf is overwritten when NetworkManager reactivates the connection. and would be relevant if A corporate client must send DNS queries to a new resolver persistently under NetworkManager. The incident instead states NSS is configured dns files and unexpectedly ignores the desired local override. and needs Set hosts: files dns in nsswitch.conf subject to system resolver policy.
D:This fix is aimed at A temporary hostname command succeeds but the name reverts after reboot. and would be relevant if The system's static hostname must survive reboot and be reported consistently to utilities. The incident instead states NSS is configured dns files and unexpectedly ignores the desired local override. and needs Set hosts: files dns in nsswitch.conf subject to system resolver policy.
Question 494
A Linux administrator faces this requirement: An operator needs to inspect all NetworkManager connection profiles and identify which one is active. Which specific action is the best direct solution?
- Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate.
- Run nmcli connection show --active and compare with nmcli connection show.
- Set ipv4.method manual with address/gateway using nmcli connection modify on the correct connection, then activate it.
- Add the entry in /etc/hosts and confirm the hosts source precedes DNS in nsswitch.conf.
Explanation
Correct Answer
B:Run nmcli connection show --active and compare with nmcli connection show. The mechanism is: The active-only view lists activated profiles, which can differ from saved profiles on the system.
Incorrect Answers
A:Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate. That operation is designed for the different case: A host must consult local files before DNS for resolving service hostnames. It does not perform the specific action required here: Run nmcli connection show --active and compare with nmcli connection show.
C:Set ipv4.method manual with address/gateway using nmcli connection modify on the correct connection, then activate it. That operation is designed for the different case: A NetworkManager-managed Ethernet connection must retain its static IPv4 address after restart. It does not perform the specific action required here: Run nmcli connection show --active and compare with nmcli connection show.
D:Add the entry in /etc/hosts and confirm the hosts source precedes DNS in nsswitch.conf. That operation is designed for the different case: A local application must resolve a special test hostname to a fixed IP before public DNS lookup according to host resolution policy. It does not perform the specific action required here: Run nmcli connection show --active and compare with nmcli connection show.
Question 495
The engineer proposes this implementation: Run nmcli connection show --active and compare with nmcli connection show. The requirement is: An operator needs to inspect all NetworkManager connection profiles and identify which one is active. Which technical explanation best supports the proposed action?
- Name Service Switch controls source precedence independent of the contents of resolv.conf.
- NetworkManager can persist wireless credentials and connection autostart separately from transient scans.
- The active-only view lists activated profiles, which can differ from saved profiles on the system.
- The hosts database provides explicit local name-to-address mappings consulted by the resolver per NSS order.
Explanation
Correct Answer
C:The active-only view lists activated profiles, which can differ from saved profiles on the system. It specifically supports the proposed action of Run nmcli connection show --active and compare with nmcli connection show. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate., where Name Service Switch controls source precedence independent of the contents of resolv.conf. It does not explain why Run nmcli connection show --active and compare with nmcli connection show. satisfies the stated condition.
B:This explains another Linux operation, namely Configure a NetworkManager Wi-Fi connection with the correct SSID, security and autoconnect properties., where NetworkManager can persist wireless credentials and connection autostart separately from transient scans. It does not explain why Run nmcli connection show --active and compare with nmcli connection show. satisfies the stated condition.
D:This explains another Linux operation, namely Add the entry in /etc/hosts and confirm the hosts source precedes DNS in nsswitch.conf., where The hosts database provides explicit local name-to-address mappings consulted by the resolver per NSS order. It does not explain why Run nmcli connection show --active and compare with nmcli connection show. satisfies the stated condition.
Question 496
The action Run nmcli connection show --active and compare with nmcli connection show. was applied for this goal: An operator needs to inspect all NetworkManager connection profiles and identify which one is active. Which observation provides the most direct acceptance evidence?
- The intended profile becomes active at boot, with the expected IP and gateway.
- getent hosts shortname resolves as the intended fully qualified internal name after reconnect.
- getent hosts resolves a test entry from /etc/hosts in preference to a conflicting DNS answer.
- The intended profile appears active for the correct device; stale saved profiles are distinguishable.
Explanation
Correct Answer
D:The intended profile appears active for the correct device; stale saved profiles are distinguishable. This checks the effect of Run nmcli connection show --active and compare with nmcli connection show. against the stated operational goal.
Incorrect Answers
A:That observation checks A network interface has two saved profiles with different IPv4 settings; production uses the wrong profile on boot. In this scenario it does not demonstrate Run nmcli connection show --active and compare with nmcli connection show.; the relevant evidence must establish The intended profile appears active for the correct device; stale saved profiles are distinguishable.
B:That observation checks A machine must use a stable DNS search domain for unqualified internal hostnames under NetworkManager. In this scenario it does not demonstrate Run nmcli connection show --active and compare with nmcli connection show.; the relevant evidence must establish The intended profile appears active for the correct device; stale saved profiles are distinguishable.
C:That observation checks A host must consult local files before DNS for resolving service hostnames. In this scenario it does not demonstrate Run nmcli connection show --active and compare with nmcli connection show.; the relevant evidence must establish The intended profile appears active for the correct device; stale saved profiles are distinguishable.
Question 497
A team is validating its implementation of this requirement: An operator needs to inspect all NetworkManager connection profiles and identify which one is active. Which observed mistake most specifically identifies that the intended persistent network configuration behavior has NOT been met?
- The operator edits an inactive duplicate profile while the active one retains wrong settings.
- A temporary hostname command succeeds but the name reverts after reboot.
- A resolv.conf nameserver was changed but the required local override is absent.
- An ip addr add command changes only the running interface and disappears at reconnect.
Explanation
Correct Answer
A:The operator edits an inactive duplicate profile while the active one retains wrong settings. This shows the requested behavior is absent, so the deployment needs the correction: Identify the active connection profile and modify that specific entry.
Incorrect Answers
B:That symptom concerns The system's static hostname must survive reboot and be reported consistently to utilities. This concerns a separate requirement, not the one being tested. The relevant failure is The operator edits an inactive duplicate profile while the active one retains wrong settings. The current requirement calls for a different check.
C:That symptom concerns A local application must resolve a special test hostname to a fixed IP before public DNS lookup according to host resolution policy. This concerns a separate requirement, not the one being tested. The relevant failure is The operator edits an inactive duplicate profile while the active one retains wrong settings. The current requirement calls for a different check.
D:That symptom concerns A NetworkManager-managed Ethernet connection must retain its static IPv4 address after restart. This concerns a separate requirement, not the one being tested. The relevant failure is The operator edits an inactive duplicate profile while the active one retains wrong settings. The current requirement calls for a different check.
Question 498
During validation, this problem was found: The operator edits an inactive duplicate profile while the active one retains wrong settings. The original goal was: An operator needs to inspect all NetworkManager connection profiles and identify which one is active. Which targeted correction best resolves it?
- Set hosts: files dns in nsswitch.conf subject to system resolver policy.
- Identify the active connection profile and modify that specific entry.
- Change the managed connection DNS setting instead of an ephemeral generated resolver file.
- Edit the systemd-networkd unit for the matching interface and apply it safely.
Explanation
Correct Answer
B:Identify the active connection profile and modify that specific entry. It directly addresses the observed symptom: The operator edits an inactive duplicate profile while the active one retains wrong settings. The relevant mechanism is The active-only view lists activated profiles, which can differ from saved profiles on the system.
Incorrect Answers
A:This fix is aimed at NSS is configured dns files and unexpectedly ignores the desired local override. and would be relevant if A host must consult local files before DNS for resolving service hostnames. The incident instead states The operator edits an inactive duplicate profile while the active one retains wrong settings. and needs Identify the active connection profile and modify that specific entry.
C:This fix is aimed at Editing generated /etc/resolv.conf is overwritten when NetworkManager reactivates the connection. and would be relevant if A corporate client must send DNS queries to a new resolver persistently under NetworkManager. The incident instead states The operator edits an inactive duplicate profile while the active one retains wrong settings. and needs Identify the active connection profile and modify that specific entry.
D:This fix is aimed at An nmcli command edits a nonexistent or unmanaged profile, leaving the interface unchanged. and would be relevant if A small host uses systemd-networkd, not NetworkManager, for its persistent wired network configuration. The incident instead states The operator edits an inactive duplicate profile while the active one retains wrong settings. and needs Identify the active connection profile and modify that specific entry.
Question 499
A Linux administrator faces this requirement: A small host uses systemd-networkd, not NetworkManager, for its persistent wired network configuration. Which specific action is the best direct solution?
- Set ipv4.dns-search for the correct connection profile and validate resolver behavior.
- Configure a NetworkManager Wi-Fi connection with the correct SSID, security and autoconnect properties.
- Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd.
- Adjust the correct NetworkManager connection's autoconnect behavior and priority, then activate it.
Explanation
Correct Answer
C:Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. The mechanism is: systemd-networkd reads .network units for interfaces it manages; NetworkManager profile changes may not affect such a host.
Incorrect Answers
A:Set ipv4.dns-search for the correct connection profile and validate resolver behavior. That operation is designed for the different case: A machine must use a stable DNS search domain for unqualified internal hostnames under NetworkManager. It does not perform the specific action required here: Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd.
B:Configure a NetworkManager Wi-Fi connection with the correct SSID, security and autoconnect properties. That operation is designed for the different case: A workstation Wi-Fi profile must join a secured SSID automatically after reboot. It does not perform the specific action required here: Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd.
D:Adjust the correct NetworkManager connection's autoconnect behavior and priority, then activate it. That operation is designed for the different case: A network interface has two saved profiles with different IPv4 settings; production uses the wrong profile on boot. It does not perform the specific action required here: Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd.
Question 500
The engineer proposes this implementation: Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. The requirement is: A small host uses systemd-networkd, not NetworkManager, for its persistent wired network configuration. Which technical explanation best supports the proposed action?
- hostnamectl persists the configured static hostname while the hostname shell command can display or set transient state.
- Name Service Switch controls source precedence independent of the contents of resolv.conf.
- The active-only view lists activated profiles, which can differ from saved profiles on the system.
- systemd-networkd reads .network units for interfaces it manages; NetworkManager profile changes may not affect such a host.
Explanation
Correct Answer
D:systemd-networkd reads .network units for interfaces it manages; NetworkManager profile changes may not affect such a host. It specifically supports the proposed action of Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. for the requirement described.
Incorrect Answers
A:This explains another Linux operation, namely Use hostnamectl set-hostname newname on a systemd host., where hostnamectl persists the configured static hostname while the hostname shell command can display or set transient state. It does not explain why Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. satisfies the stated condition.
B:This explains another Linux operation, namely Ensure the hosts line in /etc/nsswitch.conf orders files before dns as appropriate., where Name Service Switch controls source precedence independent of the contents of resolv.conf. It does not explain why Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. satisfies the stated condition.
C:This explains another Linux operation, namely Run nmcli connection show --active and compare with nmcli connection show., where The active-only view lists activated profiles, which can differ from saved profiles on the system. It does not explain why Configure a matching .network file under /etc/systemd/network/ and reload/reconfigure systemd-networkd. satisfies the stated condition.
LPI Level 1 (102-500) Practice Tests