100% Latest & Updated LPI 102-500 Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 200
A contractor's password-based login must stop immediately, while the UID and owned files remain intact pending review. Select THREE measures that follow directly from the root cause and lifecycle risk.
- Escape literal percent signs or place the logic in a separate executable script.
- When suspending an account review keys, active sessions and account expiry in addition to password state.
- Use passwd -l for the local password and separately review other authentication methods such as SSH keys.
- Inspect the locked password field and test that password authentication is denied.
- Choose character-versus-byte semantics explicitly in internationalized text tooling.
- Run the cron job with date formatting and compare the recorded command output.
Explanation
Correct Answers
B:When suspending an account review keys, active sessions and account expiry in addition to password state. It prevents repetition of the condition: Deleting the account would also disrupt UID ownership records; locking the password is a narrower credential action.
C:Use passwd -l for the local password and separately review other authentication methods such as SSH keys. This is appropriate because Deleting the account would also disrupt UID ownership records; locking the password is a narrower credential action.
D:Inspect the locked password field and test that password authentication is denied. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Deleting the account would also disrupt UID ownership records; locking the password is a narrower credential action.
Incorrect Answers
A:It would address cron percent escape rather than the present problem. The appropriate correction here is: Use passwd -l for the local password and separately review other authentication methods such as SSH keys.
E:The test for utf-8 length versus byte length would be: Test a multibyte accented character and compare byte count against character count. The relevant acceptance check here is: Inspect the locked password field and test that password authentication is denied.
F:In a crontab command field an unescaped percent is interpreted as a newline separator by cron. That describes a different fault. Here, Deleting the account would also disrupt UID ownership records; locking the password is a narrower credential action.
Question 201
A temporary trainee login should cease after a contract end date even if its password is still valid. What underlying Linux behavior should the administrator identify first?
- A recurring cron entry would repeat a one-off maintenance action unnecessarily.
- Password-aging fields alone do not enforce a hard account expiration date.
- UTF-8 encodes some characters as multiple bytes, so byte counts and character counts can differ.
- The bytes use a different character encoding than the consumer expects.
Explanation
Correct Answer
B:Password-aging fields alone do not enforce a hard account expiration date. This is the explanation that justifies the specific remedy: Set an account expiration with usermod -e or chage -E using the approved date.
Incorrect Answers
A:A recurring cron entry would repeat a one-off maintenance action unnecessarily. That describes a different fault. Here, Password-aging fields alone do not enforce a hard account expiration date.
C:It would address utf-8 length versus byte length rather than the present problem. The appropriate correction here is: Set an account expiration with usermod -e or chage -E using the approved date.
D:The test for character encoding conversion would be: Compare known accented characters and inspect conversion errors before importing. The relevant acceptance check here is: Check chage -l and attempt a controlled login after the expiration boundary.
Question 202
A temporary trainee login should cease after a contract end date even if its password is still valid. Which remedial step follows from the observed mechanism?
- Set an account expiration with usermod -e or chage -E using the approved date.
- Use an absolute executable path or declare the required PATH in the cron environment.
- Convert from the known source encoding to UTF-8 using iconv with explicit -f and -t options.
- Invoke the reporting command with TZ=UTC or set the service's own environment accordingly.
Explanation
Correct Answer
A:Set an account expiration with usermod -e or chage -E using the approved date. The change should be accepted only after this test: Check chage -l and attempt a controlled login after the expiration boundary.
Incorrect Answers
B:It would address cron path differs from terminal rather than the present problem. The appropriate correction here is: Set an account expiration with usermod -e or chage -E using the approved date.
C:That choice responds to a character encoding conversion failure. In this incident, Password-aging fields alone do not enforce a hard account expiration date.
D:It would address timezone only for one process rather than the present problem. The appropriate correction here is: Set an account expiration with usermod -e or chage -E using the approved date.
Question 203
A temporary trainee login should cease after a contract end date even if its password is still valid. What diagnostic result would demonstrate the target behavior?
- Inspect the resolved /etc/localtime target and compare offset before and after.
- Run locale and inspect LC_ALL plus category values before and after the change.
- Check chage -l and attempt a controlled login after the expiration boundary.
- Inspect systemd-analyze calendar output and the next trigger from systemctl list-timers.
Explanation
Correct Answer
C:Check chage -l and attempt a controlled login after the expiration boundary. This check is tied to the expected behavior rather than mere process uptime.
Incorrect Answers
A:That choice responds to a timezone database symlink failure. In this incident, Password-aging fields alone do not enforce a hard account expiration date.
B:Run locale and inspect LC_ALL plus category values before and after the change. belongs to a situation where LC_ALL overrides category-specific locale values and LANG fallback while it is set. Here the evidence supports a different requirement: Check chage -l and attempt a controlled login after the expiration boundary.
D:Inspect systemd-analyze calendar output and the next trigger from systemctl list-timers. could help with calendar schedule in systemd; it neither resolves nor demonstrates the current requirement. The distinguishing check is: Check chage -l and attempt a controlled login after the expiration boundary.
Question 204
A temporary trainee login should cease after a contract end date even if its password is still valid. Which ongoing control would best reduce the chance of the issue returning?
- Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit.
- Deploy and test timer and service units as a linked pair.
- Avoid complex shell quoting in crontabs; move nontrivial commands into tested scripts.
- Provision temporary accounts with explicit end dates and recurring expiry review.
Explanation
Correct Answer
D:Provision temporary accounts with explicit end dates and recurring expiry review. Sustained checks matter because Password-aging fields alone do not enforce a hard account expiration date.
Incorrect Answers
A:This belongs to lc_all overrides lang, where LC_ALL overrides category-specific locale values and LANG fallback while it is set. The current issue instead is: Password-aging fields alone do not enforce a hard account expiration date.
B:That choice responds to a timer triggers no service failure. In this incident, Password-aging fields alone do not enforce a hard account expiration date.
C: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: Provision temporary accounts with explicit end dates and recurring expiry review.
Question 205
A temporary trainee login should cease after a contract end date even if its password is still valid. Which TWO measures belong together as the direct correction and a discriminating verification? Select TWO.
- Set LC_MESSAGES and LC_NUMERIC separately to meet each requirement.
- Check chage -l and attempt a controlled login after the expiration boundary.
- Inspect the resolved /etc/localtime target and compare offset before and after.
- Keep scheduled jobs independent of interactive shell startup assumptions.
- Set an account expiration with usermod -e or chage -E using the approved date.
Explanation
Correct Answers
B:Check chage -l and attempt a controlled login after the expiration boundary. It distinguishes a genuine correction from a superficial edit that has not addressed the underlying cause: Password-aging fields alone do not enforce a hard account expiration date.
E:Set an account expiration with usermod -e or chage -E using the approved date. It addresses the root cause, while Provision temporary accounts with explicit end dates and recurring expiry review. reduces future recurrence.
Incorrect Answers
A:That choice responds to a locale category isolation failure. In this incident, Password-aging fields alone do not enforce a hard account expiration date.
C: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: Set an account expiration with usermod -e or chage -E using the approved date.
D:Keep scheduled jobs independent of interactive shell startup assumptions. belongs to a situation where Cron typically starts with a limited environment that need not match the interactive shell's PATH. Here the evidence supports a different requirement: Provision temporary accounts with explicit end dates and recurring expiry review.
Question 206
A user has the right supplementary groups but newly created files show the wrong default group owner. Which explanation most directly accounts for the failure in this environment?
- A queued at job persists until it runs or is explicitly removed.
- The primary GID, not the complete supplementary group list, normally determines the default file group.
- The configured timezone, not NTP synchronization, determines local-time presentation.
- Cron access can be restricted by /etc/cron.allow or /etc/cron.deny according to implementation rules.
Explanation
Correct Answer
B:The primary GID, not the complete supplementary group list, normally determines the default file group. This is the explanation that justifies the specific remedy: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
Incorrect Answers
A:This option assumes A queued at job persists until it runs or is explicitly removed. The reported symptoms instead call for: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
C:The configured timezone, not NTP synchronization, determines local-time presentation. That describes a different fault. Here, The primary GID, not the complete supplementary group list, normally determines the default file group.
D:It would address cron allow list blocks user rather than the present problem. The appropriate correction here is: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
Question 207
A user has the right supplementary groups but newly created files show the wrong default group owner. Which change most directly meets the stated requirement?
- Redirect stderr and stdout to controlled logs or use journal-aware service units with proper error handling.
- Use OnCalendar with the appropriate weekday/time expression in the timer unit.
- Set the intended primary group with usermod -g while retaining necessary supplemental groups.
- Queue the command using at with a concrete future time and check scheduler access rules.
Explanation
Correct Answer
C:Set the intended primary group with usermod -g while retaining necessary supplemental groups. Unlike a broad workaround, it targets the observed cause: The primary GID, not the complete supplementary group list, normally determines the default file group.
Incorrect Answers
A: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 id and create a test file to observe its default group ownership.
B: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: The primary GID, not the complete supplementary group list, normally determines the default file group.
D:This belongs to one-time future task, where A recurring cron entry would repeat a one-off maintenance action unnecessarily. The current issue instead is: The primary GID, not the complete supplementary group list, normally determines the default file group.
Question 208
A user has the right supplementary groups but newly created files show the wrong default group owner. Which test would confirm the suspected Linux mechanism?
- Run the parser under two installed locales and compare successful machine-readable results.
- Run atq again to verify the removed job no longer appears.
- Run id and create a test file to observe its default group ownership.
- Run under a neutral working directory and locate the generated output exactly.
Explanation
Correct Answer
C:Run id and create a test file to observe its default group ownership. The test is evidence-based because the underlying failure was: The primary GID, not the complete supplementary group list, normally determines the default file group.
Incorrect Answers
A:This belongs to stable parser output under c locale, where Locale-dependent human-readable output changes with language settings, so the parser is fragile. The current issue instead is: The primary GID, not the complete supplementary group list, normally determines the default file group.
B:This belongs to remove incorrect at task, where A queued at job persists until it runs or is explicitly removed. The current issue instead is: The primary GID, not the complete supplementary group list, normally determines the default file group.
D:It would address working directory in cron job rather than the present problem. The appropriate correction here is: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
Question 209
A user has the right supplementary groups but newly created files show the wrong default group owner. What operational safeguard addresses the root cause?
- Record file encodings at interchange boundaries rather than guessing from appearance.
- Design scheduled work with explicit failure reporting and log retention.
- Review primary and supplementary group policy separately during account changes.
- Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit.
Explanation
Correct Answer
C:Review primary and supplementary group policy separately during account changes. The underlying risk is The primary GID, not the complete supplementary group list, normally determines the default file group.
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: Run id and create a test file to observe its default group ownership.
B:Cron execution does not guarantee application-level observability without captured output and status. That describes a different fault. Here, The primary GID, not the complete supplementary group list, normally determines the default file group.
D:Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit. belongs to a situation where LC_ALL overrides category-specific locale values and LANG fallback while it is set. Here the evidence supports a different requirement: Review primary and supplementary group policy separately during account changes.
Question 210
A user has the right supplementary groups but newly created files show the wrong default group owner. Which THREE actions form a suitable remediation, verification and prevention plan? Select THREE.
- Review primary and supplementary group policy separately during account changes.
- Set the intended primary group with usermod -g while retaining necessary supplemental groups.
- Run id and create a test file to observe its default group ownership.
- Reserve LC_ALL overrides for narrow test commands and keep persistent locale policy explicit.
- Run atq again to verify the removed job no longer appears.
- Use absolute paths or explicitly cd into a validated task directory before writing.
Explanation
Correct Answers
A:Review primary and supplementary group policy separately during account changes. This control detects or prevents the same mechanism before another incident.
B:Set the intended primary group with usermod -g while retaining necessary supplemental groups. Unlike a broad workaround, it targets the observed cause: The primary GID, not the complete supplementary group list, normally determines the default file group.
C:Run id and create a test file to observe its default group ownership. The observation confirms the diagnosis or falsifies it before declaring the incident resolved.
Incorrect Answers
D:It would address lc_all overrides lang rather than the present problem. The appropriate correction here is: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
E:This option assumes A queued at job persists until it runs or is explicitly removed. The reported symptoms instead call for: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
F:Use absolute paths or explicitly cd into a validated task directory before writing. belongs to a situation where Scheduled jobs do not inherit the caller's working directory from an earlier terminal session. Here the evidence supports a different requirement: Set the intended primary group with usermod -g while retaining necessary supplemental groups.
LPI Level 1 (102-500) Practice Tests