100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 320
A user sets LANG=fr_FR.UTF-8 but tool output remains English because LC_ALL=C is exported. Choose THREE measures that together correct the failure, demonstrate success and reduce recurrence.
- Unset LC_ALL or choose the desired locale in the controlling precedence layer.
- Check stat permissions and run a controlled password authentication test.
- Provision temporary accounts with explicit end dates and recurring expiry review.
- Run locale and inspect LC_ALL plus category values before and after the change.
- Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit.
- Set Persistent=true for the OnCalendar timer when missed runs must be honored.
Explanation
Correct Answers
A:Unset LC_ALL or choose the desired locale in the controlling precedence layer. Unlike a broad workaround, it targets the observed cause: LC_ALL overrides category-specific locale values and LANG fallback while it is set.
D:Run locale and inspect LC_ALL plus category values before and after the change. It verifies that the targeted action (Unset LC_ALL or choose the desired locale in the controlling precedence layer.) achieved its intended outcome.
E:Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit. The underlying risk is LC_ALL overrides category-specific locale values and LANG fallback while it is set.
Incorrect Answers
B:This option assumes Password hash data should be protected in shadow rather than exposed with world-readable permissions. The reported symptoms instead call for: Unset LC_ALL or choose the desired locale in the controlling precedence layer.
C:Password-aging fields alone do not enforce a hard account expiration date. That describes a different fault. Here, LC_ALL overrides category-specific locale values and LANG fallback while it is set.
F:This option assumes A wall-clock timer does not necessarily catch up missed activations unless persistent semantics are configured. The reported symptoms instead call for: Unset LC_ALL or choose the desired locale in the controlling precedence layer.
Question 321
A monitoring script searches for English date names but fails when executed under localized environments. What underlying Linux behavior should the administrator identify first?
- Deleting a primary group without reassigning dependent accounts can break account metadata and access assumptions.
- Locale-dependent human-readable output changes with language settings, so the parser is fragile.
- NSS can resolve users through sources other than the local passwd file.
- A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action.
Explanation
Correct Answer
B:Locale-dependent human-readable output changes with language settings, so the parser is fragile. That cause connects the stated symptom to the corrective action: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
Incorrect Answers
A:It would address group still has active members rather than the present problem. The appropriate correction here is: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
C:NSS can resolve users through sources other than the local passwd file. That describes a different fault. Here, Locale-dependent human-readable output changes with language settings, so the parser is fragile.
D:The test for timer triggers no service would be: Use systemctl list-timers and journalctl -u for the timer and service to verify activation. The relevant acceptance check here is: Run the parser under two installed locales and compare successful machine-readable results.
Question 322
A monitoring script searches for English date names but fails when executed under localized environments. What should the administrator do to correct this behavior?
- Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
- Apply reviewed updates separately to existing accounts or distribute a managed dotfile policy.
- Remove the username field for a per-user crontab or place the entry into the intended system crontab format.
- Use usermod -aG docker username and preserve the other supplementary memberships.
Explanation
Correct Answer
A:Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands. It addresses the root cause, while Avoid parsing localized prose when structured output is available. reduces future recurrence.
Incorrect Answers
B:This option assumes The skeleton is copied at account home creation; it is not a live template for existing homes. The reported symptoms instead call for: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
C:Remove the username field for a per-user crontab or place the entry into the intended system crontab format. could help with user crontab versus system crontab; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run the parser under two installed locales and compare successful machine-readable results.
D:It would address supplementary group preservation rather than the present problem. The appropriate correction here is: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
Question 323
A monitoring script searches for English date names but fails when executed under localized environments. Which check would provide the strongest evidence that the fix worked?
- Confirm getent passwd no longer resolves the account and its intended home path was removed.
- Run the parser under two installed locales and compare successful machine-readable results.
- Check chage -l and attempt a controlled login after the expiration boundary.
- Run under a neutral working directory and locate the generated output exactly.
Explanation
Correct Answer
B:Run the parser under two installed locales and compare successful machine-readable results. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Incorrect Answers
A:This option assumes Deleting an account without the remove-home option may leave home and mailbox artifacts. The reported symptoms instead call for: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
C:Password-aging fields alone do not enforce a hard account expiration date. That describes a different fault. Here, Locale-dependent human-readable output changes with language settings, so the parser is fragile.
D:That choice responds to a working directory in cron job failure. In this incident, Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Question 324
A monitoring script searches for English date names but fails when executed under localized environments. Which repeatable check would reduce recurrence?
- Document whether missed maintenance runs should be skipped, caught up or deduplicated.
- Avoid parsing localized prose when structured output is available.
- Monitor ownership and permissions of identity databases as security-sensitive configuration.
- Require diffing the existing group list before any supplementary-group modification.
Explanation
Correct Answer
B:Avoid parsing localized prose when structured output is available. The underlying risk is Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Incorrect Answers
A:Document whether missed maintenance runs should be skipped, caught up or deduplicated. belongs to a situation where A wall-clock timer does not necessarily catch up missed activations unless persistent semantics are configured. Here the evidence supports a different requirement: Avoid parsing localized prose when structured output is available.
C:It would address shadow file sensitivity rather than the present problem. The appropriate correction here is: Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
D:usermod -G without -a replaces the entire supplementary group list. That describes a different fault. Here, Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Question 325
A monitoring script searches for English date names but fails when executed under localized environments. Which TWO measures belong together as the direct correction and a discriminating verification? Select TWO.
- Treat initial credential change and full account expiration as separate identity controls.
- Run id username before and after the edit to verify both groups are present.
- Run the parser under two installed locales and compare successful machine-readable results.
- Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands.
- For approved disposable test accounts, use userdel -r and separately check non-home data.
Explanation
Correct Answers
C:Run the parser under two installed locales and compare successful machine-readable results. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
D:Use locale-neutral machine formats where possible and set LANG=C or LC_ALL=C only for required commands. It corrects the mechanism identified in the scenario: Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Incorrect Answers
A:A normal password set does not always impose a mandatory first-login change. That describes a different fault. Here, Locale-dependent human-readable output changes with language settings, so the parser is fragile.
B:Run id username before and after the edit to verify both groups are present. belongs to a situation where usermod -G without -a replaces the entire supplementary group list. Here the evidence supports a different requirement: Run the parser under two installed locales and compare successful machine-readable results.
E:This belongs to remove account and managed home, where Deleting an account without the remove-home option may leave home and mailbox artifacts. The current issue instead is: Locale-dependent human-readable output changes with language settings, so the parser is fragile.
Question 326
A service needs to print reports in UTC without altering the system timezone for all users. Which failure condition fits the evidence without assuming an unrelated fault?
- A recurring cron entry would repeat a one-off maintenance action unnecessarily.
- A normal password set does not always impose a mandatory first-login change.
- Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
- The skeleton is copied at account home creation; it is not a live template for existing homes.
Explanation
Correct Answer
C:Timezone conversion for one process can be controlled with TZ, independent of system-wide settings. That cause connects the stated symptom to the corrective action: Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
Incorrect Answers
A:A recurring cron entry would repeat a one-off maintenance action unnecessarily. That describes a different fault. Here, Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
B:This belongs to expire password at next login, where A normal password set does not always impose a mandatory first-login change. The current issue instead is: Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
D:The test for skeleton change is not retroactive would be: Create one new account and compare it with an older account to establish the copy boundary. The relevant acceptance check here is: Compare date output from the service and unchanged local-user shell.
Question 327
A service needs to print reports in UTC without altering the system timezone for all users. What should the administrator do to correct this behavior?
- Set Persistent=true for the OnCalendar timer when missed runs must be honored.
- Identify the queued job with atq and remove its specific job number using atrm.
- Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
- Use an absolute executable path or declare the required PATH in the cron environment.
Explanation
Correct Answer
C:Invoke the reporting command with TZ=UTC or set the service's own environment accordingly. This is appropriate because Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
Incorrect Answers
A:It would address catch-up after power outage rather than the present problem. The appropriate correction here is: Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
B:A queued at job persists until it runs or is explicitly removed. That describes a different fault. Here, Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
D:Cron typically starts with a limited environment that need not match the interactive shell's PATH. That describes a different fault. Here, Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
Question 328
A service needs to print reports in UTC without altering the system timezone for all users. Which test would confirm the suspected Linux mechanism?
- Compare date output from the service and unchanged local-user shell.
- Confirm getent passwd no longer resolves the account and its intended home path was removed.
- Compare passwd data, home-directory ownership and path references before and after.
- Inspect crontab -l and the cron log for parsing and successful execution.
Explanation
Correct Answer
A:Compare date output from the service and unchanged local-user shell. It verifies that the targeted action (Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.) achieved its intended outcome.
Incorrect Answers
B:That choice responds to a remove account and managed home failure. In this incident, Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
C:This option assumes usermod -l changes the login name but does not automatically move every home pathname. The reported symptoms instead call for: Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
D: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: Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
Question 329
A service needs to print reports in UTC without altering the system timezone for all users. Which practice is most useful after the immediate repair succeeds?
- Use purpose-bound service identities with noninteractive shells and minimal authorization.
- Use scoped timezone overrides for service-specific reporting requirements.
- Review primary and supplementary group policy separately during account changes.
- Choose calendar versus monotonic schedules from the actual business requirement.
Explanation
Correct Answer
B:Use scoped timezone overrides for service-specific reporting requirements. The underlying risk is Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
Incorrect Answers
A:The test for nonlogin service identity would be: Inspect getent passwd and attempt an interactive login in a controlled test. The relevant acceptance check here is: Compare date output from the service and unchanged local-user shell.
C:The primary GID, not the complete supplementary group list, normally determines the default file group. That describes a different fault. Here, Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
D:This belongs to calendar schedule in systemd, where Monotonic timers measure elapsed time rather than matching calendar dates and weekdays. The current issue instead is: Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
Question 330
A service needs to print reports in UTC without altering the system timezone for all users. Which THREE actions form a suitable remediation, verification and prevention plan? Select THREE.
- Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
- Check stat permissions and run a controlled password authentication test.
- Include password-aging fields in regular privileged-identity policy audits.
- Use OnCalendar with the appropriate weekday/time expression in the timer unit.
- Use scoped timezone overrides for service-specific reporting requirements.
- Compare date output from the service and unchanged local-user shell.
Explanation
Correct Answers
A:Invoke the reporting command with TZ=UTC or set the service's own environment accordingly. It is the direct response; verify the result by: Compare date output from the service and unchanged local-user shell.
E:Use scoped timezone overrides for service-specific reporting requirements. It makes the outcome of the targeted repair (Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.) repeatable.
F:Compare date output from the service and unchanged local-user shell. It verifies that the targeted action (Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.) achieved its intended outcome.
Incorrect Answers
B:This belongs to shadow file sensitivity, where Password hash data should be protected in shadow rather than exposed with world-readable permissions. The current issue instead is: Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
C:It would address password aging audit rather than the present problem. The appropriate correction here is: Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
D:This belongs to calendar schedule in systemd, where Monotonic timers measure elapsed time rather than matching calendar dates and weekdays. The current issue instead is: Timezone conversion for one process can be controlled with TZ, independent of system-wide settings.
LPI Level 1 (102-500) Practice Tests