100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 810
An administrator stops a server's .service unit, but its TCP port remains bound by systemd and the service restarts on a connection. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?
- Treat service units and socket units as separate controls when reducing attack surface.
- Disable and stop the corresponding socket unit as well as the service when decommissioning it.
- Inspect systemctl list-sockets and attempt the connection after applying the policy.
- Use unique protected keys per identity and device and revoke lost keys promptly.
- Compare w with who and confirm the intended sessions are present.
- Install the approved public key in the intended user's ~/.ssh/authorized_keys with secure ownership and permissions.
Explanation
Correct Answers
A:Treat service units and socket units as separate controls when reducing attack surface. This control detects or prevents the same mechanism before another incident.
B:Disable and stop the corresponding socket unit as well as the service when decommissioning it. It addresses the root cause, while Treat service units and socket units as separate controls when reducing attack surface. reduces future recurrence.
C:Inspect systemctl list-sockets and attempt the connection after applying the policy. The test is evidence-based because the underlying failure was: A separate systemd .socket unit can listen and activate its associated service on demand.
Incorrect Answers
D:This option assumes A private key without a protective passphrase increases exposure if its file is stolen. The reported symptoms instead call for: Disable and stop the corresponding socket unit as well as the service when decommissioning it.
E:The test for inspect current logged-in commands would be: Compare w with who and confirm the intended sessions are present. The relevant acceptance check here is: Inspect systemctl list-sockets and attempt the connection after applying the policy.
F:Install the approved public key in the intended user's ~/.ssh/authorized_keys with secure ownership and permissions. could help with user authorized ssh key; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Inspect systemctl list-sockets and attempt the connection after applying the policy.
Question 811
A maintenance window requires ordinary users to be prevented from new non-root logins while administrators finish repairs. Which mechanism best explains the difference between expectation and result?
- Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document.
- A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
- Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
- A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
Explanation
Correct Answer
B:A system's login policy can use /etc/nologin to reject standard logins on supporting login services. The administrator should distinguish this from unrelated symptoms by checking: Attempt a test non-root login and confirm rejection plus the displayed notice.
Incorrect Answers
A:Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document. could help with gpg sign versus encrypt; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Attempt a test non-root login and confirm rejection plus the displayed notice.
C:This belongs to edit sudo policy safely, where Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky. The current issue instead is: A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
D:This option assumes A local SSH tunnel maps a local listening port to a host and port from the SSH server side. The reported symptoms instead call for: Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
Question 812
A maintenance window requires ordinary users to be prevented from new non-root logins while administrators finish repairs. Which change most directly meets the stated requirement?
- Review last or equivalent retained authentication logs for historical sessions.
- Run an authorized nmap scan from the designated assessment subnet against the approved target.
- Use an approved ssh -R forwarding rule with restricted bind address and port.
- Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
Explanation
Correct Answer
D:Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path. Unlike a broad workaround, it targets the observed cause: A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
Incorrect Answers
A:It would address previous login attribution rather than the present problem. The appropriate correction here is: Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
B:Run an authorized nmap scan from the designated assessment subnet against the approved target. belongs to a situation where Local listening state does not account for intervening host firewalls or network ACLs. Here the evidence supports a different requirement: Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
C:Use an approved ssh -R forwarding rule with restricted bind address and port. could help with remote forwarding for support callback; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Attempt a test non-root login and confirm rejection plus the displayed notice.
Question 813
A maintenance window requires ordinary users to be prevented from new non-root logins while administrators finish repairs. What focused test would distinguish a real correction from a cosmetic change?
- Use the recipient's private key in a controlled test to decrypt and compare the recovered archive.
- Compare the permitted command list to the requested restart task without running a destructive command.
- Attempt a test non-root login and confirm rejection plus the displayed notice.
- Use ssh -v to inspect the authentication attempt and verify which server account is selected.
Explanation
Correct Answer
C:Attempt a test non-root login and confirm rejection plus the displayed notice. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
Incorrect Answers
A:Use the recipient's private key in a controlled test to decrypt and compare the recovered archive. could help with gpg recipient encryption; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Attempt a test non-root login and confirm rejection plus the displayed notice.
B:The test for inspect effective sudo privilege would be: Compare the permitted command list to the requested restart task without running a destructive command. The relevant acceptance check here is: Attempt a test non-root login and confirm rejection plus the displayed notice.
D:Use ssh -v to inspect the authentication attempt and verify which server account is selected. belongs to a situation where The matching public key must be authorized for that server account and file permissions must permit sshd to read it securely. Here the evidence supports a different requirement: Attempt a test non-root login and confirm rejection plus the displayed notice.
Question 814
A maintenance window requires ordinary users to be prevented from new non-root logins while administrators finish repairs. What operational safeguard addresses the root cause?
- Remove maintenance login blocks promptly and test PAM service behavior.
- Audit effective privilege grants rather than relying on role names alone.
- Restrict remote forwards and disable temporary tunnels after use.
- Manage server host-key rotation with identity verification rather than disabling checking.
Explanation
Correct Answer
A:Remove maintenance login blocks promptly and test PAM service behavior. It makes the outcome of the targeted repair (Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.) repeatable.
Incorrect Answers
B:Audit effective privilege grants rather than relying on role names alone. could help with inspect effective sudo privilege; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Attempt a test non-root login and confirm rejection plus the displayed notice.
C:This belongs to remote forwarding for support callback, where Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service. The current issue instead is: A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
D:The test for ssh host identity mismatch would be: Compare the server's trusted host-key fingerprint with the client warning before accepting it. The relevant acceptance check here is: Attempt a test non-root login and confirm rejection plus the displayed notice.
Question 815
A maintenance window requires ordinary users to be prevented from new non-root logins while administrators finish repairs. Which TWO measures belong together as the direct correction and a discriminating verification? Select TWO.
- Restrict remote forwards and disable temporary tunnels after use.
- Verify the detached signature using gpg --verify and the independently trusted signer key.
- Attempt a test non-root login and confirm rejection plus the displayed notice.
- Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
- Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
Explanation
Correct Answers
C:Attempt a test non-root login and confirm rejection plus the displayed notice. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
E:Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path. Unlike a broad workaround, it targets the observed cause: A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
Incorrect Answers
A:The test for remote forwarding for support callback would be: Connect from the allowed bastion-side client and confirm traffic reaches the local development service. The relevant acceptance check here is: Attempt a test non-root login and confirm rejection plus the displayed notice.
B:It would address gpg sign versus encrypt rather than the present problem. The appropriate correction here is: Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
D:This option assumes A local SSH tunnel maps a local listening port to a host and port from the SSH server side. The reported symptoms instead call for: Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
Question 816
A modern Linux service ignores /etc/hosts.deny even though the operator expects that file to block all unwanted clients. What underlying Linux behavior should the administrator identify first?
- A private key without a protective passphrase increases exposure if its file is stolen.
- Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
- TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
- Historical login tools alone do not enumerate current session commands and idle times.
Explanation
Correct Answer
C:TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall. A good follow-up is to test this explanation through: Test access from an allowed and denied client while observing the active enforcement mechanism.
Incorrect Answers
A:It would address passphrase-protected key generation rather than the present problem. The appropriate correction here is: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
B:That choice responds to a edit sudo policy safely failure. In this incident, TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
D:This option assumes Historical login tools alone do not enumerate current session commands and idle times. The reported symptoms instead call for: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
Question 817
A modern Linux service ignores /etc/hosts.deny even though the operator expects that file to block all unwanted clients. Which intervention addresses the specific problem with the least unrelated change?
- Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
- Use w to inspect current users, TTYs, idle times and active commands.
- Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.
Explanation
Correct Answer
A:Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls. The change should be accepted only after this test: Test access from an allowed and denied client while observing the active enforcement mechanism.
Incorrect Answers
B:It would address search unexpected setuid files rather than the present problem. The appropriate correction here is: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
C:It would address inspect current logged-in commands rather than the present problem. The appropriate correction here is: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
D:Use ss -ltnp or lsof -i under appropriate privileges to identify the listener. belongs to a situation where The listening port may belong to an active local process rather than a stale firewall rule. Here the evidence supports a different requirement: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
Question 818
A modern Linux service ignores /etc/hosts.deny even though the operator expects that file to block all unwanted clients. How should the administrator verify the required behavior?
- Correlate PID, executable and service unit with the observed bound address and port.
- Test access from an allowed and denied client while observing the active enforcement mechanism.
- Use the recipient's private key in a controlled test to decrypt and compare the recovered archive.
- Inspect each candidate with ls -l or stat and compare with an approved package baseline.
Explanation
Correct Answer
B:Test access from an allowed and denied client while observing the active enforcement mechanism. This measures the specific result of applying: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
Incorrect Answers
A:Correlate PID, executable and service unit with the observed bound address and port. could help with find process owning tcp listener; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Test access from an allowed and denied client while observing the active enforcement mechanism.
C:It would address gpg recipient encryption rather than the present problem. The appropriate correction here is: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
D:That choice responds to a search unexpected setuid files failure. In this incident, TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
Question 819
A modern Linux service ignores /etc/hosts.deny even though the operator expects that file to block all unwanted clients. Which repeatable check would reduce recurrence?
- Use controlled session visibility during incident triage while honoring privacy policy.
- Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host.
- Document legacy TCP-wrapper limitations and migrate network policy to supported controls.
- Set and review sudo authentication-cache policy for sensitive shared administrative consoles.
Explanation
Correct Answer
C:Document legacy TCP-wrapper limitations and migrate network policy to supported controls. Sustained checks matter because TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
Incorrect Answers
A:Historical login tools alone do not enumerate current session commands and idle times. That describes a different fault. Here, TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
B:This option assumes Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active. The reported symptoms instead call for: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
D:Set and review sudo authentication-cache policy for sensitive shared administrative consoles. could help with sudo credential cache on shared console; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Test access from an allowed and denied client while observing the active enforcement mechanism.
Question 820
A modern Linux service ignores /etc/hosts.deny even though the operator expects that file to block all unwanted clients. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?
- Compare w with who and confirm the intended sessions are present.
- Test access from an allowed and denied client while observing the active enforcement mechanism.
- Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
- Record key identity provenance alongside signature validation outcomes.
- Document legacy TCP-wrapper limitations and migrate network policy to supported controls.
- Review last or equivalent retained authentication logs for historical sessions.
Explanation
Correct Answers
B:Test access from an allowed and denied client while observing the active enforcement mechanism. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall.
C:Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls. It addresses the root cause, while Document legacy TCP-wrapper limitations and migrate network policy to supported controls. reduces future recurrence.
E:Document legacy TCP-wrapper limitations and migrate network policy to supported controls. It preserves the corrective behavior established through: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
Incorrect Answers
A:Compare w with who and confirm the intended sessions are present. belongs to a situation where Historical login tools alone do not enumerate current session commands and idle times. Here the evidence supports a different requirement: Test access from an allowed and denied client while observing the active enforcement mechanism.
D:Record key identity provenance alongside signature validation outcomes. could help with gpg signature from unknown key; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Test access from an allowed and denied client while observing the active enforcement mechanism.
F:This option assumes who lists current sessions; historical successful logins require a login-history facility such as last. The reported symptoms instead call for: Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
LPI Level 1 (102-500) Practice Tests