LPI 010-160 Practice Test 57
Question 560
An administrator needs documentation distributed in GNU Info format. If the team ignores the correct Info documentation navigation approach, which problem is the MOST relevant direct risk?
- Recently created files may be missing until the index is refreshed.
- Assuming undocumented options exist can produce invalid command invocations.
- Checking the status after additional commands can inspect the wrong operation.
- Treating Info as a command-execution shell does not reveal documentation.
Explanation
Correct Answer
D:Treating Info as a command-execution shell does not reveal documentation. Avoid the failure by following this action: Open `info` for the intended subject and follow its node navigation.
Incorrect Answers
A:Recently created files may be missing until the index is refreshed. That risk is associated with locate database lookup; it is less directly tied to the task. The omitted Info documentation navigation safeguard instead risks: treating Info as a command-execution shell does not reveal documentation.
B:Assuming undocumented options exist can produce invalid command invocations. That risk is associated with Command --help output; it is less directly tied to the task. The omitted Info documentation navigation safeguard instead risks: treating Info as a command-execution shell does not reveal documentation.
C:Checking the status after additional commands can inspect the wrong operation. That risk is associated with Exit status from previous command; it is less directly tied to the task. The omitted Info documentation navigation safeguard instead risks: treating Info as a command-execution shell does not reveal documentation.
Question 561
A script receives `Quarterly Reports` as a single quoted argument and must preserve the space. If the team ignores the correct Quoting script argument expansion approach, which problem is the MOST relevant direct risk?
- Treating gzip alone as a directory archiver is incorrect.
- Returning success after a failed critical command can mislead later automation.
- A viewer-only command does not save file modifications.
- An unquoted expansion may split the path into two command arguments.
Explanation
Correct Answer
D:An unquoted expansion may split the path into two command arguments. Avoid the failure by following this action: Expand variables and positional arguments in double quotes, for example `"$1"`.
Incorrect Answers
A:Treating gzip alone as a directory archiver is incorrect. That risk is associated with gzip compression and gunzip; it is less directly tied to the task. The omitted Quoting script argument expansion safeguard instead risks: an unquoted expansion may split the path into two command arguments.
B:Returning success after a failed critical command can mislead later automation. That risk is associated with Exit code on script completion; it is less directly tied to the task. The omitted Quoting script argument expansion safeguard instead risks: an unquoted expansion may split the path into two command arguments.
C:A viewer-only command does not save file modifications. That risk is associated with nano editor save and quit; it is less directly tied to the task. The omitted Quoting script argument expansion safeguard instead risks: an unquoted expansion may split the path into two command arguments.
Question 562
A systems administrator needs to create a new ordinary local Linux login. If the team ignores the correct useradd new local account approach, which problem is the MOST relevant direct risk?
- Assuming a user account exists because a home directory was manually created is unsafe.
- Editing a current user's home does not change defaults for future users.
- Omitting append can unintentionally drop previous supplementary memberships.
- Assuming all temp files persist indefinitely can lose work.
Explanation
Correct Answer
A:Assuming a user account exists because a home directory was manually created is unsafe. Avoid the failure by following this action: Run `useradd` with required options using authorized administrative privileges.
Incorrect Answers
B:That risk is associated with /etc/skel new home templates; it is less directly tied to the task.
C:Omitting append can unintentionally drop previous supplementary memberships. That risk is associated with Supplementary group membership; it is less directly tied to the task. The omitted useradd new local account safeguard instead risks: assuming a user account exists because a home directory was manually created is unsafe.
D:Assuming all temp files persist indefinitely can lose work. That risk is associated with /tmp and /var/tmp retention; it is less directly tied to the task. The omitted useradd new local account safeguard instead risks: assuming a user account exists because a home directory was manually created is unsafe.
Question 563
A host can ping an IP address but cannot resolve any domain names. If the team ignores the correct DNS resolver configuration approach, which problem is the MOST relevant direct risk?
- Firewalls may block ICMP even when application services work.
- Installing an unrelated user application does not replace missing kernel-level device support.
- Broken resolver settings can affect names while raw IP connectivity still works.
- Checking only IP assignment does not prove an application is listening.
Explanation
Correct Answer
C:Broken resolver settings can affect names while raw IP connectivity still works. Avoid the failure by following this action: Inspect `/etc/resolv.conf` or the system's effective resolver configuration.
Incorrect Answers
A:Firewalls may block ICMP even when application services work. That risk is associated with ping reachability testing; it is less directly tied to the task. The omitted DNS resolver configuration safeguard instead risks: broken resolver settings can affect names while raw IP connectivity still works.
B:Installing an unrelated user application does not replace missing kernel-level device support. That risk is associated with Hardware drivers and kernel; it is less directly tied to the task. The omitted DNS resolver configuration safeguard instead risks: broken resolver settings can affect names while raw IP connectivity still works.
D:Checking only IP assignment does not prove an application is listening. That risk is associated with ss listening sockets; it is less directly tied to the task. The omitted DNS resolver configuration safeguard instead risks: broken resolver settings can affect names while raw IP connectivity still works.
Question 564
A user cannot see `.bashrc` in a plain directory listing. If the team ignores the correct Hidden dotfiles and ls -a approach, which problem is the MOST relevant direct risk?
- Using `.` instead would refer to the current directory, not the parent.
- Relative paths depend on the shell's starting directory.
- Quoting incorrectly can change text into expanded values.
- Missing dotfiles from a default listing does not imply they were deleted.
Explanation
Correct Answer
D:Missing dotfiles from a default listing does not imply they were deleted. Avoid the failure by following this action: Use `ls -a` to include hidden dot-prefixed entries.
Incorrect Answers
A:Using `.` instead would refer to the current directory, not the parent. That risk is associated with cd parent directory; it is less directly tied to the task. The omitted Hidden dotfiles and ls -a safeguard instead risks: missing dotfiles from a default listing does not imply they were deleted.
B:Relative paths depend on the shell's starting directory. That risk is associated with Absolute filesystem paths; it is less directly tied to the task. The omitted Hidden dotfiles and ls -a safeguard instead risks: missing dotfiles from a default listing does not imply they were deleted.
C:Quoting incorrectly can change text into expanded values. That risk is associated with Single versus double shell quotes; it is less directly tied to the task. The omitted Hidden dotfiles and ls -a safeguard instead risks: missing dotfiles from a default listing does not imply they were deleted.
Question 565
A nonprofit needs to edit spreadsheet and presentation documents without purchasing a proprietary office suite. If the team ignores the correct LibreOffice document suite approach, which problem is the MOST relevant direct risk?
- Choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow.
- Manually copying unknown executables does not manage dependencies or security updates.
- A generic desktop image for the wrong processor architecture may not boot.
- An email client cannot directly serve the site's HTTP routes.
Explanation
Correct Answer
A:Choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow. Avoid the failure by following this action: Use LibreOffice Writer, Calc and Impress for the respective office document tasks.
Incorrect Answers
B:Manually copying unknown executables does not manage dependencies or security updates. That risk is associated with Native distribution package repositories; it is less directly tied to the task. The omitted LibreOffice document suite safeguard instead risks: choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow.
C:A generic desktop image for the wrong processor architecture may not boot. That risk is associated with Raspberry Pi Linux deployment; it is less directly tied to the task. The omitted LibreOffice document suite safeguard instead risks: choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow.
D:An email client cannot directly serve the site's HTTP routes. That risk is associated with Web servers Apache and NGINX; it is less directly tied to the task. The omitted LibreOffice document suite safeguard instead risks: choosing a graphics editor for spreadsheet formulas cannot satisfy the office workflow.
Question 566
A CSV export needs a fast count of newline-delimited records. If the team ignores the correct wc line counting approach, which problem is the MOST relevant direct risk?
- Treating unrelated archive extensions as equivalent may fail decoding.
- Using word count can misrepresent a line-oriented record count.
- Running commands separately without connecting streams does not build the same pipeline.
- A case-sensitive search can miss variants of a keyword.
Explanation
Correct Answer
B:Using word count can misrepresent a line-oriented record count. Avoid the failure by following this action: Run `wc -l file` and interpret its newline-count semantics.
Incorrect Answers
A:Treating unrelated archive extensions as equivalent may fail decoding. That risk is associated with xz compression tools; it is less directly tied to the task. The omitted wc line counting safeguard instead risks: using word count can misrepresent a line-oriented record count.
C:Running commands separately without connecting streams does not build the same pipeline. That risk is associated with Pipes connecting commands; it is less directly tied to the task. The omitted wc line counting safeguard instead risks: using word count can misrepresent a line-oriented record count.
D:A case-sensitive search can miss variants of a keyword. That risk is associated with grep -i ignore case; it is less directly tied to the task. The omitted wc line counting safeguard instead risks: using word count can misrepresent a line-oriented record count.
Question 567
A student needs a copy of a directory and all nested files. If the team ignores the correct cp -r directory trees approach, which problem is the MOST relevant direct risk?
- Plain mkdir on the deepest path fails when parents do not exist.
- Using `cp` leaves the original behind when a move was required.
- Copying only one file will not preserve child directories.
- A command outside PATH may require a qualified path.
Explanation
Correct Answer
C:Copying only one file will not preserve child directories. Avoid the failure by following this action: Use `cp -r project project-backup` to copy the directory tree.
Incorrect Answers
A:Plain mkdir on the deepest path fails when parents do not exist. That risk is associated with mkdir -p nested directories; it is less directly tied to the task. The omitted cp -r directory trees safeguard instead risks: copying only one file will not preserve child directories.
B:Using `cp` leaves the original behind when a move was required. That risk is associated with mv rename and relocation; it is less directly tied to the task. The omitted cp -r directory trees safeguard instead risks: copying only one file will not preserve child directories.
D:A command outside PATH may require a qualified path. That risk is associated with PATH and command discovery; it is less directly tied to the task. The omitted cp -r directory trees safeguard instead risks: copying only one file will not preserve child directories.
Question 568
A user is created and the operator must ensure it has a distinct local identity. If the team ignores the correct UID uniqueness and identity mapping approach, which problem is the MOST relevant direct risk?
- Reusing a UID for unrelated users may unintentionally share ownership rights.
- Creating a user does not necessarily provision a usable password login by itself.
- Assuming su without authorization grants elevated access can lead to authentication failure.
- Assuming a user account exists because a home directory was manually created is unsafe.
Explanation
Correct Answer
A:Reusing a UID for unrelated users may unintentionally share ownership rights. Avoid the failure by following this action: Assign a unique suitable UID to each local account under the site's account policy.
Incorrect Answers
B:Creating a user does not necessarily provision a usable password login by itself. That risk is associated with passwd setting account password; it is less directly tied to the task. The omitted UID uniqueness and identity mapping safeguard instead risks: reusing a UID for unrelated users may unintentionally share ownership rights.
C:Assuming su without authorization grants elevated access can lead to authentication failure. That risk is associated with su switching user identity; it is less directly tied to the task. The omitted UID uniqueness and identity mapping safeguard instead risks: reusing a UID for unrelated users may unintentionally share ownership rights.
D:That risk is associated with useradd new local account; it is less directly tied to the task.
Question 569
A server uses a Red Hat Enterprise Linux compatible distribution and needs managed software updates. If the team ignores the correct Red Hat enterprise package family approach, which problem is the MOST relevant direct risk?
- Choosing an unsupported short-lived release can stop routine security updates.
- Debian-only package tools do not implement the host's supported RPM repository workflow.
- A padlock alone does not prove an unfamiliar domain is trustworthy.
- Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes.
Explanation
Correct Answer
B:Debian-only package tools do not implement the host's supported RPM repository workflow. Avoid the failure by following this action: Use RPM-family packages and the distribution's supported DNF or YUM repository manager.
Incorrect Answers
A:Choosing an unsupported short-lived release can stop routine security updates. That risk is associated with Ubuntu long-term support releases; it is less directly tied to the task. The omitted Red Hat enterprise package family safeguard instead risks: debian-only package tools do not implement the host's supported RPM repository workflow.
C:A padlock alone does not prove an unfamiliar domain is trustworthy. That risk is associated with Browser HTTPS and site verification; it is less directly tied to the task. The omitted Red Hat enterprise package family safeguard instead risks: debian-only package tools do not implement the host's supported RPM repository workflow.
D:Treating openSUSE and SUSE Enterprise as identical support contracts creates lifecycle mistakes. That risk is associated with SUSE and openSUSE distributions; it is less directly tied to the task. The omitted Red Hat enterprise package family safeguard instead risks: debian-only package tools do not implement the host's supported RPM repository workflow.
Question 570
A log file is too large and a user wants a single-file gzip-compressed copy. If the team ignores the correct gzip compression and gunzip approach, which problem is the MOST relevant direct risk?
- Confusing regex star with shell glob star changes the intended matching semantics.
- Treating gzip alone as a directory archiver is incorrect.
- Compression is not automatically enabled by every tar archive creation.
- Sending bzip2 data to an unrelated decompressor can cause format errors.
Explanation
Correct Answer
B:Treating gzip alone as a directory archiver is incorrect. Avoid the failure by following this action: Compress with `gzip` and decompress with `gunzip` for the single file.
Incorrect Answers
A:Confusing regex star with shell glob star changes the intended matching semantics. That risk is associated with Regular-expression dot and repetition; it is less directly tied to the task. The omitted gzip compression and gunzip safeguard instead risks: treating gzip alone as a directory archiver is incorrect.
C:Compression is not automatically enabled by every tar archive creation. That risk is associated with Creating a tar archive; it is less directly tied to the task. The omitted gzip compression and gunzip safeguard instead risks: treating gzip alone as a directory archiver is incorrect.
D:Sending bzip2 data to an unrelated decompressor can cause format errors. That risk is associated with bzip2 compressed streams; it is less directly tied to the task. The omitted gzip compression and gunzip safeguard instead risks: treating gzip alone as a directory archiver is incorrect.