LPI 102-500 Exam Dumps, Practice Test Questions

100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!

LPI 102-500 Premium Bundle
$79.97
$59.98

102-500 Premium Bundle

  • Premium File: 120 Questions & Answers. Last update: Nov 18, 2026
  • Training Course: 126 Video Lectures
  • Study Guide: 962 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates

102-500 Premium Bundle

LPI 102-500 Premium Bundle
  • Premium File: 120 Questions & Answers. Last update: Nov 18, 2026
  • Training Course: 126 Video Lectures
  • Study Guide: 962 Pages
  • Latest Questions
  • 100% Accurate Answers
  • Fast Exam Updates
$79.97
$59.98

LPI 102-500 Practice Test 87

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.

  1. Use controlled session visibility during incident triage while honoring privacy policy.
  2. Tighten the allow entry or remove an unintended exception for that daemon and client.
  3. Connect to localhost:localport and verify it reaches only the intended internal service.
  4. Limit SSH forwarding permissions and avoid opening broad database firewall exposure.
  5. Compare the permitted command list to the requested restart task without running a destructive command.
  6. 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.

Question 861

A development machine behind NAT must expose a temporary service through an approved bastion, without opening its own inbound firewall. Which mechanism best explains the difference between expectation and result?

  1. Disabling one daemon does not automatically remove permissive network filtering or prove another listener cannot bind the port.
  2. Unlimited user process creation can exhaust host resources; ulimit exposes shell limits for the current context.
  3. Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
  4. Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Explanation

Correct Answer

D:

Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service. The observation is consistent with this mechanism; a targeted repair would be: Use an approved ssh -R forwarding rule with restricted bind address and port.

Incorrect Answers

A:

Disabling one daemon does not automatically remove permissive network filtering or prove another listener cannot bind the port. That describes a different fault. Here, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

B:

It would address shell process limits rather than the present problem. The appropriate correction here is: Use an approved ssh -R forwarding rule with restricted bind address and port.

C:

That choice responds to a search unexpected setuid files failure. In this incident, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Question 862

A development machine behind NAT must expose a temporary service through an approved bastion, without opening its own inbound firewall. What action should be planned as the next targeted correction?

  1. Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
  2. Use an approved ssh -R forwarding rule with restricted bind address and port.
  3. Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.
  4. Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.

Explanation

Correct Answer

B:

Use an approved ssh -R forwarding rule with restricted bind address and port. It is the direct response; verify the result by: Connect from the allowed bastion-side client and confirm traffic reaches the local development service.

Incorrect Answers

A:

It would address tcp wrappers are legacy rather than the present problem. The appropriate correction here is: Use an approved ssh -R forwarding rule with restricted bind address and port.

C:

The test for find process owning tcp listener would be: Correlate PID, executable and service unit with the observed bound address and port. The relevant acceptance check here is: Connect from the allowed bastion-side client and confirm traffic reaches the local development service.

D:

That choice responds to a edit sudo policy safely failure. In this incident, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Question 863

A development machine behind NAT must expose a temporary service through an approved bastion, without opening its own inbound firewall. How should the administrator verify the required behavior?

  1. Inspect account record fields and effective /etc/shadow permissions in a controlled test.
  2. Correlate PID, executable and service unit with the observed bound address and port.
  3. Connect from the allowed bastion-side client and confirm traffic reaches the local development service.
  4. Check systemctl is-enabled and ss -ltn to confirm no unwanted listener remains after reboot.

Explanation

Correct Answer

C:

Connect from the allowed bastion-side client and confirm traffic reaches the local development service. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Incorrect Answers

A:

That choice responds to a separate shadow hashes from public identities failure. In this incident, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

B:

The test for find process owning tcp listener would be: Correlate PID, executable and service unit with the observed bound address and port. The relevant acceptance check here is: Connect from the allowed bastion-side client and confirm traffic reaches the local development service.

D:

Check systemctl is-enabled and ss -ltn to confirm no unwanted listener remains after reboot. belongs to a situation where Unused enabled services increase attack surface and persist through restarts. Here the evidence supports a different requirement: Connect from the allowed bastion-side client and confirm traffic reaches the local development service.

Question 864

A development machine behind NAT must expose a temporary service through an approved bastion, without opening its own inbound firewall. Which practice is most useful after the immediate repair succeeds?

  1. Protect and retain login history centrally for incident reconstruction.
  2. Set and review sudo authentication-cache policy for sensitive shared administrative consoles.
  3. Restrict remote forwards and disable temporary tunnels after use.
  4. Include listener bind addresses, not just port numbers, in host-hardening baselines.

Explanation

Correct Answer

C:

Restrict remote forwards and disable temporary tunnels after use. The underlying risk is Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Incorrect Answers

A:

who lists current sessions; historical successful logins require a login-history facility such as last. That describes a different fault. Here, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

B:

This option assumes sudo may cache recent authentication for a policy-defined period, and that timestamp is independent of account password expiry. The reported symptoms instead call for: Use an approved ssh -R forwarding rule with restricted bind address and port.

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, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Question 865

A development machine behind NAT must expose a temporary service through an approved bastion, without opening its own inbound firewall. Choose TWO case-specific steps: one that fixes the issue and one that proves the result.

  1. Use an approved ssh -R forwarding rule with restricted bind address and port.
  2. Compare selected user login timestamps with rotated authentication logs.
  3. Connect from the allowed bastion-side client and confirm traffic reaches the local development service.
  4. Review last or equivalent retained authentication logs for historical sessions.
  5. Inventory super-server service definitions as part of hardening.

Explanation

Correct Answers

A:

Use an approved ssh -R forwarding rule with restricted bind address and port. It corrects the mechanism identified in the scenario: Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

C:

Connect from the allowed bastion-side client and confirm traffic reaches the local development service. This measures the specific result of applying: Use an approved ssh -R forwarding rule with restricted bind address and port.

Incorrect Answers

B:

This belongs to previous login attribution, where who lists current sessions; historical successful logins require a login-history facility such as last. The current issue instead is: Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

D:

who lists current sessions; historical successful logins require a login-history facility such as last. That describes a different fault. Here, Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

E:

This belongs to xinetd service enabled accidentally, where A super-server such as xinetd launches enabled services in response to incoming connections. The current issue instead is: Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.

Question 866

A developer enables ssh -A through a shared jump server, even though remote administrators must not gain use of the workstation identity. Which mechanism best explains the difference between expectation and result?

  1. Unlimited user process creation can exhaust host resources; ulimit exposes shell limits for the current context.
  2. The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields.
  3. Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.
  4. Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.

Explanation

Correct Answer

C:

Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active. That cause connects the stated symptom to the corrective action: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

Incorrect Answers

A:

The test for shell process limits would be: Run ulimit -a in a new session and exercise a bounded test workload. The relevant acceptance check here is: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

B:

The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields. That describes a different fault. Here, Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

D:

That choice responds to a search unexpected setuid files failure. In this incident, Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

Question 867

A developer enables ssh -A through a shared jump server, even though remote administrators must not gain use of the workstation identity. Which configuration approach is appropriate for this requirement?

  1. Review last or equivalent retained authentication logs for historical sessions.
  2. Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
  3. Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
  4. Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

Explanation

Correct Answer

D:

Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design. The change should be accepted only after this test: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

Incorrect Answers

A:

It would address previous login attribution rather than the present problem. The appropriate correction here is: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

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: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

C:

It would address edit sudo policy safely rather than the present problem. The appropriate correction here is: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

Question 868

A developer enables ssh -A through a shared jump server, even though remote administrators must not gain use of the workstation identity. How should the administrator verify the required behavior?

  1. Attempt a test non-root login and confirm rejection plus the displayed notice.
  2. Compare remotely observed services with local ss listeners and filtering rules.
  3. Check systemctl is-enabled and ss -ltn to confirm no unwanted listener remains after reboot.
  4. Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

Explanation

Correct Answer

D:

Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session. It verifies that the targeted action (Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.) achieved its intended outcome.

Incorrect Answers

A:

This belongs to temporary login blockade, where A system's login policy can use /etc/nologin to reject standard logins on supporting login services. The current issue instead is: Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

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: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

C:

It would address disable unused network daemon rather than the present problem. The appropriate correction here is: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

Question 869

A developer enables ssh -A through a shared jump server, even though remote administrators must not gain use of the workstation identity. What should the team standardize to prevent similar incidents?

  1. Maintain approved service-port inventory and alert on unexpected listeners.
  2. Use explicitly authorized scan scope and correlate external exposure with host settings.
  3. Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host.
  4. Manage resource limits in persistent policy rather than manual transient shell commands.

Explanation

Correct Answer

C:

Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host. Sustained checks matter because Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

Incorrect Answers

A:

The listening port may belong to an active local process rather than a stale firewall rule. That describes a different fault. Here, Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

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: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

D:

Unlimited user process creation can exhaust host resources; ulimit exposes shell limits for the current context. That describes a different fault. Here, Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

Question 870

A developer enables ssh -A through a shared jump server, even though remote administrators must not gain use of the workstation identity. Which THREE actions form a suitable remediation, verification and prevention plan? Select THREE.

  1. Protect and retain login history centrally for incident reconstruction.
  2. Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.
  3. Disable the relevant xinetd service entry and reload the appropriate supervisor configuration.
  4. Attempt access from the formerly matched client and review wrapper logs.
  5. Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host.
  6. Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

Explanation

Correct Answers

B:

Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design. It corrects the mechanism identified in the scenario: Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

E:

Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host. It prevents repetition of the condition: Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

F:

Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

Incorrect Answers

A:

This option assumes who lists current sessions; historical successful logins require a login-history facility such as last. The reported symptoms instead call for: Avoid agent forwarding to the untrusted jump server; use a reviewed jump-host connection without ForwardAgent or a more restrictive design.

C:

This belongs to xinetd service enabled accidentally, where A super-server such as xinetd launches enabled services in response to incoming connections. The current issue instead is: Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.

D:

Attempt access from the formerly matched client and review wrapper logs. belongs to a situation where TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny. Here the evidence supports a different requirement: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.

LPI Level 1 (102-500) Practice Tests

UP

SPECIAL OFFER: GET 10% OFF

This is ONE TIME OFFER

ExamSnap Discount Offer
Enter Your Email Address to Receive Your 10% Off Discount Code

A confirmation link will be sent to this email address to verify your login. *We value your privacy. We will not rent or sell your email address.

Download Free Demo of VCE Exam Simulator

Experience Avanset VCE Exam Simulator for yourself.

Simply submit your e-mail address below to get started with our interactive software demo of your free trial.

Free Demo Limits: In the demo version you will be able to access only first 5 questions from exam.