LPI 010-160 Practice Test 29
Question 280
A developer wants to ask DNS for the addresses associated with a domain. After a correction to the host DNS name lookup workflow, which observation MOST directly confirms success?
- The service's TCP listening socket appears with the intended local address.
- Returned DNS resource data reflects the configured resolver's answer.
- The configured DNS resolver addresses are available for diagnosis.
- The output reports memory and swap figures in the selected units.
Explanation
Correct Answer
B:Returned DNS resource data reflects the configured resolver's answer. This is the direct observable outcome of host DNS name lookup. `host` is a DNS lookup utility rather than a packet reachability test.
Incorrect Answers
A:The service's TCP listening socket appears with the intended local address. Although that can be useful for ss listening sockets, it does not establish the needed host DNS name lookup result. The task requires that returned DNS resource data reflects the configured resolver's answer.
C:The configured DNS resolver addresses are available for diagnosis. Although that can be useful for DNS resolver configuration, it does not establish the needed host DNS name lookup result. The task requires that returned DNS resource data reflects the configured resolver's answer.
D:The output reports memory and swap figures in the selected units. Although that can be useful for free memory statistics, it does not establish the needed host DNS name lookup result. The task requires that returned DNS resource data reflects the configured resolver's answer.
Question 281
A trainee needs information about current kernel process state. After a correction to the /proc virtual process information workflow, which observation MOST directly confirms success?
- Returned DNS resource data reflects the configured resolver's answer.
- Relevant diagnostic entries appear in the configured log destination.
- A process-specific directory or kernel information file reflects the running system.
- Process CPU and memory columns update during observation.
Explanation
Correct Answer
C:A process-specific directory or kernel information file reflects the running system. This is the direct observable outcome of /proc virtual process information. procfs presents virtual runtime data rather than a normal persistent disk archive.
Incorrect Answers
A:Returned DNS resource data reflects the configured resolver's answer. Although that can be useful for host DNS name lookup, it does not establish the needed /proc virtual process information result. The task requires that a process-specific directory or kernel information file reflects the running system.
B:Relevant diagnostic entries appear in the configured log destination. Although that can be useful for /var/log system messages, it does not establish the needed /proc virtual process information result. The task requires that a process-specific directory or kernel information file reflects the running system.
D:Process CPU and memory columns update during observation. Although that can be useful for top interactive process monitor, it does not establish the needed /proc virtual process information result. The task requires that a process-specific directory or kernel information file reflects the running system.
Question 282
A desktop restarts when new high-power components are stressed. After a correction to the Power supply for components workflow, which observation MOST directly confirms success?
- The machine remains stable under the expected electrical load.
- The correct mounted volume contains the expected files.
- Read and write tests show storage performance consistent with the selected medium.
- Kernel diagnostics relevant to device detection are displayed.
Explanation
Correct Answer
A:The machine remains stable under the expected electrical load. This is the direct observable outcome of Power supply for components. The PSU converts and distributes power to system components and must meet load needs.
Incorrect Answers
B:The correct mounted volume contains the expected files. Although that can be useful for Removable USB block storage, it does not establish the needed Power supply for components result. The task requires that the machine remains stable under the expected electrical load.
C:Read and write tests show storage performance consistent with the selected medium. Although that can be useful for SSD versus rotational disk, it does not establish the needed Power supply for components result. The task requires that the machine remains stable under the expected electrical load.
D:Kernel diagnostics relevant to device detection are displayed. Although that can be useful for dmesg kernel messages, it does not establish the needed Power supply for components result. The task requires that the machine remains stable under the expected electrical load.
Question 283
An administrator needs to compress a large text export with the xz format. After a correction to the xz compression tools workflow, which observation MOST directly confirms success?
- A restored stream has the original contents.
- The ZIP contains the intended file hierarchy and extracts successfully.
- The files recorded in the tar archive appear after extraction.
- The saved file contains the intended text after leaving the editor.
Explanation
Correct Answer
A:A restored stream has the original contents. This is the direct observable outcome of xz compression tools. xz is a specific compressed-stream format and requires a matching decompression algorithm.
Incorrect Answers
B:The ZIP contains the intended file hierarchy and extracts successfully. Although that can be useful for ZIP archives and unzip, it does not establish the needed xz compression tools result. The task requires that a restored stream has the original contents.
C:The files recorded in the tar archive appear after extraction. Although that can be useful for Extracting a tar archive, it does not establish the needed xz compression tools result. The task requires that a restored stream has the original contents.
D:The saved file contains the intended text after leaving the editor. Although that can be useful for nano editor save and quit, it does not establish the needed xz compression tools result. The task requires that a restored stream has the original contents.
Question 284
A user cannot see `.bashrc` in a plain directory listing. After a correction to the Hidden dotfiles and ls -a workflow, which observation MOST directly confirms success?
- Dot-prefixed files appear alongside other directory entries.
- Entries from subdirectories appear below their corresponding directory labels.
- Package-specific README or documentation files can be opened when installed.
- `pwd` shows the current user's configured home directory.
Explanation
Correct Answer
A:Dot-prefixed files appear alongside other directory entries. This is the direct observable outcome of Hidden dotfiles and ls -a. Default `ls` usually hides dot-prefixed names unless an option requests them.
Incorrect Answers
B:Entries from subdirectories appear below their corresponding directory labels. Although that can be useful for Recursive directory listings, it does not establish the needed Hidden dotfiles and ls -a result. The task requires that dot-prefixed files appear alongside other directory entries.
C:Package-specific README or documentation files can be opened when installed. Although that can be useful for /usr/share/doc documentation directory, it does not establish the needed Hidden dotfiles and ls -a result. The task requires that dot-prefixed files appear alongside other directory entries.
D:`pwd` shows the current user's configured home directory. Although that can be useful for Home directory shorthand, it does not establish the needed Hidden dotfiles and ls -a result. The task requires that dot-prefixed files appear alongside other directory entries.
Question 285
A script tracks a successful task count and must increment an integer. After a correction to the Bash arithmetic expansion workflow, which observation MOST directly confirms success?
- The resulting variable contains the expected integer.
- The edited file persists on disk after vi exits.
- Each matched filename is processed as its own argument.
- The target file is replaced or extended according to the chosen operator.
Explanation
Correct Answer
A:The resulting variable contains the expected integer. This is the direct observable outcome of Bash arithmetic expansion. Bash arithmetic expansion evaluates integer expressions rather than concatenating text.
Incorrect Answers
B:The edited file persists on disk after vi exits. Although that can be useful for vi insert mode and write quit, it does not establish the needed Bash arithmetic expansion result. The task requires that the resulting variable contains the expected integer.
C:Each matched filename is processed as its own argument. Although that can be useful for Loop over matching filenames, it does not establish the needed Bash arithmetic expansion result. The task requires that the resulting variable contains the expected integer.
D:The target file is replaced or extended according to the chosen operator. Although that can be useful for Redirecting output and append, it does not establish the needed Bash arithmetic expansion result. The task requires that the resulting variable contains the expected integer.
Question 286
A developer has a shell script readable by its owner but not executable. After a correction to the chmod symbolic execute flag workflow, which observation MOST directly confirms success?
- The resulting permissions are `rw- r-- ---` for owner, group and others.
- The resulting owner permission triplet includes the execute bit.
- A group entry shows its group name, GID and listed supplementary members.
- Deletion is allowed or denied according to directory-level rights and protection.
Explanation
Correct Answer
B:The resulting owner permission triplet includes the execute bit. This is the direct observable outcome of chmod symbolic execute flag. Symbolic chmod adds or removes rights for specified classes without necessarily replacing other rights.
Incorrect Answers
A:The resulting permissions are `rw- r-- ---` for owner, group and others. Although that can be useful for chmod octal mode 640, it does not establish the needed chmod symbolic execute flag result. The task requires that the resulting owner permission triplet includes the execute bit.
C:A group entry shows its group name, GID and listed supplementary members. Although that can be useful for /etc/group account membership records, it does not establish the needed chmod symbolic execute flag result. The task requires that the resulting owner permission triplet includes the execute bit.
D:Deletion is allowed or denied according to directory-level rights and protection. Although that can be useful for Directory write and delete rights, it does not establish the needed chmod symbolic execute flag result. The task requires that the resulting owner permission triplet includes the execute bit.
Question 287
A writer wants to rename `draft.md` to `final.md` without retaining both names. After a correction to the mv rename and relocation workflow, which observation MOST directly confirms success?
- Usage text and options print to the terminal.
- The destination path exists and the original name no longer refers to the same entry.
- The destination includes the nested files while the original remains.
- The shell asks for confirmation and removes the file only when affirmed.
Explanation
Correct Answer
B:The destination path exists and the original name no longer refers to the same entry. This is the direct observable outcome of mv rename and relocation. `mv` renames or relocates filesystem objects rather than duplicating them.
Incorrect Answers
A:Usage text and options print to the terminal. Although that can be useful for Command --help output, it does not establish the needed mv rename and relocation result. The task requires that the destination path exists and the original name no longer refers to the same entry.
C:The destination includes the nested files while the original remains. Although that can be useful for cp -r directory trees, it does not establish the needed mv rename and relocation result. The task requires that the destination path exists and the original name no longer refers to the same entry.
D:The shell asks for confirmation and removes the file only when affirmed. Although that can be useful for rm interactive deletion, it does not establish the needed mv rename and relocation result. The task requires that the destination path exists and the original name no longer refers to the same entry.
Question 288
A student wants to see all `.txt` files using filename pattern expansion. After a correction to the Globbing versus literal pattern workflow, which observation MOST directly confirms success?
- A numbered command list from the current shell history is displayed.
- A navigable set of linked Info nodes is available.
- The unquoted glob expands to matching filenames while the quoted pattern remains literal.
- The result identifies a builtin, alias, keyword or executable as applicable.
Explanation
Correct Answer
C:The unquoted glob expands to matching filenames while the quoted pattern remains literal. This is the direct observable outcome of Globbing versus literal pattern. Shell globbing occurs before the command runs and quoting controls it.
Incorrect Answers
A:A numbered command list from the current shell history is displayed. Although that can be useful for Shell history recall, it does not establish the needed Globbing versus literal pattern result. The task requires that the unquoted glob expands to matching filenames while the quoted pattern remains literal.
B:A navigable set of linked Info nodes is available. Although that can be useful for Info documentation navigation, it does not establish the needed Globbing versus literal pattern result. The task requires that the unquoted glob expands to matching filenames while the quoted pattern remains literal.
D:The result identifies a builtin, alias, keyword or executable as applicable. Although that can be useful for type and builtin identification, it does not establish the needed Globbing versus literal pattern result. The task requires that the unquoted glob expands to matching filenames while the quoted pattern remains literal.
Question 289
A newly installed executable cannot be called by its bare name although it exists in `/opt/tools/bin`. After a correction to the PATH and command discovery workflow, which observation MOST directly confirms success?
- The destination path exists and the original name no longer refers to the same entry.
- The result identifies a builtin, alias, keyword or executable as applicable.
- The command resolves to the intended executable from a directory on the search path.
- The output uses long listing format for the specified directory.
Explanation
Correct Answer
C:The command resolves to the intended executable from a directory on the search path. This is the direct observable outcome of PATH and command discovery. PATH is a colon-separated list of directories the shell searches for command names.
Incorrect Answers
A:Although that can be useful for mv rename and relocation, it does not establish the needed PATH and command discovery result.
B:The result identifies a builtin, alias, keyword or executable as applicable. Although that can be useful for type and builtin identification, it does not establish the needed PATH and command discovery result. The task requires that the command resolves to the intended executable from a directory on the search path.
D:Although that can be useful for Bash command and argument structure, it does not establish the needed PATH and command discovery result.
Question 290
A school wants every new account to begin with common shell configuration templates. After a correction to the /etc/skel new home templates workflow, which observation MOST directly confirms success?
- Newly created homes include the intended template files when supported by useradd configuration.
- Distinct local users map to their intended UID records.
- The group appears in the group database with an available GID.
- The repaired link resolves to an existing target pathname.
Explanation
Correct Answer
A:Newly created homes include the intended template files when supported by useradd configuration. This is the direct observable outcome of /etc/skel new home templates. `/etc/skel` is a template directory for new home directories, not a live shared home.
Incorrect Answers
B:Distinct local users map to their intended UID records. Although that can be useful for UID uniqueness and identity mapping, it does not establish the needed /etc/skel new home templates result. The task requires that newly created homes include the intended template files when supported by useradd configuration.
C:The group appears in the group database with an available GID. Although that can be useful for groupadd new group, it does not establish the needed /etc/skel new home templates result. The task requires that newly created homes include the intended template files when supported by useradd configuration.
D:The repaired link resolves to an existing target pathname. Although that can be useful for Dangling symbolic links, it does not establish the needed /etc/skel new home templates result. The task requires that newly created homes include the intended template files when supported by useradd configuration.