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 77

Question 760

An engineer edits /etc/sudoers with a normal text editor and a syntax error could lock out administrative access. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?

  1. Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
  2. Maintain a minimal approved service inventory and review listeners periodically.
  3. Run visudo -c and sudo -l for an authorized test identity.
  4. Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
  5. Require syntax validation and least-privilege rule reviews for sudo policy changes.
  6. Use ssh -v to inspect the authentication attempt and verify which server account is selected.

Explanation

Correct Answers

A:

Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file. It is the direct response; verify the result by: Run visudo -c and sudo -l for an authorized test identity.

C:

Run visudo -c and sudo -l for an authorized test identity. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.

E:

Require syntax validation and least-privilege rule reviews for sudo policy changes. It preserves the corrective behavior established through: Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.

Incorrect Answers

B:

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 visudo -c and sudo -l for an authorized test identity.

D:

Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected. could help with passphrase-protected key generation; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run visudo -c and sudo -l for an authorized test identity.

F:

Use ssh -v to inspect the authentication attempt and verify which server account is selected. could help with user authorized ssh key; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run visudo -c and sudo -l for an authorized test identity.

Question 761

A service technician claims to be permitted to restart one daemon but permission checks are undocumented. Which explanation most directly accounts for the failure in this environment?

  1. Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.
  2. A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
  3. A separate systemd .socket unit can listen and activate its associated service on demand.
  4. Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document.

Explanation

Correct Answer

A:

Group membership or an assertion is not sufficient evidence of the actual sudoers permissions. That cause connects the stated symptom to the corrective action: Run sudo -l under the user's identity to enumerate the commands sudo permits.

Incorrect Answers

B:

A system's login policy can use /etc/nologin to reject standard logins on supporting login services. belongs to a situation where A system's login policy can use /etc/nologin to reject standard logins on supporting login services. Here the evidence supports a different requirement: Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

C:

A separate systemd .socket unit can listen and activate its associated service on demand. could help with socket activation keeps port open; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare the permitted command list to the requested restart task without running a destructive command.

D:

Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document. belongs to a situation where Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document. Here the evidence supports a different requirement: Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

Question 762

A service technician claims to be permitted to restart one daemon but permission checks are undocumented. Which intervention addresses the specific problem with the least unrelated change?

  1. Run sudo -l under the user's identity to enumerate the commands sudo permits.
  2. Disable and stop the corresponding socket unit as well as the service when decommissioning it.
  3. Configure the application listener to bind to 127.0.0.1 and review firewall access for the service.
  4. Disable the relevant xinetd service entry and reload the appropriate supervisor configuration.

Explanation

Correct Answer

A:

Run sudo -l under the user's identity to enumerate the commands sudo permits. It is the direct response; verify the result by: Compare the permitted command list to the requested restart task without running a destructive command.

Incorrect Answers

B:

Disable and stop the corresponding socket unit as well as the service when decommissioning it. belongs to a situation where A separate systemd .socket unit can listen and activate its associated service on demand. Here the evidence supports a different requirement: Run sudo -l under the user's identity to enumerate the commands sudo permits.

C:

That choice responds to a local-only service binds every interface failure. In this incident, Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

D:

A super-server such as xinetd launches enabled services in response to incoming connections. That describes a different fault. Here, Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

Question 763

A service technician claims to be permitted to restart one daemon but permission checks are undocumented. Which test would confirm the suspected Linux mechanism?

  1. Compare the server's trusted host-key fingerprint with the client warning before accepting it.
  2. Compare the permitted command list to the requested restart task without running a destructive command.
  3. Use ssh -v to inspect the authentication attempt and verify which server account is selected.
  4. Verify the detached signature using gpg --verify and the independently trusted signer key.

Explanation

Correct Answer

B:

Compare the permitted command list to the requested restart task without running a destructive command. This measures the specific result of applying: Run sudo -l under the user's identity to enumerate the commands sudo permits.

Incorrect Answers

A:

That choice responds to a ssh host identity mismatch failure. In this incident, Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

C:

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: Compare the permitted command list to the requested restart task without running a destructive command.

D:

That choice responds to a gpg sign versus encrypt failure. In this incident, Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

Question 764

A service technician claims to be permitted to restart one daemon but permission checks are undocumented. Which ongoing control would best reduce the chance of the issue returning?

  1. Audit effective privilege grants rather than relying on role names alone.
  2. Remove maintenance login blocks promptly and test PAM service behavior.
  3. Distinguish confidentiality, integrity and author authentication in evidence workflows.
  4. Inventory super-server service definitions as part of hardening.

Explanation

Correct Answer

A:

Audit effective privilege grants rather than relying on role names alone. It preserves the corrective behavior established through: Run sudo -l under the user's identity to enumerate the commands sudo permits.

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: Compare the permitted command list to the requested restart task without running a destructive command.

C:

This option assumes Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document. The reported symptoms instead call for: Run sudo -l under the user's identity to enumerate the commands sudo permits.

D:

The test for xinetd service enabled accidentally would be: Scan the service port after restart and inspect the active xinetd configuration. The relevant acceptance check here is: Compare the permitted command list to the requested restart task without running a destructive command.

Question 765

A service technician claims to be permitted to restart one daemon but permission checks are undocumented. Which TWO options provide a coherent remediation-and-test response to this incident?

  1. Compare ss -ltnp and a controlled remote port scan before and after hardening.
  2. Run sudo -l under the user's identity to enumerate the commands sudo permits.
  3. Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host.
  4. Review both running listeners and packet-filter policy, then remove obsolete exposed rules.
  5. Compare the permitted command list to the requested restart task without running a destructive command.

Explanation

Correct Answers

B:

Run sudo -l under the user's identity to enumerate the commands sudo permits. It addresses the root cause, while Audit effective privilege grants rather than relying on role names alone. reduces future recurrence.

E:

Compare the permitted command list to the requested restart task without running a destructive command. The test is evidence-based because the underlying failure was: Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

Incorrect Answers

A:

That choice responds to a firewall status versus service status failure. In this incident, Group membership or an assertion is not sufficient evidence of the actual sudoers permissions.

C:

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: Run sudo -l under the user's identity to enumerate the commands sudo permits.

D:

This option assumes Disabling one daemon does not automatically remove permissive network filtering or prove another listener cannot bind the port. The reported symptoms instead call for: Run sudo -l under the user's identity to enumerate the commands sudo permits.

Question 766

A security scanner reports an unexpected open local TCP port and the team needs its owning process before disabling it. Which mechanism best explains the difference between expectation and result?

  1. Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.
  2. Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active.
  3. Unused enabled services increase attack surface and persist through restarts.
  4. The listening port may belong to an active local process rather than a stale firewall rule.

Explanation

Correct Answer

D:

The listening port may belong to an active local process rather than a stale firewall rule. This is the explanation that justifies the specific remedy: Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.

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: Correlate PID, executable and service unit with the observed bound address and port.

B:

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

C:

Unused enabled services increase attack surface and persist through restarts. That describes a different fault. Here, The listening port may belong to an active local process rather than a stale firewall rule.

Question 767

A security scanner reports an unexpected open local TCP port and the team needs its owning process before disabling it. Which configuration approach is appropriate for this requirement?

  1. Disable and stop the corresponding socket unit as well as the service when decommissioning it.
  2. Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.
  3. Publish an appropriate GPG key revocation and distribute the replacement trust path.
  4. Install the approved public key in the intended user's ~/.ssh/authorized_keys with secure ownership and permissions.

Explanation

Correct Answer

B:

Use ss -ltnp or lsof -i under appropriate privileges to identify the listener. It is the direct response; verify the result by: Correlate PID, executable and service unit with the observed bound address and port.

Incorrect Answers

A:

This option assumes A separate systemd .socket unit can listen and activate its associated service on demand. The reported symptoms instead call for: Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.

C:

The test for gpg revoked signing key would be: Import the revocation in a clean test keyring and inspect key validity before signature acceptance. The relevant acceptance check here is: Correlate PID, executable and service unit with the observed bound address and port.

D:

The test for user authorized ssh key would be: Use ssh -v to inspect the authentication attempt and verify which server account is selected. The relevant acceptance check here is: Correlate PID, executable and service unit with the observed bound address and port.

Question 768

A security scanner reports an unexpected open local TCP port and the team needs its owning process before disabling it. Which observation should be used for acceptance testing?

  1. Correlate PID, executable and service unit with the observed bound address and port.
  2. Connect to localhost:localport and verify it reaches only the intended internal service.
  3. Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.
  4. Use the recipient's private key in a controlled test to decrypt and compare the recovered archive.

Explanation

Correct Answer

A:

Correlate PID, executable and service unit with the observed bound address and port. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.

Incorrect Answers

B:

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: Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.

C:

Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session. belongs to a situation where Forwarding an SSH agent exposes its authentication socket to processes with sufficient privilege on the remote host while the connection is active. Here the evidence supports a different requirement: Correlate PID, executable and service unit with the observed bound address and port.

D:

Use the recipient's private key in a controlled test to decrypt and compare the recovered archive. belongs to a situation where A signature may authenticate integrity but leaves ordinary plaintext visible without encryption. Here the evidence supports a different requirement: Correlate PID, executable and service unit with the observed bound address and port.

Question 769

A security scanner reports an unexpected open local TCP port and the team needs its owning process before disabling it. What operational safeguard addresses the root cause?

  1. Maintain approved service-port inventory and alert on unexpected listeners.
  2. Inventory super-server service definitions as part of hardening.
  3. Default ForwardAgent to no and grant any exception only to an explicitly trusted intermediate host.
  4. Restrict remote forwards and disable temporary tunnels after use.

Explanation

Correct Answer

A:

Maintain approved service-port inventory and alert on unexpected listeners. It preserves the corrective behavior established through: Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.

Incorrect Answers

B:

Inventory super-server service definitions as part of hardening. could help with xinetd service enabled accidentally; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Correlate PID, executable and service unit with the observed bound address and port.

C:

The test for agent forwarding to an untrusted bastion would be: Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session. The relevant acceptance check here is: Correlate PID, executable and service unit with the observed bound address and port.

D:

That choice responds to a remote forwarding for support callback failure. In this incident, The listening port may belong to an active local process rather than a stale firewall rule.

Question 770

A security scanner reports an unexpected open local TCP port and the team needs its owning process before disabling it. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?

  1. Manage authorized user keys by account and revoke them promptly on offboarding.
  2. Correlate PID, executable and service unit with the observed bound address and port.
  3. Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.
  4. Maintain approved service-port inventory and alert on unexpected listeners.
  5. Use ssh -v to inspect the authentication attempt and verify which server account is selected.
  6. Use ssh -L localport:db-host:dbport bastion after obtaining forwarding approval.

Explanation

Correct Answers

B:

Correlate PID, executable and service unit with the observed bound address and port. The test is evidence-based because the underlying failure was: The listening port may belong to an active local process rather than a stale firewall rule.

C:

Use ss -ltnp or lsof -i under appropriate privileges to identify the listener. It is the direct response; verify the result by: Correlate PID, executable and service unit with the observed bound address and port.

D:

Maintain approved service-port inventory and alert on unexpected listeners. It makes the outcome of the targeted repair (Use ss -ltnp or lsof -i under appropriate privileges to identify the listener.) repeatable.

Incorrect Answers

A:

The matching public key must be authorized for that server account and file permissions must permit sshd to read it securely. That describes a different fault. Here, The listening port may belong to an active local process rather than a stale firewall rule.

E:

The matching public key must be authorized for that server account and file permissions must permit sshd to read it securely. That describes a different fault. Here, The listening port may belong to an active local process rather than a stale firewall rule.

F:

This belongs to local port forwarding to internal database, where A local SSH tunnel maps a local listening port to a host and port from the SSH server side. The current issue instead is: The listening port may belong to an active local process rather than a stale firewall rule.

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.