Practice Exams:

LPI 101-500 Dumps

EXAM: LPIC-1 Exam 101
Verified By Experts
Premium Bundle
$40.00
$59.97 $99.97

101-500 Premium Bundle


  • Premium File 120 Questions & Answers
  • Training Course 126 Lectures
  • Study Guide 442 Pages

LPI 101-500 Practice Test 29

Question 280

An admin needs to list logs older than a threshold without matching similarly named directories and sockets. What consequence best illustrates this particular configuration risk?

  1. The configuration remains unchanged or unwanted editor commands execute instead of adding text.
  2. Active files or subdirectories may be erased along with the intended stale regular files.
  3. The report may contain incorrect fields or silently omit empty values from its input.
  4. Editing either filename can change the shared data, defeating the intended independent backup.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

B.

Active files or subdirectories may be erased along with the intended stale regular files. This can follow from the shortcut: Execute rm recursively on the whole parent path because its directory name includes archive. The protective action is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action. The case states: An admin needs to list logs older than a threshold without matching similarly named directories and sockets.

C.

This failure concerns another situation: A service report has colon-separated records and an analyst needs only the second field of each line. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

D.

This failure concerns another situation: A backup process creates a second filename for one file on the same filesystem and the operator expects independent contents. The case here is: An admin needs to list logs older than a threshold without matching similarly named directories and sockets. The primary consequence is: Active files or subdirectories may be erased along with the intended stale regular files. The prevention is: Use find with an explicit starting path, regular-file type and appropriate age predicate before any reviewed action.

Question 281

A Linux application must be archived with nested configuration and metadata before a version migration. What should the system administrator do first to resolve the stated issue?

  1. Use cut with the matching delimiter and field number to select the requested column without modifying source data.
  2. Preview a bounded sed substitution on a copy and verify intended occurrences before applying any file changes.
  3. Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.
  4. Assign the variable and export it from the invoking shell before launching the child process.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A service report has colon-separated records and an analyst needs only the second field of each line. The stated scenario is: A Linux application must be archived with nested configuration and metadata before a version migration. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

This action fits another scenario: A config sample needs a known old hostname replaced with a new one while unrelated text must remain unchanged. The stated scenario is: A Linux application must be archived with nested configuration and metadata before a version migration. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

C.

Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The scenario is: A Linux application must be archived with nested configuration and metadata before a version migration. The technical reason is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

D.

This action fits another scenario: A shell script starts a subprocess that cannot see a value assigned earlier in an interactive Bash session. The stated scenario is: A Linux application must be archived with nested configuration and metadata before a version migration. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

Question 282

A Linux application must be archived with nested configuration and metadata before a version migration. The administrator proposes: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. Which Linux behavior makes the proposed remediation appropriate?

  1. On a shared writable directory, the sticky bit restricts unlink and rename actions to permitted owners or privileged accounts.
  2. Extended regular expressions interpret alternation and grouping differently from basic grep patterns.
  3. Null-delimited records avoid the ambiguity of whitespace and line-break characters inside valid Unix filenames.
  4. A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

Answer & Explanations

Correct answer: D

A.

This principle explains another scenario: A multiuser lab permits everyone to write to a common temporary directory but users delete one another's files. The situation here is: A Linux application must be archived with nested configuration and metadata before a version migration. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

B.

This principle explains another scenario: A log review needs records containing either ERROR or FATAL but plain grep interprets a vertical-bar pattern literally. The situation here is: A Linux application must be archived with nested configuration and metadata before a version migration. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

C.

This principle explains another scenario: A cleanup command consumes paths emitted by find, but some names contain spaces and newlines. The situation here is: A Linux application must be archived with nested configuration and metadata before a version migration. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

D.

A tar archive preserves a tree of named entries and may restore directory structures rather than a single file. That is why the appropriate action is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The stated problem is: A Linux application must be archived with nested configuration and metadata before a version migration.

Question 283

A Linux application must be archived with nested configuration and metadata before a version migration. The administrator proposes: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. What acceptance check best distinguishes success from an unchanged issue?

  1. Compare the terminal output and saved file for the same benign test run and confirm their content agrees.
  2. Modify a disposable file, save it and reopen it to verify the exact intended text persists.
  3. Run a non-destructive find listing and inspect boundary timestamps and object types before allowing any cleanup.
  4. List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

Answer & Explanations

Correct answer: D

A.

This check is intended for another scenario: A deployment operator wants to watch command output live and also preserve an exact run log for review. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

B.

This check is intended for another scenario: A new administrator can navigate a configuration file in vi but typing does not insert text because normal mode is active. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

C.

This check is intended for another scenario: A backup directory contains stale regular files and live subdirectories that must be retained. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

D.

List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy. This verifies the action: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The test applies to: A Linux application must be archived with nested configuration and metadata before a version migration.

Question 284

A Linux application must be archived with nested configuration and metadata before a version migration. What tempting response would create an avoidable operational hazard?

  1. Start a second identical job because the original stopped job is mistaken for a terminated process.
  2. Extract an unreviewed archive directly over / with no inspection of contained paths or ownership.
  3. Run a destructive repair mode against an actively mounted production filesystem to avoid scheduling downtime.
  4. Terminate the largest-looking process by name before checking whether CPU, I/O or memory is actually constrained.

Answer & Explanations

Correct answer: B

A.

This is a shortcut for another issue: An interactive operator temporarily pauses a long-running text transformation and later needs it to continue. The specific case is: A Linux application must be archived with nested configuration and metadata before a version migration. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. This is unsafe in: A Linux application must be archived with nested configuration and metadata before a version migration. The likely result is: Unintended archive entries could overwrite system configuration and disrupt running applications. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

C.

This is a shortcut for another issue: A maintenance window reveals ext4 metadata errors and the administrator considers running a repair on its mounted read-write root filesystem. The specific case is: A Linux application must be archived with nested configuration and metadata before a version migration. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

D.

This is a shortcut for another issue: A Linux machine is slow and a technician assumes that CPU is saturated without measuring running tasks. The specific case is: A Linux application must be archived with nested configuration and metadata before a version migration. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

Question 285

A Linux application must be archived with nested configuration and metadata before a version migration. Which failure can follow if this control is ignored?

  1. Healthy processes may be stopped alongside the malfunctioning worker.
  2. Previously dangerous arguments may run again and damage the host instead of informing a controlled procedure.
  3. Unrelated configuration can be erased and the obsolete directive may remain.
  4. Unintended archive entries could overwrite system configuration and disrupt running applications.

Answer & Explanations

Correct answer: D

A.

This failure concerns another situation: A host has several similarly named application processes and only one worker must be restarted. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

This failure concerns another situation: A junior engineer repeatedly guesses unfamiliar command flags from memory despite local manual pages describing exact usage. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

C.

This failure concerns another situation: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The case here is: A Linux application must be archived with nested configuration and metadata before a version migration. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

D.

Unintended archive entries could overwrite system configuration and disrupt running applications. This can follow from the shortcut: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. The protective action is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The case states: A Linux application must be archived with nested configuration and metadata before a version migration.

Question 286

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. Which configuration or command decision addresses the stated failure?

  1. Use a supported nohup or persistent terminal session and direct outputs to monitored files before disconnecting.
  2. Use dpkg-reconfigure where supported to rerun the installed package's configuration process with reviewed settings.
  3. Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.
  4. Use a null-delimited find output with xargs -0 when passing arbitrary filenames to another command.

Answer & Explanations

Correct answer: C

A.

This action fits another scenario: A remote backup process stops when an SSH session ends and the engineer needs a suitable persistent execution method. The stated scenario is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

This action fits another scenario: An installed Debian package works with default settings but needs its package-managed setup dialog rerun after site changes. The stated scenario is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

C.

Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The scenario is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The technical reason is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

D.

This action fits another scenario: A cleanup command consumes paths emitted by find, but some names contain spaces and newlines. The stated scenario is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The appropriate response here is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

Question 287

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The administrator proposes: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. Which technical explanation supports the proposed Linux action?

  1. Pathname expansion occurs in the invoking shell and determines the command's actual argument list.
  2. Standard output and standard error are independent streams and require distinct redirection when separate destinations are intended.
  3. find evaluates metadata tests per entry, allowing file-type and time conditions to be combined precisely.
  4. A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

Answer & Explanations

Correct answer: D

A.

This principle explains another scenario: A script uses a star wildcard and unintentionally selects backup files as well as current reports. The situation here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

B.

This principle explains another scenario: A nightly job must save normal command output while leaving failures visible in a separate diagnostic log. The situation here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

C.

This principle explains another scenario: A backup directory contains stale regular files and live subdirectories that must be retained. The situation here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The controlling mechanism is: A tar archive preserves a tree of named entries and may restore directory structures rather than a single file.

D.

A tar archive preserves a tree of named entries and may restore directory structures rather than a single file. That is why the appropriate action is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The stated problem is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production.

Question 288

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The administrator proposes: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. What test should validate the proposed configuration or command change?

  1. Record stable disk identity and partition layout, run a reviewed mkfs operation in a test environment and confirm the new filesystem signature.
  2. Observe orderly process exit and resulting application state after SIGTERM under a controlled test.
  3. Boot a controlled rescue environment, verify the target is not mounted for writes, and inspect the post-repair filesystem consistency.
  4. List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

Answer & Explanations

Correct answer: D

A.

This check is intended for another scenario: A server receives a new storage disk and an engineer must distinguish it from the system boot device before creating an ext4 filesystem. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

B.

This check is intended for another scenario: A database helper is slow to exit and an operator wants to ensure it can flush in-memory state. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

C.

This check is intended for another scenario: A maintenance window reveals ext4 metadata errors and the administrator considers running a repair on its mounted read-write root filesystem. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The pertinent test is: List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy.

D.

List the archive first, perform a test extraction in an isolated directory and compare resulting file hierarchy. This verifies the action: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The test applies to: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production.

Question 289

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. What action would most directly undermine the intended safeguard?

  1. Delete successive lines blindly from the top because the desired directive appears somewhere later.
  2. Extract an unreviewed archive directly over / with no inspection of contained paths or ownership.
  3. Use an unrelated byte-count command and assume it identifies the second logical column of structured records.
  4. Remove spaces from every production directory instead of fixing the unsafe shell parameter expansion.

Answer & Explanations

Correct answer: B

A.

This is a shortcut for another issue: An operator needs to locate one obsolete directive among many lines and remove it without affecting similar entries. The specific case is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. This is unsafe in: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The likely result is: Unintended archive entries could overwrite system configuration and disrupt running applications. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

C.

This is a shortcut for another issue: A service report has colon-separated records and an analyst needs only the second field of each line. The specific case is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

D.

This is a shortcut for another issue: A maintenance script fails when a filename includes spaces because an unquoted variable expands into several command arguments. The specific case is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. Here, avoid: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. Instead: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

Question 290

An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. What problem is the proposed administration change designed to prevent?

  1. Repeated hosts may remain counted multiple times and distort the operational summary.
  2. Unintended archive entries could overwrite system configuration and disrupt running applications.
  3. An unexpected program version can continue running or a working system command may be removed needlessly.
  4. Critical log categories may be omitted because the expression is interpreted as literal text.

Answer & Explanations

Correct answer: B

A.

This failure concerns another situation: An incident sample lists several recurring hostnames out of order and the team wants one entry per distinct name. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

B.

Unintended archive entries could overwrite system configuration and disrupt running applications. This can follow from the shortcut: Extract an unreviewed archive directly over / with no inspection of contained paths or ownership. The protective action is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination. The case states: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production.

C.

This failure concerns another situation: A technician installs a program under /opt/tools but invoking its short name still runs an older executable in /usr/bin. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

D.

This failure concerns another situation: A log review needs records containing either ERROR or FATAL but plain grep interprets a vertical-bar pattern literally. The case here is: An operations engineer receives a tar archive and wants to know what it would restore before placing files on production. The primary consequence is: Unintended archive entries could overwrite system configuration and disrupt running applications. The prevention is: Use tar to inspect archive contents and create or extract archives with explicit reviewed paths and intended destination.

LPIC-1 Exam 101 (101-500) Practice Tests