100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 890
A private signing key was compromised, but old recipients still rely on its published public key. Which THREE actions form a suitable remediation, verification and prevention plan? Select THREE.
- Prepare revocation material and recovery plans before key compromise occurs.
- Import the revocation in a clean test keyring and inspect key validity before signature acceptance.
- Compare remotely observed services with local ss listeners and filtering rules.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
- Publish an appropriate GPG key revocation and distribute the replacement trust path.
- Protect and retain login history centrally for incident reconstruction.
Explanation
Correct Answers
A:Prepare revocation material and recovery plans before key compromise occurs. This control detects or prevents the same mechanism before another incident.
B:Import the revocation in a clean test keyring and inspect key validity before signature acceptance. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
E:Publish an appropriate GPG key revocation and distribute the replacement trust path. It addresses the root cause, while Prepare revocation material and recovery plans before key compromise occurs. reduces future recurrence.
Incorrect Answers
C:Local listening state does not account for intervening host firewalls or network ACLs. That describes a different fault. Here, A revocation certificate communicates that a key should no longer be trusted for future decisions.
D: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: Publish an appropriate GPG key revocation and distribute the replacement trust path.
F:Protect and retain login history centrally for incident reconstruction. belongs to a situation where who lists current sessions; historical successful logins require a login-history facility such as last. Here the evidence supports a different requirement: Prepare revocation material and recovery plans before key compromise occurs.
Question 891
An administrator copies a server's SSH host public key into a user's authorized_keys file expecting passwordless login. Which failure condition fits the evidence without assuming an unrelated fault?
- A system's login policy can use /etc/nologin to reject standard logins on supporting login services.
- Server host keys identify the SSH server; user keys authenticate the connecting client identity.
- who lists current sessions; historical successful logins require a login-history facility such as last.
- Unused enabled services increase attack surface and persist through restarts.
Explanation
Correct Answer
B:Server host keys identify the SSH server; user keys authenticate the connecting client identity. A good follow-up is to test this explanation through: Check ssh -v to distinguish server host verification from client public-key authentication.
Incorrect Answers
A:It would address temporary login blockade rather than the present problem. The appropriate correction here is: Place the user's approved public key in authorized_keys and verify server host keys separately.
C:who lists current sessions; historical successful logins require a login-history facility such as last. That describes a different fault. Here, Server host keys identify the SSH server; user keys authenticate the connecting client identity.
D: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: Check ssh -v to distinguish server host verification from client public-key authentication.
Question 892
An administrator copies a server's SSH host public key into a user's authorized_keys file expecting passwordless login. Which intervention addresses the specific problem with the least unrelated change?
- Create an approved /etc/nologin maintenance notice while keeping a tested administrative recovery path.
- Run an authorized nmap scan from the designated assessment subnet against the approved target.
- Review sudo timestamp_timeout policy through visudo and end the cached authorization with sudo -k when leaving the console.
- Place the user's approved public key in authorized_keys and verify server host keys separately.
Explanation
Correct Answer
D:Place the user's approved public key in authorized_keys and verify server host keys separately. It corrects the mechanism identified in the scenario: Server host keys identify the SSH server; user keys authenticate the connecting client identity.
Incorrect Answers
A: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: Check ssh -v to distinguish server host verification from client public-key authentication.
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: Check ssh -v to distinguish server host verification from client public-key authentication.
C:Review sudo timestamp_timeout policy through visudo and end the cached authorization with sudo -k when leaving the console. belongs to a situation where sudo may cache recent authentication for a policy-defined period, and that timestamp is independent of account password expiry. Here the evidence supports a different requirement: Place the user's approved public key in authorized_keys and verify server host keys separately.
Question 893
An administrator copies a server's SSH host public key into a user's authorized_keys file expecting passwordless login. What focused test would distinguish a real correction from a cosmetic change?
- Attempt access from the formerly matched client and review wrapper logs.
- Scan the service port after restart and inspect the active xinetd configuration.
- Compare the permitted command list to the requested restart task without running a destructive command.
- Check ssh -v to distinguish server host verification from client public-key authentication.
Explanation
Correct Answer
D:Check ssh -v to distinguish server host verification from client public-key authentication. The test is evidence-based because the underlying failure was: Server host keys identify the SSH server; user keys authenticate the connecting client identity.
Incorrect Answers
A: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: Check ssh -v to distinguish server host verification from client public-key authentication.
B:A super-server such as xinetd launches enabled services in response to incoming connections. That describes a different fault. Here, Server host keys identify the SSH server; user keys authenticate the connecting client identity.
C:It would address inspect effective sudo privilege rather than the present problem. The appropriate correction here is: Place the user's approved public key in authorized_keys and verify server host keys separately.
Question 894
An administrator copies a server's SSH host public key into a user's authorized_keys file expecting passwordless login. What should the team standardize to prevent similar incidents?
- Document legacy TCP-wrapper limitations and migrate network policy to supported controls.
- Track user authentication and server identity keys as distinct lifecycles.
- Use explicitly authorized scan scope and correlate external exposure with host settings.
- Require syntax validation and least-privilege rule reviews for sudo policy changes.
Explanation
Correct Answer
B:Track user authentication and server identity keys as distinct lifecycles. Sustained checks matter because Server host keys identify the SSH server; user keys authenticate the connecting client identity.
Incorrect Answers
A:Document legacy TCP-wrapper limitations and migrate network policy to supported controls. could help with tcp wrappers are legacy; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Check ssh -v to distinguish server host verification from client public-key authentication.
C:That choice responds to a external port scan scope failure. In this incident, Server host keys identify the SSH server; user keys authenticate the connecting client identity.
D: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: Server host keys identify the SSH server; user keys authenticate the connecting client identity.
Question 895
An administrator copies a server's SSH host public key into a user's authorized_keys file expecting passwordless login. Choose TWO case-specific steps: one that fixes the issue and one that proves the result.
- Place the user's approved public key in authorized_keys and verify server host keys separately.
- Use sudo -k and a controlled sudo command to confirm the expected authentication prompt and timeout.
- Check ssh -v to distinguish server host verification from client public-key authentication.
- Confirm whether the service supports TCP wrappers and otherwise use supported host firewall or application ACL controls.
- Review privileged file modes regularly and remove unnecessary setuid programs.
Explanation
Correct Answers
A:Place the user's approved public key in authorized_keys and verify server host keys separately. The change should be accepted only after this test: Check ssh -v to distinguish server host verification from client public-key authentication.
C:Check ssh -v to distinguish server host verification from client public-key authentication. This measures the specific result of applying: Place the user's approved public key in authorized_keys and verify server host keys separately.
Incorrect Answers
B:Use sudo -k and a controlled sudo command to confirm the expected authentication prompt and timeout. could help with sudo credential cache on shared console; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Check ssh -v to distinguish server host verification from client public-key authentication.
D:This belongs to tcp wrappers are legacy, where TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall. The current issue instead is: Server host keys identify the SSH server; user keys authenticate the connecting client identity.
E:Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation. That describes a different fault. Here, Server host keys identify the SSH server; user keys authenticate the connecting client identity.
Question 896
A developer creates an unencrypted private SSH identity file and copies it among workstations for convenience. Which diagnosis is supported by the observations?
- TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny.
- The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields.
- A private key without a protective passphrase increases exposure if its file is stolen.
- The listening port may belong to an active local process rather than a stale firewall rule.
Explanation
Correct Answer
C:A private key without a protective passphrase increases exposure if its file is stolen. Addressing the cause requires: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
Incorrect Answers
A:That choice responds to a hosts allow precedence in libwrap failure. In this incident, A private key without a protective passphrase increases exposure if its file is stolen.
B:It would address separate shadow hashes from public identities rather than the present problem. The appropriate correction here is: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
D:The listening port may belong to an active local process rather than a stale firewall rule. 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: A private key without a protective passphrase increases exposure if its file is stolen.
Question 897
A developer creates an unencrypted private SSH identity file and copies it among workstations for convenience. Which remedial step follows from the observed mechanism?
- Tighten the allow entry or remove an unintended exception for that daemon and client.
- Migrate to distribution-supported shadow password storage with approved permissions.
- Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
Explanation
Correct Answer
C:Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected. Unlike a broad workaround, it targets the observed cause: A private key without a protective passphrase increases exposure if its file is stolen.
Incorrect Answers
A:That choice responds to a hosts allow precedence in libwrap failure. In this incident, A private key without a protective passphrase increases exposure if its file is stolen.
B:Migrate to distribution-supported shadow password storage with approved permissions. belongs to a situation where The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields. Here the evidence supports a different requirement: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
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: Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
Question 898
A developer creates an unencrypted private SSH identity file and copies it among workstations for convenience. What focused test would distinguish a real correction from a cosmetic change?
- Test access from an allowed and denied client while observing the active enforcement mechanism.
- Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
- Run visudo -c and sudo -l for an authorized test identity.
- Attempt access from the formerly matched client and review wrapper logs.
Explanation
Correct Answer
B:Inspect key usage in a fresh agent session and confirm unlocking is required under policy. This check is tied to the expected behavior rather than mere process uptime.
Incorrect Answers
A:This belongs to tcp wrappers are legacy, where TCP wrappers affect only applications built to consult libwrap and do not serve as a universal host firewall. The current issue instead is: A private key without a protective passphrase increases exposure if its file is stolen.
C:The test for edit sudo policy safely would be: Run visudo -c and sudo -l for an authorized test identity. The relevant acceptance check here is: Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
D:This option assumes TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny. The reported symptoms instead call for: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
Question 899
A developer creates an unencrypted private SSH identity file and copies it among workstations for convenience. Which ongoing control would best reduce the chance of the issue returning?
- Review privileged file modes regularly and remove unnecessary setuid programs.
- Use unique protected keys per identity and device and revoke lost keys promptly.
- Maintain a minimal approved service inventory and review listeners periodically.
- Keep credential hashes in restricted stores and monitor mode drift.
Explanation
Correct Answer
B:Use unique protected keys per identity and device and revoke lost keys promptly. It makes the outcome of the targeted repair (Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.) repeatable.
Incorrect Answers
A:Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation. That describes a different fault. Here, A private key without a protective passphrase increases exposure if its file is stolen.
C: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: Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
D:The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields. That describes a different fault. Here, A private key without a protective passphrase increases exposure if its file is stolen.
Question 900
A developer creates an unencrypted private SSH identity file and copies it among workstations for convenience. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?
- Use w to inspect current users, TTYs, idle times and active commands.
- Use unique protected keys per identity and device and revoke lost keys promptly.
- Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
- Use explicitly authorized scan scope and correlate external exposure with host settings.
- Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
- Scan the service port after restart and inspect the active xinetd configuration.
Explanation
Correct Answers
B:Use unique protected keys per identity and device and revoke lost keys promptly. It preserves the corrective behavior established through: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
C:Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected. It is the direct response; verify the result by: Inspect key usage in a fresh agent session and confirm unlocking is required under policy.
E:Inspect key usage in a fresh agent session and confirm unlocking is required under policy. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
Incorrect Answers
A:That choice responds to a inspect current logged-in commands failure. In this incident, A private key without a protective passphrase increases exposure if its file is stolen.
D:That choice responds to a external port scan scope failure. In this incident, A private key without a protective passphrase increases exposure if its file is stolen.
F:It would address xinetd service enabled accidentally rather than the present problem. The appropriate correction here is: Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
LPI Level 1 (102-500) Practice Tests