LPI 010-160 Practice Test 45
Question 440
An administrator asks where sysfs presents devices and their attributes. Which underlying Linux principle BEST explains the correct procedure for /sys device and kernel interfaces?
- free summarizes system memory utilization rather than listing process names.
- sysfs exposes kernel device and subsystem objects through a virtual filesystem.
- DNS converts names into addresses and is separate from IP routing.
- `ps` provides a snapshot of processes, not continuously updated interactive monitoring.
Explanation
Correct Answer
B:Sysfs exposes kernel device and subsystem objects through a virtual filesystem. The procedure it justifies is to inspect `/sys` for supported sysfs device attributes. This also allows checking that the queried device or subsystem attributes reflect the active kernel state.
Incorrect Answers
A:Free summarizes system memory utilization rather than listing process names. It describes free memory statistics, not the behavior that controls this /sys device and kernel interfaces case. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.
C:DNS converts names into addresses and is separate from IP routing. It describes DNS resolver configuration, not the behavior that controls this /sys device and kernel interfaces case. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.
D:`ps` provides a snapshot of processes, not continuously updated interactive monitoring. It describes ps process listing, not the behavior that controls this /sys device and kernel interfaces case. Mistaking sysfs for a persistent user-data directory can corrupt an investigation.
Question 441
A Linux training exercise asks which matching utility can reverse bzip2 compression. Which underlying Linux principle BEST explains the correct procedure for bzip2 compressed streams?
- ZIP combines archiving and compression in a widely supported container format.
- `tar -x` extracts an archive and should be used with a supplied file.
- bzip2 is a compression format distinct from gzip and xz.
- nano provides terminal-based text editing with on-screen shortcut hints.
Explanation
Correct Answer
C:Bzip2 is a compression format distinct from gzip and xz. The procedure it justifies is to use `bzip2` to compress and `bunzip2` or `bzip2 -d` to decompress. This also allows checking that the decompressed file matches the original content.
Incorrect Answers
A:ZIP combines archiving and compression in a widely supported container format. It describes ZIP archives and unzip, not the behavior that controls this bzip2 compressed streams case. Sending bzip2 data to an unrelated decompressor can cause format errors.
B:`tar -x` extracts an archive and should be used with a supplied file. It describes Extracting a tar archive, not the behavior that controls this bzip2 compressed streams case. Sending bzip2 data to an unrelated decompressor can cause format errors.
D:Nano provides terminal-based text editing with on-screen shortcut hints. It describes nano editor save and quit, not the behavior that controls this bzip2 compressed streams case. Sending bzip2 data to an unrelated decompressor can cause format errors.
Question 442
A team is deciding whether daily applications should run with administrative privileges. Which underlying Linux principle BEST explains the correct procedure for Root versus ordinary users?
- The root account has broad administrative power while ordinary users normally have restricted rights.
- A symbolic link stores a path reference and can point across filesystems.
- Login-session reporting differs from process snapshots and account databases.
- `/etc/passwd` holds public local account information; secret password hashes are normally stored elsewhere.
Explanation
Correct Answer
A:The root account has broad administrative power while ordinary users normally have restricted rights. The procedure it justifies is to use a standard account for routine work and elevate only for authorized administrative tasks. This also allows checking that ordinary file access is limited while privileged operations require explicit authorization.
Incorrect Answers
B:A symbolic link stores a path reference and can point across filesystems. It describes Symbolic links with ln -s, not the behavior that controls this Root versus ordinary users case. Running all applications as root increases the impact of mistakes and compromise.
C:Login-session reporting differs from process snapshots and account databases. It describes who w and last login activity, not the behavior that controls this Root versus ordinary users case. Running all applications as root increases the impact of mistakes and compromise.
D:`/etc/passwd` holds public local account information; secret password hashes are normally stored elsewhere. It describes /etc/passwd public account metadata, not the behavior that controls this Root versus ordinary users case. Running all applications as root increases the impact of mistakes and compromise.
Question 443
A user wants to understand privacy implications before installing desktop extensions. Which underlying Linux principle BEST explains the correct procedure for Privacy-conscious software selection?
- Red Hat-family distributions commonly use RPM packages rather than Debian .deb packages.
- Source availability alone does not guarantee an application is secure or privacy-preserving.
- Interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily.
- In IaaS the provider manages underlying infrastructure while customers manage their guest operating systems.
Explanation
Correct Answer
B:Source availability alone does not guarantee an application is secure or privacy-preserving. The procedure it justifies is to review application permissions, provenance, update policy and data-sharing settings. This also allows checking that installation consent and data-flow settings match the stated privacy needs.
Incorrect Answers
A:Red Hat-family distributions commonly use RPM packages rather than Debian .deb packages. It describes Red Hat enterprise package family, not the behavior that controls this Privacy-conscious software selection case. Installing untrusted code without reviewing access can expose files.
C:Interactive shells can maintain command history but sensitive inputs should not be recorded unnecessarily. It describes Terminal access and shell history, not the behavior that controls this Privacy-conscious software selection case. Installing untrusted code without reviewing access can expose files.
D:In IaaS the provider manages underlying infrastructure while customers manage their guest operating systems. It describes Cloud virtual machine responsibilities, not the behavior that controls this Privacy-conscious software selection case. Installing untrusted code without reviewing access can expose files.
Question 444
A volunteer needs an accessible way to create unique credentials for Linux service accounts. Which underlying Linux principle BEST explains the correct procedure for Password manager and multifactor authentication?
- The GPL uses copyleft conditions on covered redistribution, unlike a blanket public-domain waiver.
- Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor.
- Virtualization lets multiple guest operating systems share a physical host via a hypervisor.
- HTTPS protects transport but the identity of the site and download integrity still matter.
Explanation
Correct Answer
B:Unique secrets reduce credential-reuse exposure; MFA adds an independent verification factor. The procedure it justifies is to use unique strong passwords managed securely and enable multifactor authentication where offered. This also allows checking that different accounts use distinct credentials and supported second factors.
Incorrect Answers
A:The GPL uses copyleft conditions on covered redistribution, unlike a blanket public-domain waiver. It describes GPL copyleft obligations, not the behavior that controls this Password manager and multifactor authentication case. Reusing a breached password can compromise unrelated accounts.
C: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 Password manager and multifactor authentication case. Reusing a breached password can compromise unrelated accounts.
D:HTTPS protects transport but the identity of the site and download integrity still matter. It describes Browser HTTPS and site verification, not the behavior that controls this Password manager and multifactor authentication case. Reusing a breached password can compromise unrelated accounts.
Question 445
A team troubleshoots a group missing access to files inside a directory. Which underlying Linux principle BEST explains the correct procedure for Directory traversal execute permission?
- Unlinking a file requires permissions on its directory rather than necessarily on the file's own write bit.
- Octal permissions use bit sums read 4, write 2 and execute 1 within each class.
- Symbolic links can dangle when their targets are removed or relocated.
- Directory execute permission controls traversal or search, not execution of the files it contains.
Explanation
Correct Answer
D:Directory execute permission controls traversal or search, not execution of the files it contains. The procedure it justifies is to ensure appropriate execute/search permission on each parent directory for the accessing class. This also allows checking that a permitted user can traverse the directory path to reach an authorized file.
Incorrect Answers
A: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 Directory traversal execute permission case. File read permission alone cannot bypass a nontraversable parent directory.
B:Octal permissions use bit sums read 4, write 2 and execute 1 within each class. It describes chmod octal mode 640, not the behavior that controls this Directory traversal execute permission case. File read permission alone cannot bypass a nontraversable parent directory.
C:Symbolic links can dangle when their targets are removed or relocated. It describes Dangling symbolic links, not the behavior that controls this Directory traversal execute permission case. File read permission alone cannot bypass a nontraversable parent directory.
Question 446
A mobile-team discussion asks why Android is called Linux-based despite different user applications. Which underlying Linux principle BEST explains the correct procedure for Android Linux kernel relationship?
- Kernel lineage does not require Android to use a conventional GNU desktop userspace.
- Source availability alone does not guarantee an application is secure or privacy-preserving.
- LTS identifies an Ubuntu release designed for longer support than ordinary interim releases.
- Debian and Ubuntu share a Debian-derived package format and APT ecosystem.
Explanation
Correct Answer
A:Kernel lineage does not require Android to use a conventional GNU desktop userspace. The procedure it justifies is to explain that Android uses the Linux kernel with an Android-specific userspace and application framework. This also allows checking that the architecture identifies a Linux kernel underneath Android system services.
Incorrect Answers
B: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 Android Linux kernel relationship case. Treating the Android UI as a standard Linux desktop misstates application compatibility.
C:LTS identifies an Ubuntu release designed for longer support than ordinary interim releases. It describes Ubuntu long-term support releases, not the behavior that controls this Android Linux kernel relationship case. Treating the Android UI as a standard Linux desktop misstates application compatibility.
D:Debian and Ubuntu share a Debian-derived package format and APT ecosystem. It describes Debian-derived package family, not the behavior that controls this Android Linux kernel relationship case. Treating the Android UI as a standard Linux desktop misstates application compatibility.
Question 447
An administrator audits which supplementary groups a local account belongs to. Which underlying Linux principle BEST explains the correct procedure for /etc/group account membership records?
- passwd changes account authentication credentials through supported account-management interfaces.
- Both are temporary-file locations, with cleanup lifetime dependent on system policy.
- Filesystems associate owners primarily with numeric IDs, not merely display names.
- `/etc/group` records local group identities and supplemental membership lists.
Explanation
Correct Answer
D:`/etc/group` records local group identities and supplemental membership lists. The procedure it justifies is to read `/etc/group` and verify memberships with `id` or a supported group-query tool. This also allows checking that a group entry shows its group name, GID and listed supplementary members.
Incorrect Answers
A:Passwd changes account authentication credentials through supported account-management interfaces. It describes passwd setting account password, not the behavior that controls this /etc/group account membership records case. Editing a directory listing is not equivalent to managing group databases.
B:Both are temporary-file locations, with cleanup lifetime dependent on system policy. It describes /tmp and /var/tmp retention, not the behavior that controls this /etc/group account membership records case. Editing a directory listing is not equivalent to managing group databases.
C:It describes UID uniqueness and identity mapping, not the behavior that controls this /etc/group account membership records case.
Question 448
A library author chooses a license allowing broad reuse with preservation of required notices. Which underlying Linux principle BEST explains the correct procedure for Permissive BSD-style licensing?
- Permissive licenses often permit proprietary incorporation while requiring specified notices.
- Creative Commons licenses are frequently used for creative works whereas software licenses address source-code distribution.
- Firefox is a web browser, not a package repository or command shell.
- The GPL uses copyleft conditions on covered redistribution, unlike a blanket public-domain waiver.
Explanation
Correct Answer
A:Permissive licenses often permit proprietary incorporation while requiring specified notices. The procedure it justifies is to follow the specific BSD-style license's notice and attribution conditions when redistributing. This also allows checking that redistribution retains the required copyright and license notices.
Incorrect Answers
B:Creative Commons licenses are frequently used for creative works whereas software licenses address source-code distribution. It describes Creative Commons and software licensing, not the behavior that controls this Permissive BSD-style licensing case. Treating permissive licensing as no copyright obligations may omit notices.
C:Firefox is a web browser, not a package repository or command shell. It describes Firefox web browsing, not the behavior that controls this Permissive BSD-style licensing case. Treating permissive licensing as no copyright obligations may omit notices.
D:The GPL uses copyleft conditions on covered redistribution, unlike a blanket public-domain waiver. It describes GPL copyleft obligations, not the behavior that controls this Permissive BSD-style licensing case. Treating permissive licensing as no copyright obligations may omit notices.
Question 449
A shell exercise contrasts `/etc` with `etc` as pathnames. Which underlying Linux principle BEST explains the correct procedure for Absolute filesystem paths?
- Manual pages are structured command and interface documentation.
- Current-directory reporting is different from changing directories.
- Default `ls` usually hides dot-prefixed names unless an option requests them.
- Leading `/` anchors a pathname at the filesystem root.
Explanation
Correct Answer
D:Leading `/` anchors a pathname at the filesystem root. The procedure it justifies is to use a path beginning with `/` when referencing an absolute location. This also allows checking that the command reaches the same target independent of the current working directory.
Incorrect Answers
A:Manual pages are structured command and interface documentation. It describes man pages and sections, not the behavior that controls this Absolute filesystem paths case. Relative paths depend on the shell's starting directory.
B:Current-directory reporting is different from changing directories. It describes pwd current directory, not the behavior that controls this Absolute filesystem paths case. Relative paths depend on the shell's starting directory.
C:Default `ls` usually hides dot-prefixed names unless an option requests them. It describes Hidden dotfiles and ls -a, not the behavior that controls this Absolute filesystem paths case. Relative paths depend on the shell's starting directory.
Question 450
A student must inspect a tree without opening each child directory manually. Which underlying Linux principle BEST explains the correct procedure for Recursive directory listings?
- Leading `/` anchors a pathname at the filesystem root.
- `touch` creates an empty file when missing and normally updates timestamps when present.
- Default `ls` usually hides dot-prefixed names unless an option requests them.
- Recursive listing traverses nested directory contents rather than only a single level.
Explanation
Correct Answer
D:Recursive listing traverses nested directory contents rather than only a single level. The procedure it justifies is to use `ls -R` for a recursive listing of the directory hierarchy. This also allows checking that entries from subdirectories appear below their corresponding directory labels.
Incorrect Answers
A:Leading `/` anchors a pathname at the filesystem root. It describes Absolute filesystem paths, not the behavior that controls this Recursive directory listings case. Plain `ls` on the top directory omits many descendants.
B:`touch` creates an empty file when missing and normally updates timestamps when present. It describes touch empty files and timestamps, not the behavior that controls this Recursive directory listings case. Plain `ls` on the top directory omits many descendants.
C:Default `ls` usually hides dot-prefixed names unless an option requests them. It describes Hidden dotfiles and ls -a, not the behavior that controls this Recursive directory listings case. Plain `ls` on the top directory omits many descendants.