LPI 102-500 Practice Test 6 - Prepaway
Practice Exams:

Pass LPI 102-500 Exam in First Attempt Guaranteed!

Get 100% Latest Exam Questions, Accurate & Verified Answers!

30 Days Free Updates, Instant Download!

Verified By Experts
Premium Bundle
$29.98
$79.99 $109.97

102-500 Premium Bundle


  • Premium File 120 Questions & Answers. Last update: Nov 13, 2026
  • Training Course 126 Lectures
  • Study Guide 962 Pages

LPI 102-500 Practice Test 6

Question 50

At fictional Oakridge Services, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: A team defines a backup alias expecting to pass a variable directory but the shorthand silently ignores argument handling. The decisive evidence is: type shows the name is an alias and the intended positional argument is never referenced by the alias expansion. Which paired action and independent proof BEST satisfies the requirement?

  1. For Oakridge Services, the Linux support team should: Scoped correction: Set appropriate restrictive owner and execute permissions and check interpreter availability under the service account. Independent acceptance: An approved service identity can execute the script while unrelated users cannot modify it.
  2. For Oakridge Services, the Linux support team should: Scoped correction: Use a quoted Bash function for reusable argument-aware sequences and keep the alias only for simple substitutions. Independent acceptance: Calling the function with a directory containing spaces processes exactly that location and no unintended file.
  3. For Oakridge Services, the Linux support team should: Scoped correction: Test the command's return code and route failure to cleanup and an explicit nonzero script exit. Independent acceptance: An injected archive failure produces no success message and the caller observes a nonzero status.
  4. For Oakridge Services, the Linux support team should: Scoped correction: Read structured output line by line with an appropriate read loop and quote each value as data. Independent acceptance: A sample with spaces and blank fields preserves record boundaries and produces one output per intended record.

Explanation

Correct Answer

B:

Calling the function with a directory containing spaces processes exactly that location and no unintended file. This measures whether the response corrected type shows the name is an alias and the intended positional argument is never referenced by the alias expansion rather than merely completing a configuration step.

Incorrect Answers

A:

A test that scoped correction: Set appropriate restrictive owner and execute permissions and check interpreter availability under the service account. Independent acceptance: An approved service identity can execute the script while unrelated users cannot modify it would not demonstrate closure of this condition. The needed proof is calling the function with a directory containing spaces processes exactly that location and no unintended file.

C:

Scoped correction: Test the command's return code and route failure to cleanup and an explicit nonzero script exit. Independent acceptance: An injected archive failure produces no success message and the caller observes a nonzero status. That does not demonstrate the case-specific success condition: calling the function with a directory containing spaces processes exactly that location and no unintended file. Aliases expand command text; shell functions can explicitly consume and validate arguments.

D:

Scoped correction: Read structured output line by line with an appropriate read loop and quote each value as data. Independent acceptance: A sample with spaces and blank fields preserves record boundaries and produces one output per intended record. That result does not test the original problem, identified by type shows the name is an alias and the intended positional argument is never referenced by the alias expansion. Recovery must show that calling the function with a directory containing spaces processes exactly that location and no unintended file.

Question 51

At fictional Silverfield Finance, the Linux shell and scripting team is working during a controlled system-configuration acceptance test. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The diagnostic evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which bounded step BEST resolves the described problem?

  1. For Silverfield Finance, the Linux support team should: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently.
  2. For Silverfield Finance, the Linux support team should: Quote pathname expansions and validate parameters before invoking the file utility.
  3. For Silverfield Finance, the Linux support team should: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.
  4. For Silverfield Finance, the Linux support team should: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths.

Explanation

Correct Answer

C:

Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. This addresses the evidence that the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Validate the outcome by checking that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. Preserve this constraint during the change: Changing /etc/skel does not retroactively update existing user home directories.

Incorrect Answers

A:

Another possible response is to select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. The case evidence instead shows that the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Account creation copies configured skeleton material only when the home directory is initialized.

B:

Quote pathname expansions and validate parameters before invoking the file utility. This does not address the reported incident: newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The case-specific correction is to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

D:

One alternative would be to use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. The observed evidence instead shows that the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The more relevant correction is to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Question 52

At fictional Silverfield Finance, the Linux shell and scripting team is working during a controlled system-configuration acceptance test. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. Which observation MOST directly supports the underlying diagnosis before any changes are made?

  1. The deciding Linux diagnostic evidence for Silverfield Finance is: The shebang selects sh while the body uses Bash-specific conditional syntax.
  2. The deciding Linux diagnostic evidence for Silverfield Finance is: Tracing shows a variable expanded unquoted in a file test and command argument.
  3. The deciding Linux diagnostic evidence for Silverfield Finance is: A trace of exit statuses and short-circuit operators shows the recovery command is reached in a success path.
  4. The deciding Linux diagnostic evidence for Silverfield Finance is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles.

Explanation

Correct Answer

D:

The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The fault is consistent with account creation copies configured skeleton material only when the home directory is initialized. A change targeting the actual dependency is to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Incorrect Answers

A:

A competing Linux diagnostic finding for Silverfield Finance is: The shebang selects sh while the body uses Bash-specific conditional syntax. It does not account for the observation the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles in the reported situation.

B:

At Silverfield Finance, another diagnostic finding is: Tracing shows a variable expanded unquoted in a file test and command argument. This would indicate another failure; here the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Account creation copies configured skeleton material only when the home directory is initialized.

C:

At Silverfield Finance, a different observation is: A trace of exit statuses and short-circuit operators shows the recovery command is reached in a success path. It concerns another dependency. This incident is distinguished by the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Account creation copies configured skeleton material only when the home directory is initialized.

Question 53

At fictional Silverfield Finance, the Linux shell and scripting team is working during a controlled system-configuration acceptance test. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The proposed intervention is: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Which independent result BEST demonstrates a successful correction?

  1. The independent acceptance evidence for Silverfield Finance is: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.
  2. The independent acceptance evidence for Silverfield Finance is: The script runs from its executable path in a clean environment and passes success and failure branch tests.
  3. The independent acceptance evidence for Silverfield Finance is: A test file whose name includes spaces is processed once and an absent path follows the error branch.
  4. The independent acceptance evidence for Silverfield Finance is: Unit tests for all command success and failure combinations take only the intended branch.

Explanation

Correct Answer

A:

The acceptance evidence is a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. This checks the intended outcome of install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Account creation copies configured skeleton material only when the home directory is initialized.

Incorrect Answers

B:

At Silverfield Finance, another acceptance finding might be: The script runs from its executable path in a clean environment and passes success and failure branch tests. That would still leave the reported failure unproven. An acceptance test must show that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

C:

At Silverfield Finance, a different acceptance result would be: A test file whose name includes spaces is processed once and an absent path follows the error branch. It may validate a separate setting, but not the required action: install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. The required observation is a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

D:

The independent acceptance evidence for Silverfield Finance is: Unit tests for all command success and failure combinations take only the intended branch. The evidence relevant to this incident is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Confirm the corresponding recovery result: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

Question 54

At fictional Silverfield Finance, the Linux shell and scripting team is working during a controlled system-configuration acceptance test. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The relevant evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which Linux administration principle MOST accurately explains the correct response?

  1. The relevant Linux system principle for Silverfield Finance is: A shebang selects the interpreter; shell dialect-specific features are not interchangeable.
  2. The relevant Linux system principle for Silverfield Finance is: Account creation copies configured skeleton material only when the home directory is initialized.
  3. The relevant Linux system principle for Silverfield Finance is: Shell word splitting and pathname expansion occur on unquoted parameter expansions.
  4. The relevant Linux system principle for Silverfield Finance is: The shell evaluates AND and OR operators by control-flow rules rather than natural-language intent.

Explanation

Correct Answer

B:

Account creation copies configured skeleton material only when the home directory is initialized. This matters because newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The specific evidence is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles.

Incorrect Answers

A:

A competing Linux principle for Silverfield Finance is: A shebang selects the interpreter; shell dialect-specific features are not interchangeable. The decisive observation, the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles, requires a different explanation: Account creation copies configured skeleton material only when the home directory is initialized.

C:

A different principle is: the relevant Linux system principle for Silverfield Finance is: Shell word splitting and pathname expansion occur on unquoted parameter expansions. The causal link actually supported by the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles is account creation copies configured skeleton material only when the home directory is initialized.

D:

A competing Linux principle for Silverfield Finance is: The shell evaluates AND and OR operators by control-flow rules rather than natural-language intent. However, it does not explain the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The applicable principle is that account creation copies configured skeleton material only when the home directory is initialized.

Question 55

At fictional Silverfield Finance, the Linux shell and scripting team is working during a controlled system-configuration acceptance test. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The decisive evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which paired action and independent proof BEST satisfies the requirement?

  1. For Silverfield Finance, the Linux support team should: Scoped correction: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. Independent acceptance: The script runs from its executable path in a clean environment and passes success and failure branch tests.
  2. For Silverfield Finance, the Linux support team should: Scoped correction: Quote pathname expansions and validate parameters before invoking the file utility. Independent acceptance: A test file whose name includes spaces is processed once and an absent path follows the error branch.
  3. For Silverfield Finance, the Linux support team should: Scoped correction: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Independent acceptance: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.
  4. For Silverfield Finance, the Linux support team should: Scoped correction: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. Independent acceptance: Unit tests for all command success and failure combinations take only the intended branch.

Explanation

Correct Answer

C:

Success requires a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. That result tests the previously observed condition: the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Account creation copies configured skeleton material only when the home directory is initialized.

Incorrect Answers

A:

Even verifying scoped correction: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. Independent acceptance: The script runs from its executable path in a clean environment and passes success and failure branch tests leaves the reported failure unproven. An acceptance test must show that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

B:

The alternative outcome is scoped correction: Quote pathname expansions and validate parameters before invoking the file utility. Independent acceptance: A test file whose name includes spaces is processed once and an absent path follows the error branch. It may validate a separate setting, but not the required action: install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. The required observation is a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

D:

Scoped correction: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. Independent acceptance: Unit tests for all command success and failure combinations take only the intended branch. The evidence relevant to this incident is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Confirm the corresponding recovery result: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

Question 56

At fictional Sunnyside Labs, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The diagnostic evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which bounded step BEST resolves the described problem?

  1. For Sunnyside Labs, the Linux support team should: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently.
  2. For Sunnyside Labs, the Linux support team should: Quote pathname expansions and validate parameters before invoking the file utility.
  3. For Sunnyside Labs, the Linux support team should: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths.
  4. For Sunnyside Labs, the Linux support team should: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Explanation

Correct Answer

D:

The evidence that the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles points to the need to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Account creation copies configured skeleton material only when the home directory is initialized. Success is measured by a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. Preserve this constraint during the change: Changing /etc/skel does not retroactively update existing user home directories.

Incorrect Answers

A:

Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. It could be useful for another problem, but it does not change the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The response needs to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

B:

An alternative action is quote pathname expansions and validate parameters before invoking the file utility. This incident instead involves the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Confirm the scoped change through a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

C:

Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. That would not correct the reported the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The supported response is to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Question 57

At fictional Sunnyside Labs, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. Which observation MOST directly supports the underlying diagnosis before any changes are made?

  1. The deciding Linux diagnostic evidence for Sunnyside Labs is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles.
  2. The deciding Linux diagnostic evidence for Sunnyside Labs is: The shebang selects sh while the body uses Bash-specific conditional syntax.
  3. The deciding Linux diagnostic evidence for Sunnyside Labs is: Tracing shows a variable expanded unquoted in a file test and command argument.
  4. The deciding Linux diagnostic evidence for Sunnyside Labs is: A trace of exit statuses and short-circuit operators shows the recovery command is reached in a success path.

Explanation

Correct Answer

A:

The diagnostic clue is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Account creation copies configured skeleton material only when the home directory is initialized. The response should therefore focus on install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Incorrect Answers

B:

A competing Linux diagnostic finding for Sunnyside Labs is: The shebang selects sh while the body uses Bash-specific conditional syntax. That finding does not isolate the reported issue: newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The determining evidence is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles.

C:

At Sunnyside Labs, that alternative suggests: Tracing shows a variable expanded unquoted in a file test and command argument. The actual diagnostic record shows the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles instead. The difference matters because account creation copies configured skeleton material only when the home directory is initialized.

D:

At Sunnyside Labs, another potential finding is: A trace of exit statuses and short-circuit operators shows the recovery command is reached in a success path. That would not establish the cause here. The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. The case-specific correction is to install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership.

Question 58

At fictional Sunnyside Labs, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The proposed intervention is: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Which independent result BEST demonstrates a successful correction?

  1. The independent acceptance evidence for Sunnyside Labs is: The script runs from its executable path in a clean environment and passes success and failure branch tests.
  2. The independent acceptance evidence for Sunnyside Labs is: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.
  3. The independent acceptance evidence for Sunnyside Labs is: A test file whose name includes spaces is processed once and an absent path follows the error branch.
  4. The independent acceptance evidence for Sunnyside Labs is: Unit tests for all command success and failure combinations take only the intended branch.

Explanation

Correct Answer

B:

A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. Without that result, the finding the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles would remain unresolved.

Incorrect Answers

A:

A separate test at Sunnyside Labs could show: The script runs from its executable path in a clean environment and passes success and failure branch tests. That would not demonstrate closure of this condition. The needed proof is a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

C:

The independent acceptance evidence for Sunnyside Labs is: A test file whose name includes spaces is processed once and an absent path follows the error branch. That does not demonstrate the case-specific success condition: a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. Account creation copies configured skeleton material only when the home directory is initialized.

D:

The independent acceptance evidence for Sunnyside Labs is: Unit tests for all command success and failure combinations take only the intended branch. That result does not test the original problem, identified by the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Recovery must show that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

Question 59

At fictional Sunnyside Labs, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The relevant evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which Linux administration principle MOST accurately explains the correct response?

  1. The relevant Linux system principle for Sunnyside Labs is: A shebang selects the interpreter; shell dialect-specific features are not interchangeable.
  2. The relevant Linux system principle for Sunnyside Labs is: Shell word splitting and pathname expansion occur on unquoted parameter expansions.
  3. The relevant Linux system principle for Sunnyside Labs is: Account creation copies configured skeleton material only when the home directory is initialized.
  4. The relevant Linux system principle for Sunnyside Labs is: The shell evaluates AND and OR operators by control-flow rules rather than natural-language intent.

Explanation

Correct Answer

C:

Account creation copies configured skeleton material only when the home directory is initialized. The diagnostic record, the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles, fits that mechanism rather than a separate system issue.

Incorrect Answers

A:

At Sunnyside Labs, another Linux system principle is: A shebang selects the interpreter; shell dialect-specific features are not interchangeable. The present evidence is the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles, which instead follows from account creation copies configured skeleton material only when the home directory is initialized.

B:

A competing Linux principle for Sunnyside Labs is: Shell word splitting and pathname expansion occur on unquoted parameter expansions. This describes another relationship, not the cause of newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. Account creation copies configured skeleton material only when the home directory is initialized.

D:

At Sunnyside Labs, a different Linux system principle is: The shell evaluates AND and OR operators by control-flow rules rather than natural-language intent does not account for the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. This case is governed by account creation copies configured skeleton material only when the home directory is initialized.

Question 60

At fictional Sunnyside Labs, the Linux shell and scripting team is working while investigating an observed production-like support incident. The Linux scenario is: Newly created analyst accounts lack a standard shell function and profile that existing administrators received during onboarding. The decisive evidence is: The configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Which paired action and independent proof BEST satisfies the requirement?

  1. For Sunnyside Labs, the Linux support team should: Scoped correction: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. Independent acceptance: The script runs from its executable path in a clean environment and passes success and failure branch tests.
  2. For Sunnyside Labs, the Linux support team should: Scoped correction: Quote pathname expansions and validate parameters before invoking the file utility. Independent acceptance: A test file whose name includes spaces is processed once and an absent path follows the error branch.
  3. For Sunnyside Labs, the Linux support team should: Scoped correction: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. Independent acceptance: Unit tests for all command success and failure combinations take only the intended branch.
  4. For Sunnyside Labs, the Linux support team should: Scoped correction: Install approved template dotfiles under /etc/skel and ensure home creation copies those templates with correct ownership. Independent acceptance: A newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

Explanation

Correct Answer

D:

To close the incident, demonstrate that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. That addresses the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles and reflects the rule that account creation copies configured skeleton material only when the home directory is initialized.

Incorrect Answers

A:

A test that scoped correction: Select a supported Bash shebang for Bash syntax or rewrite the script using POSIX shell constructs consistently. Independent acceptance: The script runs from its executable path in a clean environment and passes success and failure branch tests would not demonstrate closure of this condition. The needed proof is a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

B:

Scoped correction: Quote pathname expansions and validate parameters before invoking the file utility. Independent acceptance: A test file whose name includes spaces is processed once and an absent path follows the error branch. That does not demonstrate the case-specific success condition: a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated. Account creation copies configured skeleton material only when the home directory is initialized.

C:

Scoped correction: Use explicit if/then/else statements or carefully grouped tests for required success and recovery paths. Independent acceptance: Unit tests for all command success and failure combinations take only the intended branch. That result does not test the original problem, identified by the configuration exists in a reference home directory but is missing from /etc/skel and freshly created users have default profiles. Recovery must show that a newly created test account receives the shell settings and an existing account remains untouched unless deliberately migrated.

LPI Level 1 (102-500) Practice Tests