100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 850
An administrator receives an SSH changed-host-key warning after a server rebuild and wants to ignore it automatically. Choose THREE measures that together correct the failure, demonstrate success and reduce recurrence.
- Manage resource limits in persistent policy rather than manual transient shell commands.
- Attempt a test non-root login and confirm rejection plus the displayed notice.
- Compare the server's trusted host-key fingerprint with the client warning before accepting it.
- Manage server host-key rotation with identity verification rather than disabling checking.
- Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
- Verify the new server host key fingerprint out of band before updating the known_hosts entry.
Explanation
Correct Answers
C:Compare the server's trusted host-key fingerprint with the client warning before accepting it. This check is tied to the expected behavior rather than mere process uptime.
D:Manage server host-key rotation with identity verification rather than disabling checking. It makes the outcome of the targeted repair (Verify the new server host key fingerprint out of band before updating the known_hosts entry.) repeatable.
F:Verify the new server host key fingerprint out of band before updating the known_hosts entry. It is the direct response; verify the result by: Compare the server's trusted host-key fingerprint with the client warning before accepting it.
Incorrect Answers
A:That choice responds to a shell process limits failure. In this incident, The client's known_hosts pin no longer matches the offered server host key, which can also signal interception.
B:This option assumes A system's login policy can use /etc/nologin to reject standard logins on supporting login services. The reported symptoms instead call for: Verify the new server host key fingerprint out of band before updating the known_hosts entry.
E:Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls. belongs to a situation where TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall. Here the evidence supports a different requirement: Verify the new server host key fingerprint out of band before updating the known_hosts entry.
Question 851
A user starts ssh-agent but public-key login still prompts for a key passphrase on every connection. Which failure condition fits the evidence without assuming an unrelated fault?
- Historical login tools alone do not enumerate current session commands and idle times.
- Unused enabled services increase attack surface and persist through restarts.
- Running ssh-agent does not itself load a private key into the agent.
- The service is bound to all IPv4 interfaces rather than the intended loopback interface, unnecessarily exposing the listener.
Explanation
Correct Answer
C:Running ssh-agent does not itself load a private key into the agent. That cause connects the stated symptom to the corrective action: Use ssh-add to load the approved private key into the active agent session.
Incorrect Answers
A:That choice responds to a inspect current logged-in commands failure. In this incident, Running ssh-agent does not itself load a private key into the agent.
B:Unused enabled services increase attack surface and persist through restarts. could help with disable unused network daemon; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
D:That choice responds to a local-only service binds every interface failure. In this incident, Running ssh-agent does not itself load a private key into the agent.
Question 852
A user starts ssh-agent but public-key login still prompts for a key passphrase on every connection. Which configuration approach is appropriate for this requirement?
- Disable and stop the obsolete service with the service manager after checking dependencies.
- Run an authorized nmap scan from the designated assessment subnet against the approved target.
- Use ssh-add to load the approved private key into the active agent session.
- Disable and stop the corresponding socket unit as well as the service when decommissioning it.
Explanation
Correct Answer
C:Use ssh-add to load the approved private key into the active agent session. It addresses the root cause, while Avoid unnecessary private-key copies and scope agent access to trusted sessions. reduces future recurrence.
Incorrect Answers
A:The test for disable unused network daemon would be: Check systemctl is-enabled and ss -ltn to confirm no unwanted listener remains after reboot. The relevant acceptance check here is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
B:The test for external port scan scope would be: Compare remotely observed services with local ss listeners and filtering rules. The relevant acceptance check here is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
D:The test for socket activation keeps port open would be: Inspect systemctl list-sockets and attempt the connection after applying the policy. The relevant acceptance check here is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
Question 853
A user starts ssh-agent but public-key login still prompts for a key passphrase on every connection. What diagnostic result would demonstrate the target behavior?
- Run ssh-add -l and verify an authenticated connection uses the loaded identity.
- Attempt a test non-root login and confirm rejection plus the displayed notice.
- Attempt access from the formerly matched client and review wrapper logs.
- Scan the service port after restart and inspect the active xinetd configuration.
Explanation
Correct Answer
A:Run ssh-add -l and verify an authenticated connection uses the loaded identity. This measures the specific result of applying: Use ssh-add to load the approved private key into the active agent session.
Incorrect Answers
B:The test for temporary login blockade would be: Attempt a test non-root login and confirm rejection plus the displayed notice. The relevant acceptance check here is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
C:Attempt access from the formerly matched client and review wrapper logs. could help with hosts allow precedence in libwrap; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
D:A super-server such as xinetd launches enabled services in response to incoming connections. That describes a different fault. Here, Running ssh-agent does not itself load a private key into the agent.
Question 854
A user starts ssh-agent but public-key login still prompts for a key passphrase on every connection. What operational safeguard addresses the root cause?
- Maintain approved service-port inventory and alert on unexpected listeners.
- Avoid unnecessary private-key copies and scope agent access to trusted sessions.
- Protect and retain login history centrally for incident reconstruction.
- Review allow and deny policies together when maintaining legacy libwrap services.
Explanation
Correct Answer
B:Avoid unnecessary private-key copies and scope agent access to trusted sessions. This control detects or prevents the same mechanism before another incident.
Incorrect Answers
A:This belongs to find process owning tcp listener, where The listening port may belong to an active local process rather than a stale firewall rule. The current issue instead is: Running ssh-agent does not itself load a private key into the agent.
C:Protect and retain login history centrally for incident reconstruction. could help with previous login attribution; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
D:The test for hosts allow precedence in libwrap would be: Attempt access from the formerly matched client and review wrapper logs. The relevant acceptance check here is: Run ssh-add -l and verify an authenticated connection uses the loaded identity.
Question 855
A user starts ssh-agent but public-key login still prompts for a key passphrase on every connection. Choose TWO case-specific steps: one that fixes the issue and one that proves the result.
- Maintain approved service-port inventory and alert on unexpected listeners.
- Tighten the allow entry or remove an unintended exception for that daemon and client.
- Run ssh-add -l and verify an authenticated connection uses the loaded identity.
- Use ssh-add to load the approved private key into the active agent session.
- Scan the service port after restart and inspect the active xinetd configuration.
Explanation
Correct Answers
C:Run ssh-add -l and verify an authenticated connection uses the loaded identity. This measures the specific result of applying: Use ssh-add to load the approved private key into the active agent session.
D:Use ssh-add to load the approved private key into the active agent session. This is appropriate because Running ssh-agent does not itself load a private key into the agent.
Incorrect Answers
A:This belongs to find process owning tcp listener, where The listening port may belong to an active local process rather than a stale firewall rule. The current issue instead is: Running ssh-agent does not itself load a private key into the agent.
B:Tighten the allow entry or remove an unintended exception for that daemon and client. belongs to a situation where TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny. Here the evidence supports a different requirement: Use ssh-add to load the approved private key into the active agent session.
E:A super-server such as xinetd launches enabled services in response to incoming connections. That describes a different fault. Here, Running ssh-agent does not itself load a private key into the agent.
Question 856
A DBA can access an SSH bastion but needs a secure local TCP port connected to an internal database reachable from that bastion. Which explanation most directly accounts for the failure in this environment?
- Local listening state does not account for intervening host firewalls or network ACLs.
- sudo may cache recent authentication for a policy-defined period, and that timestamp is independent of account password expiry.
- A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
- Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Explanation
Correct Answer
C:A local SSH tunnel maps a local listening port to a host and port from the SSH server side. The observation is consistent with this mechanism; a targeted repair would be: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
Incorrect Answers
A:This belongs to external port scan scope, where Local listening state does not account for intervening host firewalls or network ACLs. The current issue instead is: A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
B:sudo may cache recent authentication for a policy-defined period, and that timestamp is independent of account password expiry. That describes a different fault. Here, A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
D:The test for search unexpected setuid files would be: Inspect each candidate with ls -l or stat and compare with an approved package baseline. The relevant acceptance check here is: Connect to localhost:localport and verify it reaches only the intended internal service.
Question 857
A DBA can access an SSH bastion but needs a secure local TCP port connected to an internal database reachable from that bastion. Which change most directly meets the stated requirement?
- Run an authorized nmap scan from the designated assessment subnet against the approved target.
- Configure the application listener to bind to 127.0.0.1 and review firewall access for the service.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
- Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
Explanation
Correct Answer
D:Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval. The change should be accepted only after this test: Connect to localhost:localport and verify it reaches only the intended internal service.
Incorrect Answers
A:The test for external port scan scope would be: Compare remotely observed services with local ss listeners and filtering rules. The relevant acceptance check here is: Connect to localhost:localport and verify it reaches only the intended internal service.
B:This option assumes The service is bound to all IPv4 interfaces rather than the intended loopback interface, unnecessarily exposing the listener. The reported symptoms instead call for: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
C:Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership. belongs to a situation where Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation. Here the evidence supports a different requirement: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
Question 858
A DBA can access an SSH bastion but needs a secure local TCP port connected to an internal database reachable from that bastion. How should the administrator verify the required behavior?
- Inspect account record fields and effective /etc/shadow permissions in a controlled test.
- Test access from an allowed and denied client while observing the active enforcement mechanism.
- Connect to localhost:localport and verify it reaches only the intended internal service.
- Run visudo -c and sudo -l for an authorized test identity.
Explanation
Correct Answer
C:Connect to localhost:localport and verify it reaches only the intended internal service. The test is evidence-based because the underlying failure was: A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
Incorrect Answers
A:That choice responds to a separate shadow hashes from public identities failure. In this incident, A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
B:The test for tcp wrappers are legacy would be: Test access from an allowed and denied client while observing the active enforcement mechanism. The relevant acceptance check here is: Connect to localhost:localport and verify it reaches only the intended internal service.
D:This option assumes Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky. The reported symptoms instead call for: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
Question 859
A DBA can access an SSH bastion but needs a secure local TCP port connected to an internal database reachable from that bastion. What should the team standardize to prevent similar incidents?
- Protect and retain login history centrally for incident reconstruction.
- Manage resource limits in persistent policy rather than manual transient shell commands.
- Limit SSH forwarding permissions and avoid opening broad database firewall exposure.
- Include listener bind addresses, not just port numbers, in host-hardening baselines.
Explanation
Correct Answer
C:Limit SSH forwarding permissions and avoid opening broad database firewall exposure. It prevents repetition of the condition: A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
Incorrect Answers
A:It would address previous login attribution rather than the present problem. The appropriate correction here is: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
B:Manage resource limits in persistent policy rather than manual transient shell commands. belongs to a situation where Unlimited user process creation can exhaust host resources; ulimit exposes shell limits for the current context. Here the evidence supports a different requirement: Limit SSH forwarding permissions and avoid opening broad database firewall exposure.
D:The service is bound to all IPv4 interfaces rather than the intended loopback interface, unnecessarily exposing the listener. That describes a different fault. Here, A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
Question 860
A DBA can access an SSH bastion but needs a secure local TCP port connected to an internal database reachable from that bastion. Choose THREE measures that together correct the failure, demonstrate success and reduce recurrence.
- Use controlled session visibility during incident triage while honoring privacy policy.
- Tighten the allow entry or remove an unintended exception for that daemon and client.
- Connect to localhost:localport and verify it reaches only the intended internal service.
- Limit SSH forwarding permissions and avoid opening broad database firewall exposure.
- Compare the permitted command list to the requested restart task without running a destructive command.
- Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
Explanation
Correct Answers
C:Connect to localhost:localport and verify it reaches only the intended internal service. This check is tied to the expected behavior rather than mere process uptime.
D:Limit SSH forwarding permissions and avoid opening broad database firewall exposure. Sustained checks matter because A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
F:Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval. This is appropriate because A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
Incorrect Answers
A:This belongs to inspect current logged-in commands, where Historical login tools alone do not enumerate current session commands and idle times. The current issue instead is: A local SSH tunnel maps a local listening port to a host and port from the SSH server side.
B:It would address hosts allow precedence in libwrap rather than the present problem. The appropriate correction here is: Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.
E:Compare the permitted command list to the requested restart task without running a destructive command. belongs to a situation where Group membership or an assertion is not sufficient evidence of the actual sudoers permissions. Here the evidence supports a different requirement: Connect to localhost:localport and verify it reaches only the intended internal service.
LPI Level 1 (102-500) Practice Tests