LPI 010-160 Practice Test 39
Question 380
A user needs to see an interface's current IP address in Linux. After a correction to the ip addr show interface addresses workflow, which observation MOST directly confirms success?
- The service's TCP listening socket appears with the intended local address.
- The configured DNS resolver addresses are available for diagnosis.
- The queried device or subsystem attributes reflect the active kernel state.
- The output lists addresses assigned to the specified network interface.
Explanation
Correct Answer
D:The output lists addresses assigned to the specified network interface. This is the direct observable outcome of ip addr show interface addresses. IP address assignment and interface status are independent of DNS hostname resolution.
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 ip addr show interface addresses result. The task requires that the output lists addresses assigned to the specified network interface.
B:The configured DNS resolver addresses are available for diagnosis. Although that can be useful for DNS resolver configuration, it does not establish the needed ip addr show interface addresses result. The task requires that the output lists addresses assigned to the specified network interface.
C:The queried device or subsystem attributes reflect the active kernel state. Although that can be useful for /sys device and kernel interfaces, it does not establish the needed ip addr show interface addresses result. The task requires that the output lists addresses assigned to the specified network interface.
Question 381
A user is created and the operator must ensure it has a distinct local identity. After a correction to the UID uniqueness and identity mapping workflow, which observation MOST directly confirms success?
- Temporary data behaves according to the host's configured cleanup policy.
- Distinct local users map to their intended UID records.
- The group appears in the group database with an available GID.
- Authentication accepts the updated password according to the system's policies.
Explanation
Correct Answer
B:This is the direct observable outcome of UID uniqueness and identity mapping.
Incorrect Answers
A:Temporary data behaves according to the host's configured cleanup policy. Although that can be useful for /tmp and /var/tmp retention, it does not establish the needed UID uniqueness and identity mapping result. The task requires that distinct local users map to their intended UID records.
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 UID uniqueness and identity mapping result. The task requires that distinct local users map to their intended UID records.
D:Authentication accepts the updated password according to the system's policies. Although that can be useful for passwd setting account password, it does not establish the needed UID uniqueness and identity mapping result. The task requires that distinct local users map to their intended UID records.
Question 382
A company wishes to integrate permissively licensed source into another product. After a correction to the Permissive BSD-style licensing workflow, which observation MOST directly confirms success?
- Installed packages and dependency versions are tracked by the repository tools.
- The distribution package meets the GPL version's source and notice obligations.
- Redistribution retains the required copyright and license notices.
- The organizations and their public missions are identified correctly.
Explanation
Correct Answer
C:Redistribution retains the required copyright and license notices. This is the direct observable outcome of Permissive BSD-style licensing. Permissive licenses often permit proprietary incorporation while requiring specified notices.
Incorrect Answers
A:Installed packages and dependency versions are tracked by the repository tools. Although that can be useful for Native distribution package repositories, it does not establish the needed Permissive BSD-style licensing result. The task requires that redistribution retains the required copyright and license notices.
B:The distribution package meets the GPL version's source and notice obligations. Although that can be useful for GPL copyleft obligations, it does not establish the needed Permissive BSD-style licensing result. The task requires that redistribution retains the required copyright and license notices.
D:The organizations and their public missions are identified correctly. Although that can be useful for FSF versus OSI organizations, it does not establish the needed Permissive BSD-style licensing result. The task requires that redistribution retains the required copyright and license notices.
Question 383
A trainee examines a colon-separated group record and asks what member names mean. After a correction to the /etc/group account membership records workflow, which observation MOST directly confirms success?
- A group entry shows its group name, GID and listed supplementary members.
- The repaired link resolves to an existing target pathname.
- Newly created homes include the intended template files when supported by useradd configuration.
- `id username` reflects both prior supplementary groups and the new project group.
Explanation
Correct Answer
A:A group entry shows its group name, GID and listed supplementary members. This is the direct observable outcome of /etc/group account membership records. `/etc/group` records local group identities and supplemental membership lists.
Incorrect Answers
B: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/group account membership records result. The task requires that a group entry shows its group name, GID and listed supplementary members.
C:Newly created homes include the intended template files when supported by useradd configuration. Although that can be useful for /etc/skel new home templates, it does not establish the needed /etc/group account membership records result. The task requires that a group entry shows its group name, GID and listed supplementary members.
D:`id username` reflects both prior supplementary groups and the new project group. Although that can be useful for Supplementary group membership, it does not establish the needed /etc/group account membership records result. The task requires that a group entry shows its group name, GID and listed supplementary members.
Question 384
A file has codes such as `cat` and `cot` and the search should match one character in a given set. After a correction to the Basic regular-expression character classes workflow, which observation MOST directly confirms success?
- Lines containing either indicated single-character alternative match.
- The archive lists the intended files when inspected.
- The count reflects only the lines sent from grep through the pipe.
- Words with any single character in the middle are matched.
Explanation
Correct Answer
A:Lines containing either indicated single-character alternative match. This is the direct observable outcome of Basic regular-expression character classes. A regex bracket expression denotes a one-character class rather than an entire word choice.
Incorrect Answers
B:The archive lists the intended files when inspected. Although that can be useful for Creating a tar archive, it does not establish the needed Basic regular-expression character classes result. The task requires that lines containing either indicated single-character alternative match.
C:The count reflects only the lines sent from grep through the pipe. Although that can be useful for Pipes connecting commands, it does not establish the needed Basic regular-expression character classes result. The task requires that lines containing either indicated single-character alternative match.
D:Words with any single character in the middle are matched. Although that can be useful for Regular-expression dot and repetition, it does not establish the needed Basic regular-expression character classes result. The task requires that lines containing either indicated single-character alternative match.
Question 385
A colleague sends `backup.tar` and the user needs to recover the contained files. After a correction to the Extracting a tar archive workflow, which observation MOST directly confirms success?
- The resulting archive extracts with `tar -xzf` and contains the original hierarchy.
- The saved file contains the intended text after leaving the editor.
- The files recorded in the tar archive appear after extraction.
- The ZIP contains the intended file hierarchy and extracts successfully.
Explanation
Correct Answer
C:The files recorded in the tar archive appear after extraction. This is the direct observable outcome of Extracting a tar archive. `tar -x` extracts an archive and should be used with a supplied file.
Incorrect Answers
A:The resulting archive extracts with `tar -xzf` and contains the original hierarchy. Although that can be useful for tar gzip combined compression, it does not establish the needed Extracting a tar archive result. The task requires that the files recorded in the tar archive appear after extraction.
B: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 Extracting a tar archive result. The task requires that the files recorded in the tar archive appear after extraction.
D: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 Extracting a tar archive result. The task requires that the files recorded in the tar archive appear after extraction.
Question 386
A standard user is permitted to install an OS update without logging in directly as root. After a correction to the sudo authorized privilege elevation workflow, which observation MOST directly confirms success?
- File access restrictions keep sensitive authentication fields from ordinary readers.
- Entries include colon-separated account metadata without storing cleartext user passwords.
- The intended privileged action succeeds only for an authorized operator.
- Users can create their own files but cannot freely remove other users' entries under the sticky-bit rule.
Explanation
Correct Answer
C:The intended privileged action succeeds only for an authorized operator. This is the direct observable outcome of sudo authorized privilege elevation. sudo executes a command with permitted elevated privileges and can enforce policy.
Incorrect Answers
A:File access restrictions keep sensitive authentication fields from ordinary readers. Although that can be useful for /etc/shadow protected credentials, it does not establish the needed sudo authorized privilege elevation result. The task requires that the intended privileged action succeeds only for an authorized operator.
B:Entries include colon-separated account metadata without storing cleartext user passwords. Although that can be useful for /etc/passwd public account metadata, it does not establish the needed sudo authorized privilege elevation result. The task requires that the intended privileged action succeeds only for an authorized operator.
D:Although that can be useful for Sticky bit shared directories, it does not establish the needed sudo authorized privilege elevation result.
Question 387
A file contains unsorted usernames and must be alphabetized. After a correction to the sort text records workflow, which observation MOST directly confirms success?
- The resulting variable contains the expected integer.
- Only the requested prefix or suffix lines appear.
- The resulting output is ordered according to the active locale's sort rules.
- The output reports the number of newline terminators in the input.
Explanation
Correct Answer
C:The resulting output is ordered according to the active locale's sort rules. This is the direct observable outcome of sort text records. `sort` orders lines while other tools filter or count them.
Incorrect Answers
A:The resulting variable contains the expected integer. Although that can be useful for Bash arithmetic expansion, it does not establish the needed sort text records result. The task requires that the resulting output is ordered according to the active locale's sort rules.
B:Only the requested prefix or suffix lines appear. Although that can be useful for head and tail line selection, it does not establish the needed sort text records result. The task requires that the resulting output is ordered according to the active locale's sort rules.
D:The output reports the number of newline terminators in the input. Although that can be useful for wc line counting, it does not establish the needed sort text records result. The task requires that the resulting output is ordered according to the active locale's sort rules.
Question 388
A diagnostic file mixes `warning`, `Warning` and `WARNING`. After a correction to the grep -i ignore case workflow, which observation MOST directly confirms success?
- Output contains the requested field instead of full records.
- Expansion of the variable returns the intended assigned value.
- The count reflects only the lines sent from grep through the pipe.
- Lines with the term in different letter cases are selected.
Explanation
Correct Answer
D:Lines with the term in different letter cases are selected. This is the direct observable outcome of grep -i ignore case. The `-i` option makes grep ignore case distinctions in matching.
Incorrect Answers
A:Output contains the requested field instead of full records. Although that can be useful for cut delimited fields, it does not establish the needed grep -i ignore case result. The task requires that lines with the term in different letter cases are selected.
B:Expansion of the variable returns the intended assigned value. Although that can be useful for Bash variable assignment syntax, it does not establish the needed grep -i ignore case result. The task requires that lines with the term in different letter cases are selected.
C:The count reflects only the lines sent from grep through the pipe. Although that can be useful for Pipes connecting commands, it does not establish the needed grep -i ignore case result. The task requires that lines with the term in different letter cases are selected.
Question 389
A maker wants a Linux-based operating system for a Raspberry Pi learning kit. After a correction to the Raspberry Pi Linux deployment workflow, which observation MOST directly confirms success?
- Installed package metadata and repository updates show packages from the RPM-compatible ecosystem.
- The board boots to a usable Linux userspace with the expected peripherals supported.
- SQL queries retrieve stored records through the configured database service.
- The architecture identifies a Linux kernel underneath Android system services.
Explanation
Correct Answer
B:The board boots to a usable Linux userspace with the expected peripherals supported. This is the direct observable outcome of Raspberry Pi Linux deployment. Raspberry Pi OS is a Debian-derived Linux distribution built for supported Raspberry Pi hardware.
Incorrect Answers
A:Installed package metadata and repository updates show packages from the RPM-compatible ecosystem. Although that can be useful for Red Hat enterprise package family, it does not establish the needed Raspberry Pi Linux deployment result. The task requires that the board boots to a usable Linux userspace with the expected peripherals supported.
C:SQL queries retrieve stored records through the configured database service. Although that can be useful for MariaDB and MySQL data stores, it does not establish the needed Raspberry Pi Linux deployment result. The task requires that the board boots to a usable Linux userspace with the expected peripherals supported.
D:The architecture identifies a Linux kernel underneath Android system services. Although that can be useful for Android Linux kernel relationship, it does not establish the needed Raspberry Pi Linux deployment result. The task requires that the board boots to a usable Linux userspace with the expected peripherals supported.
Question 390
A student sees `-rw-r-----` and needs to identify owner, group and other access. After a correction to the ls -l permission string interpretation workflow, which observation MOST directly confirms success?
- Temporary data behaves according to the host's configured cleanup policy.
- The resulting permissions are `rw- r-- ---` for owner, group and others.
- The displayed permissions indicate the intended read, write and execute rights per class.
- New files and directories have effective modes reduced by the specified mask.
Explanation
Correct Answer
C:The displayed permissions indicate the intended read, write and execute rights per class. This is the direct observable outcome of ls -l permission string interpretation. The first character identifies object type and the following triples show permissions.
Incorrect Answers
A:Temporary data behaves according to the host's configured cleanup policy. Although that can be useful for /tmp and /var/tmp retention, it does not establish the needed ls -l permission string interpretation result. The task requires that the displayed permissions indicate the intended read, write and execute rights per class.
B: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 ls -l permission string interpretation result. The task requires that the displayed permissions indicate the intended read, write and execute rights per class.
D:New files and directories have effective modes reduced by the specified mask. Although that can be useful for umask default permission reduction, it does not establish the needed ls -l permission string interpretation result. The task requires that the displayed permissions indicate the intended read, write and execute rights per class.