Question 680The payroll script's output must be reproducible across hosts, but LC_ALL is inherited unpredictably from whoever starts the command. The team recommends: Set the intended locale explicitly within the script and avoid dependence on interactive inherited settings. Which Linux behavior best explains that recommendation? Locale categories can be overridden independently rather than forcing all regional behavior through LANG. iconv transforms text between character encodings when the source encoding is known. Locale categories influence command output and can change text expected by scripts. Reproducible command output requires controlling locale-sensitive formatting at the process boundary. ExplanationCorrect Answer D:Reproducible command output requires controlling locale-sensitive formatting at the process boundary. The underlying rule explains the proposal. Set the intended locale explicitly within the script and avoid dependence on interactive inherited settings. Without it, identical business data can be interpreted differently depending on the launching user's session. Incorrect Answers A:Locale categories can be overridden independently rather than forcing all regional behavior through LANG. This does not establish the proposed intervention. The governing principle here is: Reproducible command output requires controlling locale-sensitive formatting at the process boundary. Apply it by: Set the intended locale explicitly within the script and avoid dependence on interactive inherited settings. B:iconv transforms text between character encodings when the source encoding is known. This does not establish the proposed intervention. The governing principle here is: Reproducible command output requires controlling locale-sensitive formatting at the process boundary. Apply it by: Set the intended locale explicitly within the script and avoid dependence on interactive inherited settings. C:Locale categories influence command output and can change text expected by scripts. This does not establish the proposed intervention. The governing principle here is: Reproducible command output requires controlling locale-sensitive formatting at the process boundary. Apply it by: Set the intended locale explicitly within the script and avoid dependence on interactive inherited settings.
Question 681An operator schedules a one-time database check for next Tuesday, but mistakenly uses a cron expression that repeats every Tuesday forever. After applying the correction, which observation would provide the strongest acceptance evidence? atq shows one pending job, and it disappears after the intended execution. A forced test failure leaves a timestamped, readable error record with a nonzero status. A schedule inventory accounts for each task and changes affect only the intended execution path. A calendar-style dry run shows exactly five 02:15 executions per week on the intended weekdays. ExplanationCorrect Answer A:atq shows one pending job, and it disappears after the intended execution. A successful configuration edit alone would not prove the behavior. at schedules a one-shot job while cron defines recurring schedules. Incorrect Answers B:Unattended jobs require observable results; scheduling success does not prove command success. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: atq shows one pending job, and it disappears after the intended execution. C:Cron scheduling may be distributed across user entries, system tables and periodic directory runners. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: atq shows one pending job, and it disappears after the intended execution. D:Traditional five-field cron scheduling uses separate minute, hour, month-day, month and weekday constraints. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: atq shows one pending job, and it disappears after the intended execution.
Question 682A department wants to restrict the at utility to a handful of operators, but the host has a permissive access configuration for all local users. Which action is the most appropriate first repair? Add the execution username in the system crontab entry and verify field ordering. Configure at.allow or the distribution's equivalent control with the explicitly authorized accounts. Inventory both user crontabs and the system cron directories before changing the schedule. Correct the hour field using the supported cron step or list syntax and validate the resulting schedule. ExplanationCorrect Answer B:Configure at.allow or the distribution's equivalent control with the explicitly authorized accounts. It changes the dependency that is failing in the scenario. The at access lists govern who can queue one-time jobs independently of filesystem permissions. Confirm the outcome with: One approved account queues a harmless test job while an excluded account is rejected. Incorrect Answers A:System-wide crontab entries include an account field that per-user crontabs do not include. That is relevant to a different intervention. For the stated situation, the required action is: Configure at.allow or the distribution's equivalent control with the explicitly authorized accounts. The governing reason is: The at access lists govern who can queue one-time jobs independently of filesystem permissions. C:Cron scheduling may be distributed across user entries, system tables and periodic directory runners. That is relevant to a different intervention. For the stated situation, the required action is: Configure at.allow or the distribution's equivalent control with the explicitly authorized accounts. The governing reason is: The at access lists govern who can queue one-time jobs independently of filesystem permissions. D:Cron fields require valid syntax for ranges, lists and increments before a task can be scheduled. That is relevant to a different intervention. For the stated situation, the required action is: Configure at.allow or the distribution's equivalent control with the explicitly authorized accounts. The governing reason is: The at access lists govern who can queue one-time jobs independently of filesystem permissions.
Question 683A printer's device connection works but users cannot submit jobs because the configured queue stopped accepting new requests after maintenance. Which technical response directly restores the expected behavior? Identify the specific job with lpq or CUPS tools and remove only that job with lprm or cancel. Use the queue's job identifiers to target only the failed job and keep valid jobs queued. Re-enable job acceptance for the appropriate CUPS queue and verify its status. Identify duplicate submissions and adjust the retry workflow instead of clearing the entire printer spool. ExplanationCorrect Answer C:Re-enable job acceptance for the appropriate CUPS queue and verify its status. This targets the failure described rather than another system component. CUPS distinguishes accepting jobs from processing enabled jobs, and both states affect service availability. The expected result is: The queue accepts a new user print job and processes it through the active printer. Incorrect Answers A:Print queues assign job identifiers, allowing targeted cancellation without clearing unrelated work. That is relevant to a different intervention. For the stated situation, the required action is: Re-enable job acceptance for the appropriate CUPS queue and verify its status. The governing reason is: CUPS distinguishes accepting jobs from processing enabled jobs, and both states affect service availability. B:CUPS job-level controls should be preferred over indiscriminate queue clearing when failures are isolated. That is relevant to a different intervention. For the stated situation, the required action is: Re-enable job acceptance for the appropriate CUPS queue and verify its status. The governing reason is: CUPS distinguishes accepting jobs from processing enabled jobs, and both states affect service availability. D:Each print submission creates a separate queued job, so repeated client retries can duplicate physical output. That is relevant to a different intervention. For the stated situation, the required action is: Re-enable job acceptance for the appropriate CUPS queue and verify its status. The governing reason is: CUPS distinguishes accepting jobs from processing enabled jobs, and both states affect service availability.
Question 684A monitoring appliance reports a one-hour difference from a server log only during seasonal clock changes, despite correct NTP offsets on both machines. What is the most defensible corrective step? Restrict its source configuration to approved enterprise NTP peers and validate their reachability. Repair the authoritative time-sync configuration instead of relying on repeated manual clock setting. Inspect and reconcile hardware time using hwclock with a controlled direction of synchronization. Confirm the timezone and daylight-saving definitions used by the logging display and reporting service. ExplanationCorrect Answer D:Confirm the timezone and daylight-saving definitions used by the logging display and reporting service. It changes the dependency that is failing in the scenario. NTP aligns physical time; formatting local time is controlled by timezone rules. Confirm the outcome with: The same UTC event displays with the correct seasonal offset in both systems. Incorrect Answers A:Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. That is relevant to a different intervention. For the stated situation, the required action is: Confirm the timezone and daylight-saving definitions used by the logging display and reporting service. The governing reason is: NTP aligns physical time; formatting local time is controlled by timezone rules. B:Manual wall-clock changes do not establish ongoing synchronization with a reliable reference. That is relevant to a different intervention. For the stated situation, the required action is: Confirm the timezone and daylight-saving definitions used by the logging display and reporting service. The governing reason is: NTP aligns physical time; formatting local time is controlled by timezone rules. C:The RTC and running system clock are distinct clock sources and can disagree. That is relevant to a different intervention. For the stated situation, the required action is: Confirm the timezone and daylight-saving definitions used by the logging display and reporting service. The governing reason is: NTP aligns physical time; formatting local time is controlled by timezone rules.
Question 685A user's login shell ignores their Bash startup file because both ~/.bash_profile and ~/.profile exist, and the expected user environment is configured only in the latter. After applying the correction, which observation would provide the strongest acceptance evidence? A fresh login reads the intended variables once, with neither missing values nor duplicate initialization effects. The variable is visible immediately to the subsequent current-shell command without another import step. Opening a new interactive Bash window shows the alias through the alias builtin. type -a shows the approved binary selected first and no untrusted search entry precedes it. ExplanationCorrect Answer A:A fresh login reads the intended variables once, with neither missing values nor duplicate initialization effects. A successful configuration edit alone would not prove the behavior. Bash login initialization uses the first applicable personal login file, so later alternatives are not automatically all loaded. Incorrect Answers B:The dot or source builtin executes file contents in the calling shell, unlike running a separate shell process. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A fresh login reads the intended variables once, with neither missing values nor duplicate initialization effects. C:Bash reads initialization files according to login and interactive mode, not merely because a shell is started. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A fresh login reads the intended variables once, with neither missing values nor duplicate initialization effects. D:Command lookup follows PATH order; a writable earlier directory can shadow a trusted executable. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A fresh login reads the intended variables once, with neither missing values nor duplicate initialization effects.
Question 686A maintenance script uses an environment variable set in a parent shell, but its child process sees an empty value and selects the default production endpoint. Which post-change test would demonstrate success rather than merely show that a configuration file exists? A fresh login resolves the utility with command -v and runs it without an absolute path. The spawned process prints the intended variable through env and targets the test endpoint. The restarted process no longer reports the variable, while the existing process is handled explicitly. The job invokes the intended program successfully in a clean noninteractive environment. ExplanationCorrect Answer B:The spawned process prints the intended variable through env and targets the test endpoint. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Export the variable from the parent shell before launching the child process. Incorrect Answers A:Login profiles establish inherited command search paths, whereas interactive rc files need not run in every login context. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The spawned process prints the intended variable through env and targets the test endpoint. C:A process receives an environment snapshot at execution time; changing the parent later does not edit an existing child's environment. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The spawned process prints the intended variable through env and targets the test endpoint. D:Aliases are generally interactive shell conveniences and cannot substitute for declared batch dependencies. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The spawned process prints the intended variable through env and targets the test endpoint.
Question 687An administrator treats the public id_ed25519.pub file as a secret and copies the corresponding private id_ed25519 file to a shared server for convenience. Which unresolved failure mode should be included in the risk review? Sensitive information is exposed because signing is mistaken for encryption. Colleagues may continue encrypting or accepting signatures for a compromised identity. A compromised shared server could leak private SSH authentication credentials. An automation credential can be abused to obtain an unnecessary general-purpose shell. ExplanationCorrect Answer C:A compromised shared server could leak private SSH authentication credentials. The failure arises from this Linux behavior: Asymmetric SSH keys separate private signing credentials from public verification material. A repair would be: Keep the private key protected on the client and distribute only the authorized public key to the server. Incorrect Answers A:Encryption protects confidentiality to the intended private-key holder; a signature alone does not hide plaintext. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A compromised shared server could leak private SSH authentication credentials. B:A published public key can remain trusted by others until its revoked state becomes known. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A compromised shared server could leak private SSH authentication credentials. D:Authenticated SSH transport does not require granting unrestricted interactive capabilities for every automated task. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A compromised shared server could leak private SSH authentication credentials.
Question 688A schedule intended to run every weekday at 02:15 instead runs each day because the day-of-week field is a wildcard. What consequence follows most directly if the team leaves this issue unresolved? Silent failures accumulate until disk pressure or a missing archive is discovered. A correct service definition remains dormant because no timer fires it. The scheduler parses an invalid command field and never executes the intended task. Weekend jobs may interfere with maintenance windows and data processing. ExplanationCorrect Answer D:Weekend jobs may interfere with maintenance windows and data processing. The direct consequence is addressed by: Set the correct minute, hour and weekday fields in the cron expression and validate it against the required dates. A successful test would show: A calendar-style dry run shows exactly five 02:15 executions per week on the intended weekdays. Incorrect Answers A:Unattended jobs require observable results; scheduling success does not prove command success. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Weekend jobs may interfere with maintenance windows and data processing. B:A systemd timer is the scheduling trigger; enabling the target service alone does not create periodic activations. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Weekend jobs may interfere with maintenance windows and data processing. C:System-wide crontab entries include an account field that per-user crontabs do not include. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Weekend jobs may interfere with maintenance windows and data processing.
Question 689An employee shares their private SSH key with a colleague so both can access a project host under the employee's authorized_keys entry. What is the most defensible corrective step? Give each person a distinct key pair and install only authorized public keys for their own access. Use ssh-agent to hold the unlocked key during an approved session rather than stripping passphrase protection. Validate the signer's public-key fingerprint through a trusted independent source before relying on signature verification. Revoke the compromised key using the established revocation material and distribute the revocation through approved channels. ExplanationCorrect Answer A:Give each person a distinct key pair and install only authorized public keys for their own access. This targets the failure described rather than another system component. SSH private keys establish personal authentication identity and should not be shared. The expected result is: Each user authenticates with their own private key and key revocation affects only that user. Incorrect Answers B:An authentication agent can reuse a protected unlocked key without storing it in plaintext for every connection. That is relevant to a different intervention. For the stated situation, the required action is: Give each person a distinct key pair and install only authorized public keys for their own access. The governing reason is: SSH private keys establish personal authentication identity and should not be shared. C:A cryptographically valid signature is meaningful only when its verification key is bound to the expected identity. That is relevant to a different intervention. For the stated situation, the required action is: Give each person a distinct key pair and install only authorized public keys for their own access. The governing reason is: SSH private keys establish personal authentication identity and should not be shared. D:A published public key can remain trusted by others until its revoked state becomes known. That is relevant to a different intervention. For the stated situation, the required action is: Give each person a distinct key pair and install only authorized public keys for their own access. The governing reason is: SSH private keys establish personal authentication identity and should not be shared.
Question 690A script uses host to query public DNS and receives the expected record, but the application follows NSS and still cannot resolve the same name. Which post-change test would demonstrate success rather than merely show that a configuration file exists? getent hosts returns the intended address and the application connects to the current server. getent resolves the service name consistently with the application's lookup result. Both A and AAAA lookups return intended targets and dual-stack clients connect successfully. getent resolves the expected unqualified internal name to its correct address. ExplanationCorrect Answer B:getent resolves the service name consistently with the application's lookup result. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Inspect getent hosts and /etc/nsswitch.conf to reconcile the application's lookup path. Incorrect Answers A:Applications using NSS may prefer local hosts entries to DNS answers depending on configuration. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: getent resolves the service name consistently with the application's lookup result. C:Hostnames can map to distinct IPv4 and IPv6 records, each of which requires a valid route. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: getent resolves the service name consistently with the application's lookup result. D:Search domains are optional resolver expansions and are separate from the DNS server's IP address. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: getent resolves the service name consistently with the application's lookup result.