McAfee-Secured Website

Exam Bundle

Exam Code: XK0-006

Exam Name CompTIA Linux+

Certification Provider: CompTIA

Corresponding Certification: CompTIA Linux+

CompTIA XK0-006 Bundle $19.99

100% CompTIA XK0-006 Guaranteed Success With Testking Training Materials

Get Real XK0-006 Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    XK0-006 Questions & Answers

    160 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual XK0-006 exam while allowing you to hone and measure every aspect of your test-taking ability.

  • Study Guide

    XK0-006 Study Guide

    1297 PDF Pages

    Developed by industry experts, this 1297-page guide spells out in painstaking detail all of the information you need to ace XK0-006 exam.

CompTIA Linux+ (XK0-006) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $154.98
Bundle Price: $134.99

Purchase Individually

  • Questions & Answers

    Questions & Answers

    160 Questions

    $124.99
  • Study Guide

    Study Guide

    1297 PDF Pages

    $29.99

CompTIA XK0-006 Practice Test 23

Question 220

At Northgate Telecom, the Linux platform reliability team maintains multi-region Linux gateways and monitoring servers under requirements for stable network connectivity and verified change records. Following a proposed correction, the team checks: A scheduled one-time data repair is accidentally entered as a recurring cron job and executes every morning. Which observed result BEST demonstrates that the correction works?

  1. A controlled upgrade resolves all required dependencies and the service launches without unmet-library errors.
  2. The repair executes once in the test schedule and no subsequent unexpected run appears in scheduling history.
  3. A deliberate one-byte modification is detected, and an unchanged copy passes the comparison.
  4. After a simulated slow mount the service starts only when its dependency is ready and no premature failure loop occurs.

Explanation

Correct Answer

B:

The repair executes once in the test schedule and no subsequent unexpected run appears in scheduling history. This measurable outcome verifies correction of: A scheduled one-time data repair is accidentally entered as a recurring cron job and executes every morning. The associated technical action is: Use the appropriate one-shot at job or a clearly bounded systemd timer instead of a recurring crontab entry. The Northgate Telecom review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

A controlled upgrade resolves all required dependencies and the service launches without unmet-library errors. This evidence pertains to an unrelated remediation: Inspect package-manager dependency and version resolution, then align the enabled repositories and compatible package versions. The alternative issue is: An application update fails with broken dependencies because conflicting package versions were pinned across enabled repositories. The current Northgate Telecom problem is: A scheduled one-time data repair is accidentally entered as a recurring cron job and executes every morning. The decisive expected evidence is instead: The repair executes once in the test schedule and no subsequent unexpected run appears in scheduling history.

C:

A deliberate one-byte modification is detected, and an unchanged copy passes the comparison. This evidence pertains to an unrelated remediation: Use a supported byte-level or checksum comparison rather than comparing filenames or timestamps alone. The alternative issue is: A script reports that two files are identical based solely on their filenames, while their content changed after deployment. The current Northgate Telecom problem is: A scheduled one-time data repair is accidentally entered as a recurring cron job and executes every morning. The decisive expected evidence is instead: The repair executes once in the test schedule and no subsequent unexpected run appears in scheduling history.

D:

After a simulated slow mount the service starts only when its dependency is ready and no premature failure loop occurs. This evidence pertains to an unrelated remediation: Add appropriate systemd ordering and requirement dependencies on the required mount or network-online target. The alternative issue is: A Linux service repeatedly restarts despite a required dependent network mount being unavailable at startup. The current Northgate Telecom problem is: A scheduled one-time data repair is accidentally entered as a recurring cron job and executes every morning. The decisive expected evidence is instead: The repair executes once in the test schedule and no subsequent unexpected run appears in scheduling history.

Question 221

At Lakeside Research, the scientific infrastructure team maintains research virtual machines and secure data services under requirements for replicable workloads and controlled access. A controlled platform review identifies: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. Which corrective action BEST addresses this Linux administration problem?

  1. Use properly signed repository metadata and trusted GPG keys for the required packages rather than turning off verification.
  2. Configure an approved time source and the supported NTP client or service with persistent startup settings.
  3. Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID.
  4. Attach a correctly permissioned persistent volume or bind mount to the database's supported data directory.

Explanation

Correct Answer

C:

Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID. This is the most direct correction for the documented Linux system issue: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The Lakeside Research operator should verify the implementation. Decisive acceptance evidence: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Incorrect Answers

A:

Use properly signed repository metadata and trusted GPG keys for the required packages rather than turning off verification. This is a remedy for a DIFFERENT Linux issue: A Linux host rejects package installation after a third-party repository begins serving unsigned packages and operators propose disabling signature checks globally. The current Lakeside Research problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

B:

Configure an approved time source and the supported NTP client or service with persistent startup settings. This is a remedy for a DIFFERENT Linux issue: A time-sensitive service drifts by several seconds because its NTP synchronization daemon is installed but never enabled or configured. The current Lakeside Research problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

D:

Attach a correctly permissioned persistent volume or bind mount to the database's supported data directory. This is a remedy for a DIFFERENT Linux issue: A database container loses committed data when it is recreated because its files were stored only in its ephemeral writable layer. The current Lakeside Research problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Question 222

At Lakeside Research, the scientific infrastructure team maintains research virtual machines and secure data services under requirements for replicable workloads and controlled access. The acceptance reviewer must validate: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. Which observed result BEST demonstrates that the correction works?

  1. A controlled activation request fails while masked and succeeds only after the authorized unit is unmasked.
  2. The revised boot trace identifies the corrected bottleneck and the intended target completes within the measured deadline.
  3. The container can write within its authorized mounted directory and a separate forbidden host path remains inaccessible.
  4. The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Explanation

Correct Answer

D:

The parent reaps the child and the zombie entry disappears without killing unrelated processes. This measurable outcome verifies correction of: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The associated technical action is: Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID. The Lakeside Research review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

A controlled activation request fails while masked and succeeds only after the authorized unit is unmasked. This evidence pertains to an unrelated remediation: Mask the unit where policy requires preventing activation, documenting and testing controlled unmask recovery. The alternative issue is: A security-sensitive daemon is merely disabled at boot but an operator can still start it through a dependency or manual systemctl command. The current Lakeside Research problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

B:

The revised boot trace identifies the corrected bottleneck and the intended target completes within the measured deadline. This evidence pertains to an unrelated remediation: Use systemd-analyze critical-chain and blame results to identify the actual startup dependency before changing unit ordering. The alternative issue is: A slow boot is blamed on CPU saturation, but no one checks which unit actually delayed the system reaching its normal target. The current Lakeside Research problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

C:

The container can write within its authorized mounted directory and a separate forbidden host path remains inaccessible. This evidence pertains to an unrelated remediation: Apply an appropriate supported SELinux volume-label option and host ownership for the rootless container without disabling SELinux globally. The alternative issue is: A rootless Podman container fails to write to a bind-mounted SELinux-enforcing host directory despite ordinary Unix permissions being correct. The current Lakeside Research problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Question 223

At Timberline Foods, the systems operations team maintains warehouse application and inventory Linux nodes under requirements for persistent records and low-disruption maintenance. An approved operational check finds: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. Which corrective action BEST addresses this Linux administration problem?

  1. Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID.
  2. Use a restricted build context and .dockerignore with a minimal reproducible runtime image that excludes sensitive files.
  3. Use a symbolic link for cross-filesystem reference or keep a real copy where an independent file is required.
  4. Attach a correctly permissioned persistent volume or bind mount to the database's supported data directory.

Explanation

Correct Answer

A:

Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID. This is the most direct correction for the documented Linux system issue: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The Timberline Foods operator should verify the implementation. Decisive acceptance evidence: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Incorrect Answers

B:

Use a restricted build context and .dockerignore with a minimal reproducible runtime image that excludes sensitive files. This is a remedy for a DIFFERENT Linux issue: A Dockerfile copies the entire repository into the image including local secrets and build caches that are not required at runtime. The current Timberline Foods problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

C:

Use a symbolic link for cross-filesystem reference or keep a real copy where an independent file is required. This is a remedy for a DIFFERENT Linux issue: A support engineer mistakenly expects a hard link across two different mounted filesystems to work and the link command fails. The current Timberline Foods problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

D:

Attach a correctly permissioned persistent volume or bind mount to the database's supported data directory. This is a remedy for a DIFFERENT Linux issue: A database container loses committed data when it is recreated because its files were stored only in its ephemeral writable layer. The current Timberline Foods problem is instead: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. It does not directly establish the requested fix. The correct acceptance criterion is: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Question 224

At Timberline Foods, the systems operations team maintains warehouse application and inventory Linux nodes under requirements for persistent records and low-disruption maintenance. The operations lead requests proof of the fix for: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. Which observed result BEST demonstrates that the correction works?

  1. Only intended regular files are removed and a protected linked directory and neighboring files remain intact.
  2. The parent reaps the child and the zombie entry disappears without killing unrelated processes.
  3. The container process runs under the intended unprivileged UID and the application passes its functionality test.
  4. A test account inherits the intended safe skeleton files without receiving another user's secrets.

Explanation

Correct Answer

B:

The parent reaps the child and the zombie entry disappears without killing unrelated processes. This measurable outcome verifies correction of: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The associated technical action is: Identify the zombie's parent process and correct its wait or reaping behavior instead of repeatedly signaling the zombie PID. The Timberline Foods review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

Only intended regular files are removed and a protected linked directory and neighboring files remain intact. This evidence pertains to an unrelated remediation: Use an explicitly scoped find predicate and review its dry-run list before performing approved deletions. The alternative issue is: A cleanup job removes a directory tree based on a broad wildcard without first distinguishing regular files from symbolic links. The current Timberline Foods problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

C:

The container process runs under the intended unprivileged UID and the application passes its functionality test. This evidence pertains to an unrelated remediation: Set an appropriate non-root user in the image or runtime configuration and use filesystem permissions compatible with the application. The alternative issue is: A container image runs its application as root even though it requires no privileged host operations. The current Timberline Foods problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

D:

A test account inherits the intended safe skeleton files without receiving another user's secrets. This evidence pertains to an unrelated remediation: Repair /etc/skel template content and permissions before creating new user accounts through the standard process. The alternative issue is: A newly created account has insecure default files because the template directory contains broadly readable credential material. The current Timberline Foods problem is: A Linux process is reported as running forever because a zombie PID persists, although it no longer executes code. The decisive expected evidence is instead: The parent reaps the child and the zombie entry disappears without killing unrelated processes.

Question 225

At Redstone Aviation, the systems reliability team maintains maintenance scheduling Linux workloads under requirements for tested recovery and restrictive network access. A documented maintenance issue reports: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. Which corrective action BEST addresses this Linux administration problem?

  1. Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load.
  2. Inspect package-manager dependency and version resolution, then align the enabled repositories and compatible package versions.
  3. Use the package manager's supported configuration-file handling and preserve reviewed changes or a maintained drop-in file.
  4. Mask the unit where policy requires preventing activation, documenting and testing controlled unmask recovery.

Explanation

Correct Answer

A:

Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load. This is the most direct correction for the documented Linux system issue: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The Redstone Aviation operator should verify the implementation. Decisive acceptance evidence: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Incorrect Answers

B:

Inspect package-manager dependency and version resolution, then align the enabled repositories and compatible package versions. This is a remedy for a DIFFERENT Linux issue: An application update fails with broken dependencies because conflicting package versions were pinned across enabled repositories. The current Redstone Aviation problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

C:

Use the package manager's supported configuration-file handling and preserve reviewed changes or a maintained drop-in file. This is a remedy for a DIFFERENT Linux issue: A distribution upgrade replaces a locally edited service configuration without an archived copy or recorded diff. The current Redstone Aviation problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

D:

Mask the unit where policy requires preventing activation, documenting and testing controlled unmask recovery. This is a remedy for a DIFFERENT Linux issue: A security-sensitive daemon is merely disabled at boot but an operator can still start it through a dependency or manual systemctl command. The current Redstone Aviation problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Question 226

At Redstone Aviation, the systems reliability team maintains maintenance scheduling Linux workloads under requirements for tested recovery and restrictive network access. Following a proposed correction, the team checks: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. Which observed result BEST demonstrates that the correction works?

  1. The container process runs under the intended unprivileged UID and the application passes its functionality test.
  2. Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.
  3. getent and id agree on the expected primary group and the user's authorized files remain accessible.
  4. The upgraded service retains the intended settings and the configuration diff clearly records the final values.

Explanation

Correct Answer

B:

Interactive latency improves during representative batch load and the batch workload still completes within its accepted window. This measurable outcome verifies correction of: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The associated technical action is: Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load. The Redstone Aviation review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

The container process runs under the intended unprivileged UID and the application passes its functionality test. This evidence pertains to an unrelated remediation: Set an appropriate non-root user in the image or runtime configuration and use filesystem permissions compatible with the application. The alternative issue is: A container image runs its application as root even though it requires no privileged host operations. The current Redstone Aviation problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

C:

getent and id agree on the expected primary group and the user's authorized files remain accessible. This evidence pertains to an unrelated remediation: Use supported usermod and group management commands to update group identity and validate affected file ownership. The alternative issue is: A script modifies a user's primary GID directly in /etc/passwd and leaves group records inconsistent. The current Redstone Aviation problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

D:

The upgraded service retains the intended settings and the configuration diff clearly records the final values. This evidence pertains to an unrelated remediation: Use the package manager's supported configuration-file handling and preserve reviewed changes or a maintained drop-in file. The alternative issue is: A distribution upgrade replaces a locally edited service configuration without an archived copy or recorded diff. The current Redstone Aviation problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Question 227

At Bluehaven Transit, the operations engineering team maintains rail scheduling application servers under requirements for bounded incidents and careful patch windows. A controlled platform review identifies: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. Which corrective action BEST addresses this Linux administration problem?

  1. Apply an appropriate supported SELinux volume-label option and host ownership for the rootless container without disabling SELinux globally.
  2. Use an explicitly scoped find predicate and review its dry-run list before performing approved deletions.
  3. Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load.
  4. Configure the needed container port publication or approved user-defined network path without exposing unrelated service ports.

Explanation

Correct Answer

C:

Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load. This is the most direct correction for the documented Linux system issue: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The Bluehaven Transit operator should verify the implementation. Decisive acceptance evidence: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Incorrect Answers

A:

Apply an appropriate supported SELinux volume-label option and host ownership for the rootless container without disabling SELinux globally. This is a remedy for a DIFFERENT Linux issue: A rootless Podman container fails to write to a bind-mounted SELinux-enforcing host directory despite ordinary Unix permissions being correct. The current Bluehaven Transit problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

B:

Use an explicitly scoped find predicate and review its dry-run list before performing approved deletions. This is a remedy for a DIFFERENT Linux issue: A cleanup job removes a directory tree based on a broad wildcard without first distinguishing regular files from symbolic links. The current Bluehaven Transit problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

D:

Configure the needed container port publication or approved user-defined network path without exposing unrelated service ports. This is a remedy for a DIFFERENT Linux issue: A containerized web service responds internally but cannot be reached from the host because no published port mapping exists. The current Bluehaven Transit problem is instead: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. It does not directly establish the requested fix. The correct acceptance criterion is: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Question 228

At Bluehaven Transit, the operations engineering team maintains rail scheduling application servers under requirements for bounded incidents and careful patch windows. The acceptance reviewer must validate: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. Which observed result BEST demonstrates that the correction works?

  1. The timer appears in systemctl list-timers and triggers exactly the approved service execution in the test interval.
  2. A controlled activation request fails while masked and succeeds only after the authorized unit is unmasked.
  3. The account reports the approved expiry and a login after the test expiry is rejected without deleting historical files.
  4. Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Explanation

Correct Answer

D:

Interactive latency improves during representative batch load and the batch workload still completes within its accepted window. This measurable outcome verifies correction of: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The associated technical action is: Adjust the process nice value or service resource policy to a suitable lower scheduling priority after measuring load. The Bluehaven Transit review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

The timer appears in systemctl list-timers and triggers exactly the approved service execution in the test interval. This evidence pertains to an unrelated remediation: Implement a oneshot service and a matching systemd timer with the intended calendar or monotonic schedule. The alternative issue is: A nightly maintenance job runs as a long-lived service with a sleep loop rather than using systemd's scheduled task mechanism. The current Bluehaven Transit problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

B:

A controlled activation request fails while masked and succeeds only after the authorized unit is unmasked. This evidence pertains to an unrelated remediation: Mask the unit where policy requires preventing activation, documenting and testing controlled unmask recovery. The alternative issue is: A security-sensitive daemon is merely disabled at boot but an operator can still start it through a dependency or manual systemctl command. The current Bluehaven Transit problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

C:

The account reports the approved expiry and a login after the test expiry is rejected without deleting historical files. This evidence pertains to an unrelated remediation: Set the account expiration using chage or the distribution-supported account tool and preserve an audit record of the change. The alternative issue is: A contractor retains login access after the agreed end date because the account expiration field was never applied. The current Bluehaven Transit problem is: A batch service monopolizes CPU and starves interactive processes because its scheduling priority is left too aggressive. The decisive expected evidence is instead: Interactive latency improves during representative batch load and the batch workload still completes within its accepted window.

Question 229

At Silvercrest University, the campus Linux administration team maintains student lab and registration servers under requirements for account isolation and predictable teaching services. An approved operational check finds: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. Which corrective action BEST addresses this Linux administration problem?

  1. Implement a oneshot service and a matching systemd timer with the intended calendar or monotonic schedule.
  2. Add the user to the intended supplementary group with usermod in append mode without replacing existing memberships.
  3. Apply an appropriate supported SELinux volume-label option and host ownership for the rootless container without disabling SELinux globally.
  4. Use absolute paths and explicitly defined environment settings in the crontab or managed unit configuration.

Explanation

Correct Answer

D:

Use absolute paths and explicitly defined environment settings in the crontab or managed unit configuration. This is the most direct correction for the documented Linux system issue: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. The Silvercrest University operator should verify the implementation. Decisive acceptance evidence: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

Incorrect Answers

A:

Implement a oneshot service and a matching systemd timer with the intended calendar or monotonic schedule. This is a remedy for a DIFFERENT Linux issue: A nightly maintenance job runs as a long-lived service with a sleep loop rather than using systemd's scheduled task mechanism. The current Silvercrest University problem is instead: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. It does not directly establish the requested fix. The correct acceptance criterion is: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

B:

Add the user to the intended supplementary group with usermod in append mode without replacing existing memberships. This is a remedy for a DIFFERENT Linux issue: A new engineer cannot access a project directory because their secondary group was omitted during account creation. The current Silvercrest University problem is instead: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. It does not directly establish the requested fix. The correct acceptance criterion is: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

C:

Apply an appropriate supported SELinux volume-label option and host ownership for the rootless container without disabling SELinux globally. This is a remedy for a DIFFERENT Linux issue: A rootless Podman container fails to write to a bind-mounted SELinux-enforcing host directory despite ordinary Unix permissions being correct. The current Silvercrest University problem is instead: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. It does not directly establish the requested fix. The correct acceptance criterion is: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

Question 230

At Silvercrest University, the campus Linux administration team maintains student lab and registration servers under requirements for account isolation and predictable teaching services. The operations lead requests proof of the fix for: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. Which observed result BEST demonstrates that the correction works?

  1. New authentication fails and formerly active test sessions no longer execute unauthorized commands.
  2. After deleting and recreating the container, the previously committed test records remain available.
  3. The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.
  4. A package query selects the approved production repository and an attempted untrusted build is not installed.

Explanation

Correct Answer

C:

The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state. This measurable outcome verifies correction of: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. The associated technical action is: Use absolute paths and explicitly defined environment settings in the crontab or managed unit configuration. The Silvercrest University review checks actual behavior rather than an untested change claim.

Incorrect Answers

A:

New authentication fails and formerly active test sessions no longer execute unauthorized commands. This evidence pertains to an unrelated remediation: Apply the supported account lock and separately review or terminate active sessions and owned scheduled tasks according to policy. The alternative issue is: An administrator locks an account but assumes that this terminates existing interactive sessions and scheduled jobs immediately. The current Silvercrest University problem is: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. The decisive expected evidence is instead: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

B:

After deleting and recreating the container, the previously committed test records remain available. This evidence pertains to an unrelated remediation: Attach a correctly permissioned persistent volume or bind mount to the database's supported data directory. The alternative issue is: A database container loses committed data when it is recreated because its files were stored only in its ephemeral writable layer. The current Silvercrest University problem is: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. The decisive expected evidence is instead: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.

D:

A package query selects the approved production repository and an attempted untrusted build is not installed. This evidence pertains to an unrelated remediation: Disable the unapproved repository and enforce the documented trusted package source priorities and exclusions. The alternative issue is: A production server installs software from a development repository because a temporary package source remains enabled after testing. The current Silvercrest University problem is: A cron-driven backup fails at night because it uses relative paths and environment variables present only in the operator's login shell. The decisive expected evidence is instead: The scheduled test runs under a minimal environment and produces the intended backup without relying on interactive shell state.