100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
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.
Question 331
A machine shows the wrong local wall-clock time after relocation although UTC synchronization is correct. Which diagnosis is supported by the observations?
- The configured timezone, not NTP synchronization, determines local-time presentation.
- Deleting an account without the remove-home option may leave home and mailbox artifacts.
- NSS can resolve users through sources other than the local passwd file.
- usermod -G without -a replaces the entire supplementary group list.
Explanation
Correct Answer
A:The configured timezone, not NTP synchronization, determines local-time presentation. The observation is consistent with this mechanism; a targeted repair would be: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
Incorrect Answers
B:This option assumes Deleting an account without the remove-home option may leave home and mailbox artifacts. The reported symptoms instead call for: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
C:The test for look up ldap-mapped identity would be: Compare getent and direct /etc/passwd results for the same network identity. The relevant acceptance check here is: Compare timedatectl status and date output with date -u.
D:This option assumes usermod -G without -a replaces the entire supplementary group list. The reported symptoms instead call for: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
Question 332
A machine shows the wrong local wall-clock time after relocation although UTC synchronization is correct. Which intervention addresses the specific problem with the least unrelated change?
- Review the applicable allow/deny files and explicitly authorize the intended user under policy.
- Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
- Queue the command using at with a concrete future time and check scheduler access rules.
- Expire the account's current password with passwd -e or an equivalent chage setting.
Explanation
Correct Answer
B:Set the correct system timezone using timedatectl set-timezone with the proper zone identifier. It corrects the mechanism identified in the scenario: The configured timezone, not NTP synchronization, determines local-time presentation.
Incorrect Answers
A:Review the applicable allow/deny files and explicitly authorize the intended user under policy. belongs to a situation where Cron access can be restricted by /etc/cron.allow or /etc/cron.deny according to implementation rules. Here the evidence supports a different requirement: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
C:That choice responds to a one-time future task failure. In this incident, The configured timezone, not NTP synchronization, determines local-time presentation.
D:This option assumes A normal password set does not always impose a mandatory first-login change. The reported symptoms instead call for: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
Question 333
A machine shows the wrong local wall-clock time after relocation although UTC synchronization is correct. What diagnostic result would demonstrate the target behavior?
- Run atq again to verify the removed job no longer appears.
- Confirm getent passwd no longer resolves the account and its intended home path was removed.
- Compare timedatectl status and date output with date -u.
- Run under a neutral working directory and locate the generated output exactly.
Explanation
Correct Answer
C:Compare timedatectl status and date output with date -u. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
Incorrect Answers
A:Run atq again to verify the removed job no longer appears. could help with remove incorrect at task; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare timedatectl status and date output with date -u.
B:Deleting an account without the remove-home option may leave home and mailbox artifacts. That describes a different fault. Here, The configured timezone, not NTP synchronization, determines local-time presentation.
D:Scheduled jobs do not inherit the caller's working directory from an earlier terminal session. That describes a different fault. Here, The configured timezone, not NTP synchronization, determines local-time presentation.
Question 334
A machine shows the wrong local wall-clock time after relocation although UTC synchronization is correct. What operational safeguard addresses the root cause?
- Manage cron permissions centrally rather than altering service credentials.
- Require a data-retention decision before using account deletion with filesystem cleanup.
- Use at for bounded one-time work and remove expired scheduler artifacts after review.
- Treat timezone selection and accurate UTC clock synchronization as separate operations.
Explanation
Correct Answer
D:Treat timezone selection and accurate UTC clock synchronization as separate operations. This control detects or prevents the same mechanism before another incident.
Incorrect Answers
A:Manage cron permissions centrally rather than altering service credentials. could help with cron allow list blocks user; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare timedatectl status and date output with date -u.
B: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: The configured timezone, not NTP synchronization, determines local-time presentation.
C:Use at for bounded one-time work and remove expired scheduler artifacts after review. could help with one-time future task; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare timedatectl status and date output with date -u.
Question 335
A machine shows the wrong local wall-clock time after relocation although UTC synchronization is correct. Select TWO justified actions that address this particular problem and confirm closure.
- Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
- Require peer review of high-impact one-time scheduled operations.
- Compare timedatectl status and date output with date -u.
- Use getent group and id for affected users and verify group deletion only after dependencies clear.
- Enumerate membership and switch primary groups before deleting the obsolete group.
Explanation
Correct Answers
A:Set the correct system timezone using timedatectl set-timezone with the proper zone identifier. It addresses the root cause, while Treat timezone selection and accurate UTC clock synchronization as separate operations. reduces future recurrence.
C:Compare timedatectl status and date output with date -u. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: The configured timezone, not NTP synchronization, determines local-time presentation.
Incorrect Answers
B:This option assumes A queued at job persists until it runs or is explicitly removed. The reported symptoms instead call for: Set the correct system timezone using timedatectl set-timezone with the proper zone identifier.
D:Use getent group and id for affected users and verify group deletion only after dependencies clear. could help with group still has active members; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Compare timedatectl status and date output with date -u.
E:This belongs to group still has active members, where Deleting a primary group without reassigning dependent accounts can break account metadata and access assumptions. The current issue instead is: The configured timezone, not NTP synchronization, determines local-time presentation.
Question 336
A user sets LANG=de_DE.UTF-8 but tools warn that the locale cannot be set on the host. What underlying Linux behavior should the administrator identify first?
- The primary GID, not the complete supplementary group list, normally determines the default file group.
- The skeleton is copied at account home creation; it is not a live template for existing homes.
- The requested locale name may not be generated or installed locally.
- A timer activates its associated .service unit; a wrong or missing unit mapping prevents the intended action.
Explanation
Correct Answer
C:The requested locale name may not be generated or installed locally. The observation is consistent with this mechanism; a targeted repair would be: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
Incorrect Answers
A:This option assumes The primary GID, not the complete supplementary group list, normally determines the default file group. The reported symptoms instead call for: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
B:That choice responds to a skeleton change is not retroactive failure. In this incident, The requested locale name may not be generated or installed locally.
D: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: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
Question 337
A user sets LANG=de_DE.UTF-8 but tools warn that the locale cannot be set on the host. Which intervention addresses the specific problem with the least unrelated change?
- Queue the command using at with a concrete future time and check scheduler access rules.
- List locales with locale -a and generate/install the required locale through the distribution's mechanism.
- Redirect stderr and stdout to controlled logs or use journal-aware service units with proper error handling.
- Expire the account's current password with passwd -e or an equivalent chage setting.
Explanation
Correct Answer
B:List locales with locale -a and generate/install the required locale through the distribution's mechanism. Unlike a broad workaround, it targets the observed cause: The requested locale name may not be generated or installed locally.
Incorrect Answers
A:The test for one-time future task would be: Use atq to confirm the pending job and check completion after the scheduled time. The relevant acceptance check here is: Run locale -a and a test locale-sensitive command after installation.
C: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: Run locale -a and a test locale-sensitive command after installation.
D:Expire the account's current password with passwd -e or an equivalent chage setting. could help with expire password at next login; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run locale -a and a test locale-sensitive command after installation.
Question 338
A user sets LANG=de_DE.UTF-8 but tools warn that the locale cannot be set on the host. What focused test would distinguish a real correction from a cosmetic change?
- Run locale -a and a test locale-sensitive command after installation.
- Power down through one calendar boundary and confirm a catch-up activation after boot.
- Execute the task under a cron-like environment and capture its stderr and exit status.
- Inspect getent passwd and attempt an interactive login in a controlled test.
Explanation
Correct Answer
A:Run locale -a and a test locale-sensitive command after installation. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: The requested locale name may not be generated or installed locally.
Incorrect Answers
B:It would address catch-up after power outage rather than the present problem. The appropriate correction here is: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
C:This belongs to cron path differs from terminal, where Cron typically starts with a limited environment that need not match the interactive shell's PATH. The current issue instead is: The requested locale name may not be generated or installed locally.
D:An ordinary interactive login shell in /etc/passwd can permit shell access if credentials and policy allow. That describes a different fault. Here, The requested locale name may not be generated or installed locally.
Question 339
A user sets LANG=de_DE.UTF-8 but tools warn that the locale cannot be set on the host. What should the team standardize to prevent similar incidents?
- Monitor ownership and permissions of identity databases as security-sensitive configuration.
- When suspending an account review keys, active sessions and account expiry in addition to password state.
- Provision required locales in the host image before assigning them to users.
- Document whether missed maintenance runs should be skipped, caught up or deduplicated.
Explanation
Correct Answer
C:Provision required locales in the host image before assigning them to users. It preserves the corrective behavior established through: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
Incorrect Answers
A:It would address shadow file sensitivity rather than the present problem. The appropriate correction here is: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
B:It would address lock password without destroying identity rather than the present problem. The appropriate correction here is: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
D:It would address catch-up after power outage rather than the present problem. The appropriate correction here is: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
Question 340
A user sets LANG=de_DE.UTF-8 but tools warn that the locale cannot be set on the host. Which THREE actions form a suitable remediation, verification and prevention plan? Select THREE.
- Execute the task under a cron-like environment and capture its stderr and exit status.
- Provision required locales in the host image before assigning them to users.
- Review primary and supplementary group policy separately during account changes.
- List locales with locale -a and generate/install the required locale through the distribution's mechanism.
- Enable and start the intended timer with systemctl enable --now when that is permitted.
- Run locale -a and a test locale-sensitive command after installation.
Explanation
Correct Answers
B:Provision required locales in the host image before assigning them to users. It preserves the corrective behavior established through: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
D:List locales with locale -a and generate/install the required locale through the distribution's mechanism. Unlike a broad workaround, it targets the observed cause: The requested locale name may not be generated or installed locally.
F:Run locale -a and a test locale-sensitive command after installation. This check is tied to the expected behavior rather than mere process uptime.
Incorrect Answers
A:It would address cron path differs from terminal rather than the present problem. The appropriate correction here is: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
C:This option assumes The primary GID, not the complete supplementary group list, normally determines the default file group. The reported symptoms instead call for: List locales with locale -a and generate/install the required locale through the distribution's mechanism.
E:Enable and start the intended timer with systemctl enable --now when that is permitted. could help with systemd timer enable versus start; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Run locale -a and a test locale-sensitive command after installation.
LPI Level 1 (102-500) Practice Tests