100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 750
An administrator sees NXDOMAIN for a recently added hostname and starts troubleshooting the workstation's Ethernet cable. Which THREE case-specific steps cover immediate repair, test evidence and sustained control?
- Separate DNS data correctness from link reachability in help-desk triage.
- Query the authoritative/approved DNS source for the exact FQDN and inspect the returned status.
- Compute the network and broadcast addresses using the mask and confirm the host configuration.
- Avoid hand-written IPv4-only parsing in dual-stack automation.
- Apply the correct dynamic or static address to the proper interface using the authoritative manager.
- Verify the intended DNS zone and record existence before changing interface settings.
Explanation
Correct Answers
A:Separate DNS data correctness from link reachability in help-desk triage. The underlying risk is NXDOMAIN indicates a negative name response, not by itself a broken physical network connection.
B:Query the authoritative/approved DNS source for the exact FQDN and inspect the returned status. The test is evidence-based because the underlying failure was: NXDOMAIN indicates a negative name response, not by itself a broken physical network connection.
F:Verify the intended DNS zone and record existence before changing interface settings. This is appropriate because NXDOMAIN indicates a negative name response, not by itself a broken physical network connection.
Incorrect Answers
C:It would address ipv4 network boundary rather than the present problem. The appropriate correction here is: Verify the intended DNS zone and record existence before changing interface settings.
D:The test for ipv6 address length would be: Parse a compressed IPv6 address and check it round-trips without truncation. The relevant acceptance check here is: Query the authoritative/approved DNS source for the exact FQDN and inspect the returned status.
E:It would address missing address on live interface rather than the present problem. The appropriate correction here is: Verify the intended DNS zone and record existence before changing interface settings.
Question 751
A security audit must identify executables that can run with a file owner's effective UID, rather than finding every executable bit. Which diagnosis is supported by the observations?
- The matching public key must be authorized for that server account and file permissions must permit sshd to read it securely.
- Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
- A revocation certificate communicates that a key should no longer be trusted for future decisions.
- A mathematically valid signature does not independently establish who owns the public key.
Explanation
Correct Answer
B:Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation. Addressing the cause requires: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
Incorrect Answers
A:This belongs to user authorized ssh key, where The matching public key must be authorized for that server account and file permissions must permit sshd to read it securely. The current issue instead is: Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
C:This belongs to gpg revoked signing key, where A revocation certificate communicates that a key should no longer be trusted for future decisions. The current issue instead is: Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
D:This belongs to gpg signature from unknown key, where A mathematically valid signature does not independently establish who owns the public key. The current issue instead is: Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Question 752
A security audit must identify executables that can run with a file owner's effective UID, rather than finding every executable bit. Which change most directly meets the stated requirement?
- Place the user's approved public key in authorized_keys and verify server host keys separately.
- Publish an appropriate GPG key revocation and distribute the replacement trust path.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
- Verify the signer's public-key fingerprint through an independent trusted channel before relying on identity.
Explanation
Correct Answer
C:Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership. This is appropriate because Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Incorrect Answers
A:The test for ssh public key versus server host key would be: Check ssh -v to distinguish server host verification from client public-key authentication. The relevant acceptance check here is: Inspect each candidate with ls -l or stat and compare with an approved package baseline.
B:Publish an appropriate GPG key revocation and distribute the replacement trust path. could help with gpg revoked signing key; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Inspect each candidate with ls -l or stat and compare with an approved package baseline.
D:This belongs to gpg signature from unknown key, where A mathematically valid signature does not independently establish who owns the public key. The current issue instead is: Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Question 753
A security audit must identify executables that can run with a file owner's effective UID, rather than finding every executable bit. Which check would provide the strongest evidence that the fix worked?
- Use the recipient's private key in a controlled test to decrypt and compare the recovered archive.
- Attempt access from the formerly matched client and review wrapper logs.
- Run ssh-add -l and verify an authenticated connection uses the loaded identity.
- Inspect each candidate with ls -l or stat and compare with an approved package baseline.
Explanation
Correct Answer
D:Inspect each candidate with ls -l or stat and compare with an approved package baseline. This measures the specific result of applying: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
Incorrect Answers
A:It would address gpg recipient encryption rather than the present problem. The appropriate correction here is: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
B:This belongs to hosts allow precedence in libwrap, where TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny. The current issue instead is: Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
C:Run ssh-add -l and verify an authenticated connection uses the loaded identity. belongs to a situation where Running ssh-agent does not itself load a private key into the agent. Here the evidence supports a different requirement: Inspect each candidate with ls -l or stat and compare with an approved package baseline.
Question 754
A security audit must identify executables that can run with a file owner's effective UID, rather than finding every executable bit. What should the team standardize to prevent similar incidents?
- Review service state and firewall scope as separate layers of host security.
- Review privileged file modes regularly and remove unnecessary setuid programs.
- Validate recipient public-key identity before protecting sensitive material.
- Track user authentication and server identity keys as distinct lifecycles.
Explanation
Correct Answer
B:Review privileged file modes regularly and remove unnecessary setuid programs. The underlying risk is Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Incorrect Answers
A:It would address firewall status versus service status rather than the present problem. The appropriate correction here is: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
C:This option assumes A signature may authenticate integrity but leaves ordinary plaintext visible without encryption. The reported symptoms instead call for: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
D:Server host keys identify the SSH server; user keys authenticate the connecting client identity. That describes a different fault. Here, Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Question 755
A security audit must identify executables that can run with a file owner's effective UID, rather than finding every executable bit. Choose TWO case-specific steps: one that fixes the issue and one that proves the result.
- Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
- Disable the relevant xinetd service entry and reload the appropriate supervisor configuration.
- Inspect each candidate with ls -l or stat and compare with an approved package baseline.
- Remove maintenance login blocks promptly and test PAM service behavior.
- Compare the server's trusted host-key fingerprint with the client warning before accepting it.
Explanation
Correct Answers
A:Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership. It addresses the root cause, while Review privileged file modes regularly and remove unnecessary setuid programs. reduces future recurrence.
C:Inspect each candidate with ls -l or stat and compare with an approved package baseline. This measures the specific result of applying: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
Incorrect Answers
B:It would address xinetd service enabled accidentally rather than the present problem. The appropriate correction here is: Search appropriate filesystem scopes for the setuid bit using find -perm -4000 and review ownership.
D:Remove maintenance login blocks promptly and test PAM service behavior. could help with temporary login blockade; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Inspect each candidate with ls -l or stat and compare with an approved package baseline.
E:That choice responds to a ssh host identity mismatch failure. In this incident, Setuid is a special permission bit; ordinary x permission is not evidence of effective-UID elevation.
Question 756
An engineer edits /etc/sudoers with a normal text editor and a syntax error could lock out administrative access. What underlying Linux behavior should the administrator identify first?
- A signature may authenticate integrity but leaves ordinary plaintext visible without encryption.
- Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document.
- Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service.
- Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
Explanation
Correct Answer
D:Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky. A good follow-up is to test this explanation through: Run visudo -c and sudo -l for an authorized test identity.
Incorrect Answers
A:That choice responds to a gpg recipient encryption failure. In this incident, Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
B:This belongs to gpg sign versus encrypt, where Encryption protects confidentiality but does not alone prove the author's signing key endorsed the document. The current issue instead is: Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
C:Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service. belongs to a situation where Remote forwarding places a listener on the SSH server side that carries traffic to the client-side service. Here the evidence supports a different requirement: Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
Question 757
An engineer edits /etc/sudoers with a normal text editor and a syntax error could lock out administrative access. Which change most directly meets the stated requirement?
- Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
- Disable the relevant xinetd service entry and reload the appropriate supervisor configuration.
- Disable and stop the obsolete service with the service manager after checking dependencies.
- Place the user's approved public key in authorized_keys and verify server host keys separately.
Explanation
Correct Answer
A:Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file. The change should be accepted only after this test: Run visudo -c and sudo -l for an authorized test identity.
Incorrect Answers
B:A super-server such as xinetd launches enabled services in response to incoming connections. That describes a different fault. Here, Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
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: Run visudo -c and sudo -l for an authorized test identity.
D:Place the user's approved public key in authorized_keys and verify server host keys separately. belongs to a situation where Server host keys identify the SSH server; user keys authenticate the connecting client identity. Here the evidence supports a different requirement: Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
Question 758
An engineer edits /etc/sudoers with a normal text editor and a syntax error could lock out administrative access. Which check would provide the strongest evidence that the fix worked?
- Inspect ssh -G for forwardagent on the intended host and confirm that no agent socket is forwarded during the bastion session.
- Compare the verified fingerprint with the key used by gpg --verify.
- Run visudo -c and sudo -l for an authorized test identity.
- Inspect account record fields and effective /etc/shadow permissions in a controlled test.
Explanation
Correct Answer
C:Run visudo -c and sudo -l for an authorized test identity. It verifies that the targeted action (Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.) achieved its intended outcome.
Incorrect Answers
A: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: Run visudo -c and sudo -l for an authorized test identity.
B:This option assumes A mathematically valid signature does not independently establish who owns the public key. The reported symptoms instead call for: Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
D:The shadow-password model keeps hashes in restricted /etc/shadow, while passwd contains public account fields. That describes a different fault. Here, Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
Question 759
An engineer edits /etc/sudoers with a normal text editor and a syntax error could lock out administrative access. Which practice is most useful after the immediate repair succeeds?
- Treat service units and socket units as separate controls when reducing attack surface.
- Review allow and deny policies together when maintaining legacy libwrap services.
- Inventory super-server service definitions as part of hardening.
- Require syntax validation and least-privilege rule reviews for sudo policy changes.
Explanation
Correct Answer
D:Require syntax validation and least-privilege rule reviews for sudo policy changes. The underlying risk is Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
Incorrect Answers
A:That choice responds to a socket activation keeps port open failure. In this incident, Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
B:TCP wrappers normally evaluate a matching hosts.allow rule before hosts.deny. That describes a different fault. Here, Invalid sudoers syntax can break privilege delegation and an unvalidated edit is risky.
C:This option assumes A super-server such as xinetd launches enabled services in response to incoming connections. The reported symptoms instead call for: Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
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?
- Use visudo to validate the proposed sudoers rule, preferably a narrowly scoped included file.
- Maintain a minimal approved service inventory and review listeners periodically.
- Run visudo -c and sudo -l for an authorized test identity.
- Generate or update a suitable ssh-keygen identity with a strong passphrase and keep the private key protected.
- Require syntax validation and least-privilege rule reviews for sudo policy changes.
- 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.
LPI Level 1 (102-500) Practice Tests