Question 890An SSH session needs to execute a controlled remote command, but the team proposes granting a permanent interactive shell to a specialized automation account. Which post-change test would demonstrate success rather than merely show that a configuration file exists? Each user authenticates with their own private key and key revocation affects only that user. The job runs the approved command while unrelated interactive commands are denied. The server stores only the public key, and the client authenticates without transferring its private key. The private key is unreadable to unrelated accounts and the authorized SSH login succeeds. ExplanationCorrect Answer B:The job runs the approved command while unrelated interactive commands are denied. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Use a constrained approved remote-command execution mechanism and restrict the account's effective privileges. Incorrect Answers A:SSH private keys establish personal authentication identity and should not be shared. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The job runs the approved command while unrelated interactive commands are denied. C:Asymmetric SSH keys separate private signing credentials from public verification material. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The job runs the approved command while unrelated interactive commands are denied. D:Private-key confidentiality is a prerequisite for secure public-key authentication and is enforced by OpenSSH. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The job runs the approved command while unrelated interactive commands are denied.
Question 891A server permits unlimited concurrent processes per account, and one accidental fork loop exhausts the host's process table. Which governing rule explains why this repair works: Set appropriate per-user process limits through the supported policy and validate them with ulimit. Network exposure is determined by bound sockets and reachability, not only file ownership settings. Password expiration metadata is a separate account policy control that must be applied to the relevant identities. Resource limits constrain individual process behavior before one user can monopolize shared host capacity. Resource limits such as ulimit can bound file descriptors independently of physical memory capacity. ExplanationCorrect Answer C:Resource limits constrain individual process behavior before one user can monopolize shared host capacity. The proposed repair works on this mechanism rather than an unrelated symptom. Set appropriate per-user process limits through the supported policy and validate them with ulimit. Incorrect Answers A:Network exposure is determined by bound sockets and reachability, not only file ownership settings. This does not establish the proposed intervention. The governing principle here is: Resource limits constrain individual process behavior before one user can monopolize shared host capacity. Apply it by: Set appropriate per-user process limits through the supported policy and validate them with ulimit. B:Password expiration metadata is a separate account policy control that must be applied to the relevant identities. This does not establish the proposed intervention. The governing principle here is: Resource limits constrain individual process behavior before one user can monopolize shared host capacity. Apply it by: Set appropriate per-user process limits through the supported policy and validate them with ulimit. D:Resource limits such as ulimit can bound file descriptors independently of physical memory capacity. This does not establish the proposed intervention. The governing principle here is: Resource limits constrain individual process behavior before one user can monopolize shared host capacity. Apply it by: Set appropriate per-user process limits through the supported policy and validate them with ulimit.
Question 892An application fails IPv6 connections for a name that has an AAAA record pointing to a decommissioned address while its A record remains correct. Which action is the most appropriate first repair? Configure the approved DNS search domain through the active connection manager. Inspect getent hosts and /etc/nsswitch.conf to reconcile the application's lookup path. Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. Verify and correct the advertised AAAA record or client resolver policy according to authoritative ownership. ExplanationCorrect Answer D:Verify and correct the advertised AAAA record or client resolver policy according to authoritative ownership. It changes the dependency that is failing in the scenario. Hostnames can map to distinct IPv4 and IPv6 records, each of which requires a valid route. Confirm the outcome with: Both A and AAAA lookups return intended targets and dual-stack clients connect successfully. Incorrect Answers A:Search domains are optional resolver expansions and are separate from the DNS server's IP address. That is relevant to a different intervention. For the stated situation, the required action is: Verify and correct the advertised AAAA record or client resolver policy according to authoritative ownership. The governing reason is: Hostnames can map to distinct IPv4 and IPv6 records, each of which requires a valid route. B:Raw DNS utilities bypass parts of the NSS resolution order that applications may use. That is relevant to a different intervention. For the stated situation, the required action is: Verify and correct the advertised AAAA record or client resolver policy according to authoritative ownership. The governing reason is: Hostnames can map to distinct IPv4 and IPv6 records, each of which requires a valid route. C:Resolver-specific caching or forwarding faults can exist even when authoritative DNS data is healthy. That is relevant to a different intervention. For the stated situation, the required action is: Verify and correct the advertised AAAA record or client resolver policy according to authoritative ownership. The governing reason is: Hostnames can map to distinct IPv4 and IPv6 records, each of which requires a valid route.
Question 893A shell loop checks whether a watched file exists, yet its numeric test compares a path string and exits with an integer-expression error. An administrator proposes to use the -e or -f file test within a properly quoted conditional expression. Which technical principle supports the proposal? File attributes have dedicated test operators; numeric comparison operators expect numeric operands. The script's declared interpreter must support every shell construct used in its body. Iteration over bounded input avoids operating-system argument-vector size limits and handles individual records. Unix commands communicate success or failure through exit status rather than the presence of output. ExplanationCorrect Answer A:File attributes have dedicated test operators; numeric comparison operators expect numeric operands. The proposed repair works on this mechanism rather than an unrelated symptom. Use the -e or -f file test within a properly quoted conditional expression. Incorrect Answers B:The script's declared interpreter must support every shell construct used in its body. This does not establish the proposed intervention. The governing principle here is: File attributes have dedicated test operators; numeric comparison operators expect numeric operands. Apply it by: Use the -e or -f file test within a properly quoted conditional expression. C:Iteration over bounded input avoids operating-system argument-vector size limits and handles individual records. This does not establish the proposed intervention. The governing principle here is: File attributes have dedicated test operators; numeric comparison operators expect numeric operands. Apply it by: Use the -e or -f file test within a properly quoted conditional expression. D:Unix commands communicate success or failure through exit status rather than the presence of output. This does not establish the proposed intervention. The governing principle here is: File attributes have dedicated test operators; numeric comparison operators expect numeric operands. Apply it by: Use the -e or -f file test within a properly quoted conditional expression.
Question 894A group-owned operations directory must remain accessible to the service team, but a new contractor is added to a similarly named group with no filesystem rights. What can go wrong if no corrective work is performed? Credential handling can be misunderstood and password database permissions may be weakened unnecessarily. An incorrect group assignment blocks work or grants access to the wrong shared directory. Two independent identities can accidentally acquire access to one another's private files. The employee continues using an unsupported shell and critical startup settings are skipped. ExplanationCorrect Answer B:An incorrect group assignment blocks work or grants access to the wrong shared directory. The direct consequence is addressed by: Check the directory's numerical group ownership and add the contractor only to the authorized matching group. A successful test would show: The contractor can enter only the approved directory after a new login and lacks access to unrelated groups. Incorrect Answers A:Shadow password schemes keep password hashes in a restricted database separate from public account metadata. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An incorrect group assignment blocks work or grants access to the wrong shared directory. C:Linux DAC interprets file ownership through UIDs, so collisions invalidate intended separation. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An incorrect group assignment blocks work or grants access to the wrong shared directory. D:The login shell recorded for a user determines the initial command interpreter, not the shell the administrator happens to use. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An incorrect group assignment blocks work or grants access to the wrong shared directory.
Question 895A firewall policy allows TCP port 53 but not UDP and intermittent ordinary DNS lookups fail while some large transfers work. Which governing rule explains why this repair works: Review and permit the required DNS protocol combination instead of diagnosing only the authoritative server. IPv4 and IPv6 have distinct address families and routing tables even when applications are dual-stack. A /25 mask splits the /24 address space into two blocks of 128 addresses. An application protocol's well-known port can be used with different transport protocols that need separate rules. RFC 1918 private IPv4 addresses are not globally routed across the public Internet. ExplanationCorrect Answer C:An application protocol's well-known port can be used with different transport protocols that need separate rules. The proposed repair works on this mechanism rather than an unrelated symptom. Review and permit the required DNS protocol combination instead of diagnosing only the authoritative server. Incorrect Answers A:IPv4 and IPv6 have distinct address families and routing tables even when applications are dual-stack. This does not establish the proposed intervention. The governing principle here is: An application protocol's well-known port can be used with different transport protocols that need separate rules. Apply it by: Review and permit the required DNS protocol combination instead of diagnosing only the authoritative server. B:A /25 mask splits the /24 address space into two blocks of 128 addresses. This does not establish the proposed intervention. The governing principle here is: An application protocol's well-known port can be used with different transport protocols that need separate rules. Apply it by: Review and permit the required DNS protocol combination instead of diagnosing only the authoritative server. D:RFC 1918 private IPv4 addresses are not globally routed across the public Internet. This does not establish the proposed intervention. The governing principle here is: An application protocol's well-known port can be used with different transport protocols that need separate rules. Apply it by: Review and permit the required DNS protocol combination instead of diagnosing only the authoritative server.
Question 896A script accepts an input filename but places the unquoted positional argument in a command that also consumes a wildcard, producing unpredictable matching. What should the administrator do to correct the underlying condition? Quote variable expansions in pathname arguments and iterate over entries safely. Read the input with IFS= read -r in the loop when preserving raw lines. Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. Pass the positional filename as a quoted argument and validate it before processing. ExplanationCorrect Answer D:Pass the positional filename as a quoted argument and validate it before processing. It changes the dependency that is failing in the scenario. Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. Confirm the outcome with: Files containing wildcard characters are handled literally without processing unrelated files. Incorrect Answers A:Word splitting and pathname expansion can alter unquoted shell arguments before the command receives them. That is relevant to a different intervention. For the stated situation, the required action is: Pass the positional filename as a quoted argument and validate it before processing. The governing reason is: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. B:The read builtin's default field splitting and backslash handling can transform raw input. That is relevant to a different intervention. For the stated situation, the required action is: Pass the positional filename as a quoted argument and validate it before processing. The governing reason is: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. C:The script's declared interpreter must support every shell construct used in its body. That is relevant to a different intervention. For the stated situation, the required action is: Pass the positional filename as a quoted argument and validate it before processing. The governing reason is: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing.
Question 897A server still exposes an obsolete telnet daemon even though all administrators now use SSH, and the security baseline requires removing unneeded listeners. After applying the correction, which observation would provide the strongest acceptance evidence? An authorized scan shows the telnet port closed while SSH remains functional. Ordinary users cannot read password hashes while login authentication continues to function. A test unprivileged login is refused while designated recovery access is confirmed. A before-and-after listener inventory shows only approved services remain active. ExplanationCorrect Answer A:An authorized scan shows the telnet port closed while SSH remains functional. A successful configuration edit alone would not prove the behavior. Unused network services expand attack surface whether launched as long-running daemons or on demand. Incorrect Answers B:Shadow password configurations separate public account metadata from restricted password hashes. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: An authorized scan shows the telnet port closed while SSH remains functional. C:Login restriction controls can block ordinary interactive sessions independently of account password correctness. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: An authorized scan shows the telnet port closed while SSH remains functional. D:Attack surface reduction concerns every unneeded reachable service rather than only the most obvious port. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: An authorized scan shows the telnet port closed while SSH remains functional.
Question 898An operator writes a Bash loop using a for statement but omits the required do/done structure, yielding a syntax error before any processing starts. Which technical response directly restores the expected behavior? Preserve and propagate the failed command status, using explicit conditional error handling instead of masking it. Use the standard for name in list; do commands; done structure with appropriate quoting. Use command substitution to assign the program's output to a variable before validation. Evaluate the monitored command's exit status with an if statement and send mail only on failure. ExplanationCorrect Answer B:Use the standard for name in list; do commands; done structure with appropriate quoting. It changes the dependency that is failing in the scenario. Shell control structures require specific delimiters and grammar before their bodies can execute. Confirm the outcome with: bash -n validates the script and a small input set produces the expected iteration count. Incorrect Answers A:The final shell exit status ordinarily reflects the last command, which can obscure an earlier failure. That is relevant to a different intervention. For the stated situation, the required action is: Use the standard for name in list; do commands; done structure with appropriate quoting. The governing reason is: Shell control structures require specific delimiters and grammar before their bodies can execute. C:Command substitution evaluates a command and substitutes its captured standard output into the surrounding expression. That is relevant to a different intervention. For the stated situation, the required action is: Use the standard for name in list; do commands; done structure with appropriate quoting. The governing reason is: Shell control structures require specific delimiters and grammar before their bodies can execute. D:Unix commands communicate success or failure through exit status rather than the presence of output. That is relevant to a different intervention. For the stated situation, the required action is: Use the standard for name in list; do commands; done structure with appropriate quoting. The governing reason is: Shell control structures require specific delimiters and grammar before their bodies can execute.
Question 899A systemd service needs periodic work triggered by elapsed time since the preceding successful activation, not by a wall-clock weekday. Which unresolved failure mode should be included in the risk review? The check can run repeatedly and produce unwanted changes on later weeks. Silent failures accumulate until disk pressure or a missing archive is discovered. The maintenance cadence drifts or stops when tied to the wrong wall-clock schedule. The recurring job fails only when the scheduler launches it unattended. ExplanationCorrect Answer C:The maintenance cadence drifts or stops when tied to the wrong wall-clock schedule. The failure arises from this Linux behavior: Systemd timers can schedule by monotonic intervals as well as calendar expressions. A repair would be: Create a systemd timer with an appropriate monotonic trigger such as OnUnitActiveSec. Incorrect Answers A:at schedules a one-shot job while cron defines recurring schedules. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: The maintenance cadence drifts or stops when tied to the wrong wall-clock schedule. B: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: The maintenance cadence drifts or stops when tied to the wrong wall-clock schedule. D:Scheduled execution inherits a minimal environment and should not assume an interactive shell startup context. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: The maintenance cadence drifts or stops when tied to the wrong wall-clock schedule.
Question 900A server moves from one timezone to another during redeployment, and the team proposes changing the UTC system clock by several hours to make the displayed time match. What consequence follows most directly if the team leaves this issue unresolved? Time jumps after migration can corrupt log ordering and time-sensitive application behavior. Clock skew continues because synchronization packets never complete a round trip. Investigators misorder incidents because the displays disagree on local wall time. Manual clock jumps can break timers, event sequencing and secure protocol checks. ExplanationCorrect Answer D:Manual clock jumps can break timers, event sequencing and secure protocol checks. The direct consequence is addressed by: Keep UTC correct and change the timezone configuration to the new location. A successful test would show: UTC remains continuous while date reports the intended local wall clock. Incorrect Answers A:Keeping the hardware clock in UTC avoids region-specific daylight-saving ambiguity in stored clock time. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Manual clock jumps can break timers, event sequencing and secure protocol checks. B:Resolving a time server name does not prove that NTP packets can reach it and return. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Manual clock jumps can break timers, event sequencing and secure protocol checks. C:NTP aligns physical time; formatting local time is controlled by timezone rules. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Manual clock jumps can break timers, event sequencing and secure protocol checks.