LPI 010-160 Practice Test 87
Question 860
A server uses a Red Hat Enterprise Linux compatible distribution and needs managed software updates. Select TWO statements that together form an appropriate implementation and validation plan.
- Disable repository signatures to make arbitrary packages compatible.
- Installed package metadata and repository updates show packages from the RPM-compatible ecosystem.
- Rename a .deb archive to .rpm to convert its format.
- Use apt-get and .deb files as the universal RHEL workflow.
- Use RPM-family packages and the distribution's supported DNF or YUM repository manager.
Explanation
Correct Answers
B:Installed package metadata and repository updates show packages from the RPM-compatible ecosystem. This provides direct evidence of the intended Red Hat enterprise package family behavior.
E:Use RPM-family packages and the distribution's supported DNF or YUM repository manager. This is the actual implementation for Red Hat enterprise package family.
Incorrect Answers
A:Disable repository signatures to make arbitrary packages compatible. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.
C:Rename a .deb archive to .rpm to convert its format. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.
D:Use apt-get and .deb files as the universal RHEL workflow. This does not contribute a sound implementation or validation step for Red Hat enterprise package family. Debian-only package tools do not implement the host's supported RPM repository workflow.
Question 861
A user is created and the operator must ensure it has a distinct local identity. Select TWO statements that together form an appropriate implementation and validation plan.
- Use identical UID values for unrelated tenants without review.
- Distinct local users map to their intended UID records.
- Give every standard account UID 0.
- Change a file extension to change its owner UID.
- Assign a unique suitable UID to each local account under the site's account policy.
Explanation
Correct Answers
B:Distinct local users map to their intended UID records. This provides direct evidence of the intended UID uniqueness and identity mapping behavior.
E:Assign a unique suitable UID to each local account under the site's account policy. This is the actual implementation for UID uniqueness and identity mapping.
Incorrect Answers
A:Use identical UID values for unrelated tenants without review. This does not contribute a sound implementation or validation step for UID uniqueness and identity mapping. Reusing a UID for unrelated users may unintentionally share ownership rights.
C:Give every standard account UID 0. This does not contribute a sound implementation or validation step for UID uniqueness and identity mapping. Reusing a UID for unrelated users may unintentionally share ownership rights.
D:Change a file extension to change its owner UID. This does not contribute a sound implementation or validation step for UID uniqueness and identity mapping. Reusing a UID for unrelated users may unintentionally share ownership rights.
Question 862
A desktop restarts when new high-power components are stressed. Select THREE statements that together form an appropriate implementation and validation plan.
- Verify that the power supply delivers suitable wattage and connector capacity.
- Assume device drivers generate extra physical watts.
- The PSU converts and distributes power to system components and must meet load needs.
- Increase Linux swap as the sole electrical power fix.
- Treat a network router as the system's PSU.
- The machine remains stable under the expected electrical load.
Explanation
Correct Answers
A:Verify that the power supply delivers suitable wattage and connector capacity. This is the actual implementation for Power supply for components.
C:The PSU converts and distributes power to system components and must meet load needs. This is the governing technical reason for the chosen solution.
F:The machine remains stable under the expected electrical load. This provides direct evidence of the intended Power supply for components behavior.
Incorrect Answers
B:Assume device drivers generate extra physical watts. This does not contribute a sound implementation or validation step for Power supply for components. Underpowered hardware can cause instability despite healthy software.
D:Increase Linux swap as the sole electrical power fix. This does not contribute a sound implementation or validation step for Power supply for components. Underpowered hardware can cause instability despite healthy software.
E:Treat a network router as the system's PSU. This does not contribute a sound implementation or validation step for Power supply for components. Underpowered hardware can cause instability despite healthy software.
Question 863
A user wants to return to their login home directory from `/tmp`. Select TWO statements that together form an appropriate implementation and validation plan.
- `pwd` shows the current user's configured home directory.
- Use `cd ..` and assume one ascent always reaches home.
- Treat `~` as the current directory marker.
- Use `cd /` as the user's home directory on every system.
- Use `cd ~` or bare `cd` to return to the current user's home.
Explanation
Correct Answers
A:`pwd` shows the current user's configured home directory. This provides direct evidence of the intended Home directory shorthand behavior.
E:Use `cd ~` or bare `cd` to return to the current user's home. This is the actual implementation for Home directory shorthand.
Incorrect Answers
B:Use `cd .` and assume one ascent always reaches home. This does not contribute a sound implementation or validation step for Home directory shorthand. Confusing home with `/` changes the destination.
C:Treat `~` as the current directory marker. This does not contribute a sound implementation or validation step for Home directory shorthand. Confusing home with `/` changes the destination.
D:Use `cd /` as the user's home directory on every system. This does not contribute a sound implementation or validation step for Home directory shorthand. Confusing home with `/` changes the destination.
Question 864
A colleague sends `backup.tar` and the user needs to recover the contained files. Select TWO statements that together form an appropriate implementation and validation plan.
- Run `tar -xf backup.tar` in a suitable destination directory.
- Run `tar -cf backup.tar` as the extraction operation.
- Rename the tar file to .zip and use unzip.
- The files recorded in the tar archive appear after extraction.
- Run `rm backup.tar` expecting its files to appear.
Explanation
Correct Answers
A:Run `tar -xf backup.tar` in a suitable destination directory. This is the actual implementation for Extracting a tar archive.
D:The files recorded in the tar archive appear after extraction. This provides direct evidence of the intended Extracting a tar archive behavior.
Incorrect Answers
B:Run `tar -cf backup.tar` as the extraction operation. This does not contribute a sound implementation or validation step for Extracting a tar archive. Running the creation operation on an existing archive does not restore its contents.
C:Rename the tar file to .zip and use unzip. This does not contribute a sound implementation or validation step for Extracting a tar archive. Running the creation operation on an existing archive does not restore its contents.
E:Run `rm backup.tar` expecting its files to appear. This does not contribute a sound implementation or validation step for Extracting a tar archive. Running the creation operation on an existing archive does not restore its contents.
Question 865
A script tracks a successful task count and must increment an integer. Select TWO statements that together form an appropriate implementation and validation plan.
- Treat a pathname glob as an arithmetic operator.
- Use arithmetic expansion such as `count=$((count + 1))`.
- Use `count=count+1` expecting arithmetic automatically.
- The resulting variable contains the expected integer.
- Use literal `echo 2+3` expecting shell evaluation.
Explanation
Correct Answers
B:Use arithmetic expansion such as `count=$((count + 1))`. This is the actual implementation for Bash arithmetic expansion.
D:The resulting variable contains the expected integer. This provides direct evidence of the intended Bash arithmetic expansion behavior.
Incorrect Answers
A:Treat a pathname glob as an arithmetic operator. This does not contribute a sound implementation or validation step for Bash arithmetic expansion. Treating `+` as string concatenation can produce the wrong count.
C:Use `count=count+1` expecting arithmetic automatically. This does not contribute a sound implementation or validation step for Bash arithmetic expansion. Treating `+` as string concatenation can produce the wrong count.
E:Use literal `echo 2+3` expecting shell evaluation. This does not contribute a sound implementation or validation step for Bash arithmetic expansion. Treating `+` as string concatenation can produce the wrong count.
Question 866
A student compares an application that computes slowly with one that runs out of working memory. Select TWO statements that together form an appropriate implementation and validation plan.
- Monitoring shows processor utilization and memory availability separately.
- Diagnose CPU capacity for computation and RAM capacity for active working data.
- Use a monitor resolution setting to increase CPU cores.
- Treat an SSD as equivalent to RAM in speed and function.
- Assume a network interface is the processor.
Explanation
Correct Answers
A:Monitoring shows processor utilization and memory availability separately. This provides direct evidence of the intended CPU and RAM responsibilities behavior.
B:Diagnose CPU capacity for computation and RAM capacity for active working data. This is the actual implementation for CPU and RAM responsibilities.
Incorrect Answers
C:Use a monitor resolution setting to increase CPU cores. This does not contribute a sound implementation or validation step for CPU and RAM responsibilities. Replacing storage alone does not necessarily remedy insufficient working memory.
D:Treat an SSD as equivalent to RAM in speed and function. This does not contribute a sound implementation or validation step for CPU and RAM responsibilities. Replacing storage alone does not necessarily remedy insufficient working memory.
E:Assume a network interface is the processor. This does not contribute a sound implementation or validation step for CPU and RAM responsibilities. Replacing storage alone does not necessarily remedy insufficient working memory.
Question 867
A workstation is slow and an operator wants to observe which processes consume CPU. Select TWO statements that together form an appropriate implementation and validation plan.
- Run `top` to monitor currently running processes and resource usage.
- Use `pwd` to monitor current CPU consumption.
- Process CPU and memory columns update during observation.
- Use `rmdir` as the Linux process viewer.
- Run `ls -l` expecting CPU usage refresh.
Explanation
Correct Answers
A:Run `top` to monitor currently running processes and resource usage. This is the actual implementation for top interactive process monitor.
C:Process CPU and memory columns update during observation. This provides direct evidence of the intended top interactive process monitor behavior.
Incorrect Answers
B:Use `pwd` to monitor current CPU consumption. This does not contribute a sound implementation or validation step for top interactive process monitor. A single static file listing cannot show evolving CPU usage.
D:Use `rmdir` as the Linux process viewer. This does not contribute a sound implementation or validation step for top interactive process monitor. A single static file listing cannot show evolving CPU usage.
E:Run `ls -l` expecting CPU usage refresh. This does not contribute a sound implementation or validation step for top interactive process monitor. A single static file listing cannot show evolving CPU usage.
Question 868
A school wants every new account to begin with common shell configuration templates. Select TWO statements that together form an appropriate implementation and validation plan.
- Assume `/tmp` is the standard new-user skeleton directory.
- Place approved default home-directory files under `/etc/skel` for account creation workflows that copy them.
- Store shell defaults only in `/proc/cpuinfo`.
- Newly created homes include the intended template files when supported by useradd configuration.
- Write new-user template files into `/dev/null`.
Explanation
Correct Answers
B:Place approved default home-directory files under `/etc/skel` for account creation workflows that copy them. This is the actual implementation for /etc/skel new home templates.
D:Newly created homes include the intended template files when supported by useradd configuration. This provides direct evidence of the intended /etc/skel new home templates behavior.
Incorrect Answers
A:Assume `/tmp` is the standard new-user skeleton directory. This does not contribute a sound implementation or validation step for /etc/skel new home templates. Editing a current user's home does not change defaults for future users.
C:Store shell defaults only in `/proc/cpuinfo`. This does not contribute a sound implementation or validation step for /etc/skel new home templates. Editing a current user's home does not change defaults for future users.
E:Write new-user template files into `/dev/null`. This does not contribute a sound implementation or validation step for /etc/skel new home templates. Editing a current user's home does not change defaults for future users.
Question 869
A user needs to view recently executed Bash commands. Select THREE statements that together form an appropriate implementation and validation plan.
- Run `history` in an interactive Bash shell.
- Assume the shell's history automatically contains every process on the computer.
- Run `pwd` to list earlier commands.
- Use `touch` to print the command list.
- A numbered command list from the current shell history is displayed.
- Shell history is separate from filesystem directory contents.
Explanation
Correct Answers
A:Run `history` in an interactive Bash shell. This is the actual implementation for Shell history recall.
E:A numbered command list from the current shell history is displayed. This provides direct evidence of the intended Shell history recall behavior.
F:Shell history is separate from filesystem directory contents. This is the governing technical reason for the chosen solution.
Incorrect Answers
B:Assume the shell's history automatically contains every process on the computer. This does not contribute a sound implementation or validation step for Shell history recall. Listing `/var/log` is not equivalent to the user's current history list.
C:Run `pwd` to list earlier commands. This does not contribute a sound implementation or validation step for Shell history recall. Listing `/var/log` is not equivalent to the user's current history list.
D:Use `touch` to print the command list. This does not contribute a sound implementation or validation step for Shell history recall. Listing `/var/log` is not equivalent to the user's current history list.
Question 870
A script `greet.sh` receives a person's name as its first argument. Select TWO statements that together form an appropriate implementation and validation plan.
- The script uses the value supplied as its first command-line argument.
- Assume arguments can be read only from environment variables.
- Use `$0` as the first user-supplied argument.
- Refer to `$1` in the script for the first positional argument.
- Use `$?` to obtain the first filename.
Explanation
Correct Answers
A:The script uses the value supplied as its first command-line argument. This provides direct evidence of the intended Positional command-line arguments behavior.
D:Refer to `$1` in the script for the first positional argument. This is the actual implementation for Positional command-line arguments.
Incorrect Answers
B:Assume arguments can be read only from environment variables. This does not contribute a sound implementation or validation step for Positional command-line arguments. Confusing parameter indexes can print the wrong input.
C:Use `$0` as the first user-supplied argument. This does not contribute a sound implementation or validation step for Positional command-line arguments. Confusing parameter indexes can print the wrong input.
E:Use `$?` to obtain the first filename. This does not contribute a sound implementation or validation step for Positional command-line arguments. Confusing parameter indexes can print the wrong input.