100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 220
An LDAP-authenticated user works on a host but grep on /etc/passwd finds no matching account. Choose THREE measures that together correct the failure, demonstrate success and reduce recurrence.
- Record file encodings at interchange boundaries rather than guessing from appearance.
- Compare getent and direct /etc/passwd results for the same network identity.
- Use getent passwd username to query the host's configured name-service lookup chain.
- Redirect stderr and stdout to controlled logs or use journal-aware service units with proper error handling.
- Use systemctl list-timers and journalctl -u for the timer and service to verify activation.
- Audit /etc/nsswitch.conf and NSS reachability before troubleshooting remote identities.
Explanation
Correct Answers
B:Compare getent and direct /etc/passwd results for the same network identity. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: NSS can resolve users through sources other than the local passwd file.
C:Use getent passwd username to query the host's configured name-service lookup chain. It is the direct response; verify the result by: Compare getent and direct /etc/passwd results for the same network identity.
F:Audit /etc/nsswitch.conf and NSS reachability before troubleshooting remote identities. This control detects or prevents the same mechanism before another incident.
Incorrect Answers
A:Record file encodings at interchange boundaries rather than guessing from appearance. could help with character encoding conversion; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare getent and direct /etc/passwd results for the same network identity.
D:Redirect stderr and stdout to controlled logs or use journal-aware service units with proper error handling. belongs to a situation where Cron execution does not guarantee application-level observability without captured output and status. Here the evidence supports a different requirement: Use getent passwd username to query the host's configured name-service lookup chain.
E:Use systemctl list-timers and journalctl -u for the timer and service to verify activation. belongs to a situation where A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action. Here the evidence supports a different requirement: Compare getent and direct /etc/passwd results for the same network identity.
Question 221
A local account is renamed but its home directory path and filesystem references still reflect the old name. What underlying Linux behavior should the administrator identify first?
- Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
- usermod -l changes the login name but does not automatically move every home pathname.
- System crontabs include a user field, whereas per-user crontabs have only five time fields and the command.
- Starting a timer activates it now; enabling it installs the boot-time dependency for future starts.
Explanation
Correct Answer
B:usermod -l changes the login name but does not automatically move every home pathname. That cause connects the stated symptom to the corrective action: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
Incorrect Answers
A:That choice responds to a timezone only for one process failure. In this incident, usermod -l changes the login name but does not automatically move every home pathname.
C:This option assumes System crontabs include a user field, whereas per-user crontabs have only five time fields and the command. The reported symptoms instead call for: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
D:That choice responds to a systemd timer enable versus start failure. In this incident, usermod -l changes the login name but does not automatically move every home pathname.
Question 222
A local account is renamed but its home directory path and filesystem references still reflect the old name. Which intervention addresses the specific problem with the least unrelated change?
- Identify the queued job with atq and remove its specific job number using atrm.
- Correct the timer Unit target or provide the matching .service with an executable command.
- Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
- Use an absolute executable path or declare the required PATH in the cron environment.
Explanation
Correct Answer
C:Plan a coordinated usermod -l and -d -m change with home-path and service references checked. Unlike a broad workaround, it targets the observed cause: usermod -l changes the login name but does not automatically move every home pathname.
Incorrect Answers
A:It would address remove incorrect at task rather than the present problem. The appropriate correction here is: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
B:A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action. That describes a different fault. Here, usermod -l changes the login name but does not automatically move every home pathname.
D:Use an absolute executable path or declare the required PATH in the cron environment. could help with cron path differs from terminal; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare passwd data, home-directory ownership and path references before and after.
Question 223
A local account is renamed but its home directory path and filesystem references still reflect the old name. How should the administrator verify the required behavior?
- Compare passwd data, home-directory ownership and path references before and after.
- Force a known failure and confirm an actionable error reaches the configured log or alert.
- Execute the task under a cron-like environment and capture its stderr and exit status.
- Run locale and inspect LC_ALL plus category values before and after the change.
Explanation
Correct Answer
A:Compare passwd data, home-directory ownership and path references before and after. This check is tied to the expected behavior rather than mere process uptime.
Incorrect Answers
B:The test for cron output visibility would be: Force a known failure and confirm an actionable error reaches the configured log or alert. The relevant acceptance check here is: Compare passwd data, home-directory ownership and path references before and after.
C:Execute the task under a cron-like environment and capture its stderr and exit status. could help with cron path differs from terminal; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare passwd data, home-directory ownership and path references before and after.
D:It would address lc_all overrides lang rather than the present problem. The appropriate correction here is: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
Question 224
A local account is renamed but its home directory path and filesystem references still reflect the old name. What should the team standardize to prevent similar incidents?
- Schedule account renames as identity migrations with rollback and service-owner review.
- Choose character-versus-byte semantics explicitly in internationalized text tooling.
- Design scheduled work with explicit failure reporting and log retention.
- Record file encodings at interchange boundaries rather than guessing from appearance.
Explanation
Correct Answer
A:Schedule account renames as identity migrations with rollback and service-owner review. It prevents repetition of the condition: usermod -l changes the login name but does not automatically move every home pathname.
Incorrect Answers
B:Choose character-versus-byte semantics explicitly in internationalized text tooling. could help with utf-8 length versus byte length; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare passwd data, home-directory ownership and path references before and after.
C:It would address cron output visibility rather than the present problem. The appropriate correction here is: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
D:This option assumes The bytes use a different character encoding than the consumer expects. The reported symptoms instead call for: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
Question 225
A local account is renamed but its home directory path and filesystem references still reflect the old name. Which TWO measures belong together as the direct correction and a discriminating verification? Select TWO.
- Run crontab -l as the test user and check the scheduler's access log.
- Use the distribution's timezone tool to select a supported /usr/share/zoneinfo identifier.
- Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
- Avoid complex shell quoting in crontabs; move nontrivial commands into tested scripts.
- Compare passwd data, home-directory ownership and path references before and after.
Explanation
Correct Answers
C:Plan a coordinated usermod -l and -d -m change with home-path and service references checked. It is the direct response; verify the result by: Compare passwd data, home-directory ownership and path references before and after.
E:Compare passwd data, home-directory ownership and path references before and after. This check is tied to the expected behavior rather than mere process uptime.
Incorrect Answers
A:The test for cron allow list blocks user would be: Run crontab -l as the test user and check the scheduler's access log. The relevant acceptance check here is: Compare passwd data, home-directory ownership and path references before and after.
B:Use the distribution's timezone tool to select a supported /usr/share/zoneinfo identifier. belongs to a situation where The local-time database link is stale or references a zone file that is no longer valid. Here the evidence supports a different requirement: Plan a coordinated usermod -l and -d -m change with home-path and service references checked.
D:Avoid complex shell quoting in crontabs; move nontrivial commands into tested scripts. belongs to a situation where In a crontab command field an unescaped percent is interpreted as a newline separator by cron. Here the evidence supports a different requirement: Schedule account renames as identity migrations with rollback and service-owner review.
Question 226
An offboarded test user is gone from the password database, but its old home folder remains on disk. Which diagnosis is supported by the observations?
- A recurring cron entry would repeat a one-off maintenance action unnecessarily.
- An all-category locale setting affects more than message translations, including numeric punctuation.
- A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action.
- Deleting an account without the remove-home option may leave home and mailbox artifacts.
Explanation
Correct Answer
D:Deleting an account without the remove-home option may leave home and mailbox artifacts. The observation is consistent with this mechanism; a targeted repair would be: For approved disposable test accounts, use userdel -r and separately check non-home data.
Incorrect Answers
A:This option assumes A recurring cron entry would repeat a one-off maintenance action unnecessarily. The reported symptoms instead call for: For approved disposable test accounts, use userdel -r and separately check non-home data.
B:An all-category locale setting affects more than message translations, including numeric punctuation. That describes a different fault. Here, Deleting an account without the remove-home option may leave home and mailbox artifacts.
C:This option assumes A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action. The reported symptoms instead call for: For approved disposable test accounts, use userdel -r and separately check non-home data.
Question 227
An offboarded test user is gone from the password database, but its old home folder remains on disk. Which configuration approach is appropriate for this requirement?
- Set LC_MESSAGES and LC_NUMERIC separately to meet each requirement.
- Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
- Review the applicable allow/deny files and explicitly authorize the intended user under policy.
- For approved disposable test accounts, use userdel -r and separately check non-home data.
Explanation
Correct Answer
D:For approved disposable test accounts, use userdel -r and separately check non-home data. This is appropriate because Deleting an account without the remove-home option may leave home and mailbox artifacts.
Incorrect Answers
A:That choice responds to a locale category isolation failure. In this incident, Deleting an account without the remove-home option may leave home and mailbox artifacts.
B:It would address stable parser output under c locale rather than the present problem. The appropriate correction here is: For approved disposable test accounts, use userdel -r and separately check non-home data.
C:The test for cron allow list blocks user would be: Run crontab -l as the test user and check the scheduler's access log. The relevant acceptance check here is: Confirm getent passwd no longer resolves the account and its intended home path was removed.
Question 228
An offboarded test user is gone from the password database, but its old home folder remains on disk. What diagnostic result would demonstrate the target behavior?
- Run crontab -l as the test user and check the scheduler's access log.
- Inspect the resolved /etc/localtime target and compare offset before and after.
- Confirm getent passwd no longer resolves the account and its intended home path was removed.
- Compare timedatectl status and date output with date -u.
Explanation
Correct Answer
C:Confirm getent passwd no longer resolves the account and its intended home path was removed. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
Incorrect Answers
A:It would address cron allow list blocks user rather than the present problem. The appropriate correction here is: For approved disposable test accounts, use userdel -r and separately check non-home data.
B:This option assumes The local-time database link is stale or references a zone file that is no longer valid. The reported symptoms instead call for: For approved disposable test accounts, use userdel -r and separately check non-home data.
D:Compare timedatectl status and date output with date -u. belongs to a situation where The configured timezone, not NTP synchronization, determines local-time presentation. Here the evidence supports a different requirement: Confirm getent passwd no longer resolves the account and its intended home path was removed.
Question 229
An offboarded test user is gone from the password database, but its old home folder remains on disk. Which practice is most useful after the immediate repair succeeds?
- Use scoped timezone overrides for service-specific reporting requirements.
- Require a data-retention decision before using account deletion with filesystem cleanup.
- Choose calendar versus monotonic schedules from the actual business requirement.
- Record file encodings at interchange boundaries rather than guessing from appearance.
Explanation
Correct Answer
B:Require a data-retention decision before using account deletion with filesystem cleanup. This control detects or prevents the same mechanism before another incident.
Incorrect Answers
A:It would address timezone only for one process rather than the present problem. The appropriate correction here is: For approved disposable test accounts, use userdel -r and separately check non-home data.
C:Monotonic timers measure elapsed time rather than matching calendar dates and weekdays. That describes a different fault. Here, Deleting an account without the remove-home option may leave home and mailbox artifacts.
D:That choice responds to a character encoding conversion failure. In this incident, Deleting an account without the remove-home option may leave home and mailbox artifacts.
Question 230
An offboarded test user is gone from the password database, but its old home folder remains on disk. Choose THREE measures that together correct the failure, demonstrate success and reduce recurrence.
- Confirm getent passwd no longer resolves the account and its intended home path was removed.
- Run locale -a and a test locale-sensitive command after installation.
- Correct the timer Unit target or provide the matching .service with an executable command.
- Provision required locales in the host image before assigning them to users.
- For approved disposable test accounts, use userdel -r and separately check non-home data.
- Require a data-retention decision before using account deletion with filesystem cleanup.
Explanation
Correct Answers
A:Confirm getent passwd no longer resolves the account and its intended home path was removed. It verifies that the targeted action (For approved disposable test accounts, use userdel -r and separately check non-home data.) achieved its intended outcome.
E:For approved disposable test accounts, use userdel -r and separately check non-home data. It corrects the mechanism identified in the scenario: Deleting an account without the remove-home option may leave home and mailbox artifacts.
F:Require a data-retention decision before using account deletion with filesystem cleanup. It preserves the corrective behavior established through: For approved disposable test accounts, use userdel -r and separately check non-home data.
Incorrect Answers
B:Run locale -a and a test locale-sensitive command after installation. could help with available locale not generated; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Confirm getent passwd no longer resolves the account and its intended home path was removed.
C:This option assumes A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action. The reported symptoms instead call for: For approved disposable test accounts, use userdel -r and separately check non-home data.
D:This belongs to available locale not generated, where The requested locale name may not be generated or installed locally. The current issue instead is: Deleting an account without the remove-home option may leave home and mailbox artifacts.
LPI Level 1 (102-500) Practice Tests