LPI 010-160 Practice Test 52
Question 510
A team adds a colleague to an additional project group without discarding existing groups. Which underlying Linux principle BEST explains the correct procedure for Supplementary group membership?
- Unix groups provide a way to assign shared access to users and files.
- Unlinking a file requires permissions on its directory rather than necessarily on the file's own write bit.
- The `-a` append behavior prevents replacing the entire supplementary group list when using usermod -G.
- useradd creates a local account; additional options or distribution defaults control home and shell setup.
Explanation
Correct Answer
C:The `-a` append behavior prevents replacing the entire supplementary group list when using usermod -G. The procedure it justifies is to use `usermod -aG project username` or an approved equivalent to append group membership. This also allows checking that `id username` reflects both prior supplementary groups and the new project group.
Incorrect Answers
A:Unix groups provide a way to assign shared access to users and files. It describes groupadd new group, not the behavior that controls this Supplementary group membership case. Omitting append can unintentionally drop previous supplementary memberships.
B:Unlinking a file requires permissions on its directory rather than necessarily on the file's own write bit. It describes Directory write and delete rights, not the behavior that controls this Supplementary group membership case. Omitting append can unintentionally drop previous supplementary memberships.
D:Useradd creates a local account; additional options or distribution defaults control home and shell setup. It describes useradd new local account, not the behavior that controls this Supplementary group membership case. Omitting append can unintentionally drop previous supplementary memberships.
Question 511
A team needs a service to deliver static pages over HTTP or HTTPS. Which underlying Linux principle BEST explains the correct procedure for Web servers Apache and NGINX?
- Thunderbird is an email client whereas a mail server handles delivery and mailbox hosting.
- Apache and NGINX provide HTTP server functions rather than graphical client browsing.
- Source availability alone does not guarantee an application is secure or privacy-preserving.
- Package managers and repositories coordinate software metadata, updates and dependencies.
Explanation
Correct Answer
B:Apache and NGINX provide HTTP server functions rather than graphical client browsing. The procedure it justifies is to configure Apache HTTP Server or NGINX as the web-serving application. This also allows checking that an HTTP request returns the configured page from the server.
Incorrect Answers
A:Thunderbird is an email client whereas a mail server handles delivery and mailbox hosting. It describes Thunderbird email client, not the behavior that controls this Web servers Apache and NGINX case. An email client cannot directly serve the site's HTTP routes.
C:Source availability alone does not guarantee an application is secure or privacy-preserving. It describes Privacy-conscious software selection, not the behavior that controls this Web servers Apache and NGINX case. An email client cannot directly serve the site's HTTP routes.
D:Package managers and repositories coordinate software metadata, updates and dependencies. It describes Native distribution package repositories, not the behavior that controls this Web servers Apache and NGINX case. An email client cannot directly serve the site's HTTP routes.
Question 512
An administrator examines a distribution's boot files for the installed kernel. Which underlying Linux principle BEST explains the correct procedure for /boot kernel startup files?
- The motherboard provides electrical and communication pathways between system components.
- procfs presents virtual runtime data rather than a normal persistent disk archive.
- top provides interactive periodically refreshed process information.
- `/boot` commonly stores files needed during the system boot process.
Explanation
Correct Answer
D:`/boot` commonly stores files needed during the system boot process. The procedure it justifies is to inspect `/boot` for boot-related kernel and loader files when the distribution uses that layout. This also allows checking that kernel images or loader assets appear in the designated boot path.
Incorrect Answers
A:The motherboard provides electrical and communication pathways between system components. It describes Motherboard and peripherals, not the behavior that controls this /boot kernel startup files case. Mistaking runtime logs for boot images can cause administration errors.
B:Procfs presents virtual runtime data rather than a normal persistent disk archive. It describes /proc virtual process information, not the behavior that controls this /boot kernel startup files case. Mistaking runtime logs for boot images can cause administration errors.
C:Top provides interactive periodically refreshed process information. It describes top interactive process monitor, not the behavior that controls this /boot kernel startup files case. Mistaking runtime logs for boot images can cause administration errors.
Question 513
A technician wants to identify resolver addresses configured on a Linux client. Which underlying Linux principle BEST explains the correct procedure for DNS resolver configuration?
- DNS converts names into addresses and is separate from IP routing.
- IP address assignment and interface status are independent of DNS hostname resolution.
- `/etc/hosts` provides static per-host name mappings.
- Stable release channels prioritize reliability while betas exist for testing upcoming changes.
Explanation
Correct Answer
A:DNS converts names into addresses and is separate from IP routing. The procedure it justifies is to inspect `/etc/resolv.conf` or the system's effective resolver configuration. This also allows checking that the configured DNS resolver addresses are available for diagnosis.
Incorrect Answers
B:IP address assignment and interface status are independent of DNS hostname resolution. It describes ip addr show interface addresses, not the behavior that controls this DNS resolver configuration case. Broken resolver settings can affect names while raw IP connectivity still works.
C:`/etc/hosts` provides static per-host name mappings. It describes /etc/hosts local name entries, not the behavior that controls this DNS resolver configuration case. Broken resolver settings can affect names while raw IP connectivity still works.
D:Stable release channels prioritize reliability while betas exist for testing upcoming changes. It describes Stable versus beta distribution releases, not the behavior that controls this DNS resolver configuration case. Broken resolver settings can affect names while raw IP connectivity still works.
Question 514
A shell script stores a filename in variable `report` and needs to display it. Which underlying Linux principle BEST explains the correct procedure for echo and shell variables?
- Shell history is separate from filesystem directory contents.
- `locate` searches a prebuilt file-name index rather than necessarily scanning the live filesystem.
- PATH is a colon-separated list of directories the shell searches for command names.
- Unquoted variable names in an echo command are literal text, while `$name` expands a shell parameter.
Explanation
Correct Answer
D:Unquoted variable names in an echo command are literal text, while `$name` expands a shell parameter. The procedure it justifies is to expand the variable with `$` such as `echo "$course"`. This also allows checking that the printed output reflects the variable's stored value.
Incorrect Answers
A:Shell history is separate from filesystem directory contents. It describes Shell history recall, not the behavior that controls this echo and shell variables case. Printing the unexpanded identifier does not display its value.
B:`locate` searches a prebuilt file-name index rather than necessarily scanning the live filesystem. It describes locate database lookup, not the behavior that controls this echo and shell variables case. Printing the unexpanded identifier does not display its value.
C:PATH is a colon-separated list of directories the shell searches for command names. It describes PATH and command discovery, not the behavior that controls this echo and shell variables case. Printing the unexpanded identifier does not display its value.
Question 515
A student wishes to find a recently issued command without reconstructing it. Which underlying Linux principle BEST explains the correct procedure for Terminal access and shell history?
- Virtualization lets multiple guest operating systems share a physical host via a hypervisor.
- Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor.
- Permissive licenses often permit proprietary incorporation while requiring specified notices.
- Interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.
Explanation
Correct Answer
D:Interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily. The procedure it justifies is to use the shell history facility to inspect and reuse prior commands safely. This also allows checking that the intended earlier command appears in the interactive shell history.
Incorrect Answers
A:Virtualization lets multiple guest operating systems share a physical host via a hypervisor. It describes Local virtualization and guest operating systems, not the behavior that controls this Terminal access and shell history case. Mistaking command history for permanent secure audit storage gives incomplete evidence.
B:Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor. It describes Password manager and multifactor authentication, not the behavior that controls this Terminal access and shell history case. Mistaking command history for permanent secure audit storage gives incomplete evidence.
C:Permissive licenses often permit proprietary incorporation while requiring specified notices. It describes Permissive BSD-style licensing, not the behavior that controls this Terminal access and shell history case. Mistaking command history for permanent secure audit storage gives incomplete evidence.
Question 516
A lab script should update packages from the host's configured software sources. Which underlying Linux principle BEST explains the correct procedure for Native distribution package repositories?
- Virtualization lets multiple guest operating systems share a physical host via a hypervisor.
- MariaDB and MySQL are relational database servers rather than file-sharing daemons.
- Package managers and repositories coordinate software metadata, updates and dependencies.
- GIMP edits raster images and is different from a database or spreadsheet program.
Explanation
Correct Answer
C:Package managers and repositories coordinate software metadata, updates and dependencies. The procedure it justifies is to use the distribution's package manager and signed repositories to resolve and update packages. This also allows checking that installed packages and dependency versions are tracked by the repository tools.
Incorrect Answers
A:Virtualization lets multiple guest operating systems share a physical host via a hypervisor. It describes Local virtualization and guest operating systems, not the behavior that controls this Native distribution package repositories case. Manually copying unknown executables does not manage dependencies or security updates.
B:MariaDB and MySQL are relational database servers rather than file-sharing daemons. It describes MariaDB and MySQL data stores, not the behavior that controls this Native distribution package repositories case. Manually copying unknown executables does not manage dependencies or security updates.
D:GIMP edits raster images and is different from a database or spreadsheet program. It describes GIMP raster image editing, not the behavior that controls this Native distribution package repositories case. Manually copying unknown executables does not manage dependencies or security updates.
Question 517
A user moves a file from `~/Downloads` into a project directory. Which underlying Linux principle BEST explains the correct procedure for mv rename and relocation?
- `$?` contains the previous foreground command's exit status in Bash.
- `mv` renames or relocates filesystem objects rather than duplicating them.
- `cp` duplicates data rather than renaming or removing the source.
- `rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal.
Explanation
Correct Answer
B:`mv` renames or relocates filesystem objects rather than duplicating them. The procedure it justifies is to use `mv` with the original and destination paths. This also allows checking that the destination path exists and the original name no longer refers to the same entry.
Incorrect Answers
A:`$?` contains the previous foreground command's exit status in Bash. It describes Exit status from previous command, not the behavior that controls this mv rename and relocation case. Using `cp` leaves the original behind when a move was required.
C:`cp` duplicates data rather than renaming or removing the source. It describes cp regular file, not the behavior that controls this mv rename and relocation case. Using `cp` leaves the original behind when a move was required.
D:`rmdir` ordinarily removes empty directories, offering a narrower operation than recursive removal. It describes rmdir versus nonempty directories, not the behavior that controls this mv rename and relocation case. Using `cp` leaves the original behind when a move was required.
Question 518
An administrator searches for README and example configuration files shipped with a package. Which underlying Linux principle BEST explains the correct procedure for /usr/share/doc documentation directory?
- Shell tilde expansion and bare `cd` provide convenient home-directory navigation.
- Manual pages are structured command and interface documentation.
- A keyword manual search finds indexed descriptions, rather than opening a known page directly.
- Distributions often place packaged documentation under `/usr/share/doc`.
Explanation
Correct Answer
D:Distributions often place packaged documentation under `/usr/share/doc`. The procedure it justifies is to look under `/usr/share/doc/` for the installed package's documentation. This also allows checking that package-specific README or documentation files can be opened when installed.
Incorrect Answers
A:Shell tilde expansion and bare `cd` provide convenient home-directory navigation. It describes Home directory shorthand, not the behavior that controls this /usr/share/doc documentation directory case. Using a log directory as the only documentation source can miss package instructions.
B:Manual pages are structured command and interface documentation. It describes man pages and sections, not the behavior that controls this /usr/share/doc documentation directory case. Using a log directory as the only documentation source can miss package instructions.
C:A keyword manual search finds indexed descriptions, rather than opening a known page directly. It describes Keyword manual search, not the behavior that controls this /usr/share/doc documentation directory case. Using a log directory as the only documentation source can miss package instructions.
Question 519
A script author needs to distinguish a command name from its option and path operand. Which underlying Linux principle BEST explains the correct procedure for Bash command and argument structure?
- `$?` contains the previous foreground command's exit status in Bash.
- Shell command lines combine a command with options and positional arguments.
- Unquoted whitespace can split one intended argument into several tokens.
- Shell tilde expansion and bare `cd` provide convenient home-directory navigation.
Explanation
Correct Answer
B:The procedure it justifies is to treat `ls` as the command, `-l` as the option and `/tmp` as its argument.
Incorrect Answers
A:`$?` contains the previous foreground command's exit status in Bash. It describes Exit status from previous command, not the behavior that controls this Bash command and argument structure case. Treating option flags as pathnames changes the operation.
C:Unquoted whitespace can split one intended argument into several tokens. It describes Escaping spaces in shell paths, not the behavior that controls this Bash command and argument structure case. Treating option flags as pathnames changes the operation.
D:Shell tilde expansion and bare `cd` provide convenient home-directory navigation. It describes Home directory shorthand, not the behavior that controls this Bash command and argument structure case. Treating option flags as pathnames changes the operation.
Question 520
A student wants to view the structured Info manual for a supported GNU utility. Which underlying Linux principle BEST explains the correct procedure for Info documentation navigation?
- A keyword manual search finds indexed descriptions, rather than opening a known page directly.
- GNU Info documents are organized as hypertext-style nodes, distinct from plain file listings.
- Many command-line programs offer a brief `--help` option although not every program follows it.
- The `..` component denotes the parent directory in relative paths.
Explanation
Correct Answer
B:GNU Info documents are organized as hypertext-style nodes, distinct from plain file listings. The procedure it justifies is to open `info` for the intended subject and follow its node navigation. This also allows checking that a navigable set of linked Info nodes is available.
Incorrect Answers
A:A keyword manual search finds indexed descriptions, rather than opening a known page directly. It describes Keyword manual search, not the behavior that controls this Info documentation navigation case. Treating Info as a command-execution shell does not reveal documentation.
C:Many command-line programs offer a brief `--help` option although not every program follows it. It describes Command --help output, not the behavior that controls this Info documentation navigation case. Treating Info as a command-execution shell does not reveal documentation.
D:The `.` component denotes the parent directory in relative paths. It describes cd parent directory, not the behavior that controls this Info documentation navigation case. Treating Info as a command-execution shell does not reveal documentation.