Question 370A Linux workstation's local X keyboard layout changes back after its graphical environment restarts, despite manual changes made in a running session. Which change most directly addresses this failure? Use scoped X authentication cookies through xauth instead of broadly disabling X server access controls. Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. Configure a supported display manager and confirm that it starts the intended desktop session. Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. ExplanationCorrect Answer B:Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. It changes the dependency that is failing in the scenario. Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. Confirm the outcome with: After the graphical service restarts, the keyboard produces the mapped characters without another manual command. Incorrect Answers A:X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. That is relevant to a different intervention. For the stated situation, the required action is: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. The governing reason is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. C:The display manager handles graphical login, while a window manager controls window placement after login. That is relevant to a different intervention. For the stated situation, the required action is: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. The governing reason is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. D:X clients need a reachable X server and valid authorization, even when their programs run on another host. That is relevant to a different intervention. For the stated situation, the required action is: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. The governing reason is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command.
Question 371A maintenance script processes several home directories, but the loop uses unquoted expanded paths and breaks whenever a user directory contains spaces. What should the administrator do to correct the underlying condition? Pass the positional filename as a quoted argument and validate it before processing. Use command substitution to assign the program's output to a variable before validation. 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. ExplanationCorrect Answer C:Quote variable expansions in pathname arguments and iterate over entries safely. This targets the failure described rather than another system component. Word splitting and pathname expansion can alter unquoted shell arguments before the command receives them. The expected result is: A controlled test containing spaces processes each directory exactly once without splitting names. Incorrect Answers A:Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. That is relevant to a different intervention. For the stated situation, the required action is: Quote variable expansions in pathname arguments and iterate over entries safely. The governing reason is: Word splitting and pathname expansion can alter unquoted shell arguments before the command receives them. B: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: Quote variable expansions in pathname arguments and iterate over entries safely. The governing reason is: Word splitting and pathname expansion can alter unquoted shell arguments before the command receives them. D: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: Quote variable expansions in pathname arguments and iterate over entries safely. The governing reason is: Word splitting and pathname expansion can alter unquoted shell arguments before the command receives them.
Question 372The account policy requires password changes every 90 days, yet the server keeps accepting old credentials without an enforced aging limit. The proposed fix is to apply and audit the intended password aging configuration using chage. Which result would verify that the actual problem was resolved? A controlled process reaches its intended descriptor limit without disrupting neighboring services. A listener inventory identifies the unexpected port and its owning process. A controlled test user reaches the defined process cap without preventing system services from running. chage -l shows the correct limits and a test account is prompted to rotate at the required boundary. ExplanationCorrect Answer D:chage -l shows the correct limits and a test account is prompted to rotate at the required boundary. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Apply and audit the intended password aging configuration using chage. Incorrect Answers A:Resource limits such as ulimit can bound file descriptors independently of physical memory capacity. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: chage -l shows the correct limits and a test account is prompted to rotate at the required boundary. B:Network exposure is determined by bound sockets and reachability, not only file ownership settings. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: chage -l shows the correct limits and a test account is prompted to rotate at the required boundary. C:Resource limits constrain individual process behavior before one user can monopolize shared host capacity. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: chage -l shows the correct limits and a test account is prompted to rotate at the required boundary.
Question 373An IPv6-only endpoint responds to ping6 from one neighbor but not from a routed segment, and investigators inspect only the IPv4 route table. Which technical response directly restores the expected behavior? Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. Add the appropriate destination-specific route and validate longest-prefix selection. Inspect listening sockets with ss and configure the service to bind to the intended approved interface. Check the service status and bind settings before changing firewall policy. ExplanationCorrect Answer A:Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. This targets the failure described rather than another system component. IPv6 maintains routing information separate from IPv4 even on a dual-stack host. The expected result is: The IPv6 route to the destination uses the correct next hop and traceroute6 progresses as expected. Incorrect Answers B:Linux route lookup prefers the most specific matching prefix over a broader default route. That is relevant to a different intervention. For the stated situation, the required action is: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. The governing reason is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host. C:A loopback listening address is not reachable from other hosts, regardless of local service health. That is relevant to a different intervention. For the stated situation, the required action is: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. The governing reason is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host. D:A firewall cannot make a nonexistent listening socket accept a connection. That is relevant to a different intervention. For the stated situation, the required action is: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. The governing reason is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host.
Question 374A user claims that CUPS is down because lpq reports a pending job, even though the printer is out of paper and still reachable over the network. What can go wrong if no corrective work is performed? All submitted documents remain queued because the destination no longer exists. Restarting the daemon conceals the actual hardware fault and delays printing. Users accumulate pending print jobs despite a functional physical printer. Only the host attached to the printer can produce documents and other users remain blocked. ExplanationCorrect Answer B:Restarting the daemon conceals the actual hardware fault and delays printing. The direct consequence is addressed by: Inspect printer status and physical fault indicators before restarting the print service. A successful test would show: After the paper fault is resolved, the queued job prints without rebuilding the service. Incorrect Answers A:CUPS routes jobs to a defined device or server destination; a stale URI blocks output. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Restarting the daemon conceals the actual hardware fault and delays printing. C:Queue state can prevent delivery even when documents and the device driver are correct. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Restarting the daemon conceals the actual hardware fault and delays printing. D:Local-device queue definitions and remote printer queues require different destinations and access rules. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Restarting the daemon conceals the actual hardware fault and delays printing.
Question 375A branch server has address 192.168.44.130/25 but its administrator mistakenly treats 192.168.44.64 as belonging to the same local subnet. What measured result should the reviewer ask for after the repair? Injected packet loss is handled by the application policy or reliable transport rather than silently discarded. The kernel route lookup shows the approved next hop and the remote address is reachable. The route table and subnet calculation identify 192.168.44.128 as the network address for this host. A deployment plan contains a verified allocated prefix and routing tests use that prefix. ExplanationCorrect Answer C:The route table and subnet calculation identify 192.168.44.128 as the network address for this host. A successful configuration edit alone would not prove the behavior. A /25 mask splits the /24 address space into two blocks of 128 addresses. Incorrect Answers A:UDP provides datagram transport without built-in ordering, acknowledgment or retransmission guarantees. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The route table and subnet calculation identify 192.168.44.128 as the network address for this host. B:Routing chooses the next hop for remote IP packets independently of DNS suffix handling. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The route table and subnet calculation identify 192.168.44.128 as the network address for this host. D:Some address blocks are reserved for examples and should not be treated as globally allocated customer space. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The route table and subnet calculation identify 192.168.44.128 as the network address for this host.
Question 376An operations account can run sudo commands far beyond the intended role because its sudoers entry uses an unrestricted wildcard. The team recommends: Replace the wildcard privilege with reviewed explicit commands and test the effective policy. Which Linux behavior best explains that recommendation? Login history and current-session evidence provide identity information different from process snapshots. Resource limits such as ulimit can bound file descriptors independently of physical memory capacity. Privileged-login review requires evidence of interactive sessions, not merely proof of account configuration. Least-privilege sudo rules narrow administrative authority to named actions and identities. ExplanationCorrect Answer D:Least-privilege sudo rules narrow administrative authority to named actions and identities. The underlying rule explains the proposal. Replace the wildcard privilege with reviewed explicit commands and test the effective policy. Without it, a compromised support account can use unnecessary root-level commands. Incorrect Answers A:Login history and current-session evidence provide identity information different from process snapshots. This does not establish the proposed intervention. The governing principle here is: Least-privilege sudo rules narrow administrative authority to named actions and identities. Apply it by: Replace the wildcard privilege with reviewed explicit commands and test the effective policy. B: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: Least-privilege sudo rules narrow administrative authority to named actions and identities. Apply it by: Replace the wildcard privilege with reviewed explicit commands and test the effective policy. C:Privileged-login review requires evidence of interactive sessions, not merely proof of account configuration. This does not establish the proposed intervention. The governing principle here is: Least-privilege sudo rules narrow administrative authority to named actions and identities. Apply it by: Replace the wildcard privilege with reviewed explicit commands and test the effective policy.
Question 377A service is reachable by its numeric IPv4 address but not by its hostname, and a technician proposes replacing the default gateway. Which operational or security exposure is most closely tied to this condition? Users cannot locate a working service because the name-to-address mapping is wrong. Internal packets travel through an unintended network path and may be blocked or exposed. A working service is falsely declared offline due to mismatched port tests. Policy rules are weakened while the real problem remains a stopped application. ExplanationCorrect Answer A:Users cannot locate a working service because the name-to-address mapping is wrong. The failure arises from this Linux behavior: Successful direct IP connectivity rules out many routing failures while leaving DNS configuration as a possible cause. A repair would be: Compare direct IP reachability with resolver results to isolate name resolution. Incorrect Answers B:Linux route lookup prefers the most specific matching prefix over a broader default route. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Users cannot locate a working service because the name-to-address mapping is wrong. C:Transport-layer endpoints are defined by protocol and port as well as host address. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Users cannot locate a working service because the name-to-address mapping is wrong. D:A firewall cannot make a nonexistent listening socket accept a connection. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Users cannot locate a working service because the name-to-address mapping is wrong.
Question 378An employee's custom prompt appears in an interactive shell but breaks a noninteractive batch program because the shared initialization snippet prints a banner to standard output. Which post-change test would demonstrate success rather than merely show that a configuration file exists? After sourcing the shared file, the function resolves in each approved shell and reports the same disk totals. The batch command emits only its expected machine-readable output while interactive prompts retain the banner. The variable is visible immediately to the subsequent current-shell command without another import step. type -a shows the approved binary selected first and no untrusted search entry precedes it. ExplanationCorrect Answer B:The batch command emits only its expected machine-readable output while interactive prompts retain the banner. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Move interactive-only output behind an interactive-shell check and keep startup processing quiet for batch execution. Incorrect Answers A:A shell function groups multiple commands and must be defined in the shell context that invokes it. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The batch command emits only its expected machine-readable output while interactive prompts retain the banner. C: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: The batch command emits only its expected machine-readable output while interactive prompts retain the banner. 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: The batch command emits only its expected machine-readable output while interactive prompts retain the banner.
Question 379A client on a /28 IPv4 network tries to use the subnet's broadcast address as a normal host address after a spreadsheet omitted the network boundary. Which unresolved failure mode should be included in the risk review? Critical measurements may disappear without sender-side notification. The published service becomes unreachable because its address space is not assigned for production use. Address conflicts and unpredictable delivery arise from assigning a reserved endpoint to a host. Administrative credentials may be exposed to anyone able to observe the path. ExplanationCorrect Answer C:Address conflicts and unpredictable delivery arise from assigning a reserved endpoint to a host. The failure arises from this Linux behavior: Traditional IPv4 subnetting reserves the all-zero host identifier for network and all-one identifier for directed broadcast. A repair would be: Recalculate usable host range and reserve the network and directed broadcast endpoints in that subnet. Incorrect Answers A:UDP provides datagram transport without built-in ordering, acknowledgment or retransmission guarantees. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Address conflicts and unpredictable delivery arise from assigning a reserved endpoint to a host. B:Some address blocks are reserved for examples and should not be treated as globally allocated customer space. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Address conflicts and unpredictable delivery arise from assigning a reserved endpoint to a host. D:SSH encrypts the session, whereas Telnet transmits application content without equivalent protection. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Address conflicts and unpredictable delivery arise from assigning a reserved endpoint to a host.
Question 380An administrator copies a Latin-1 encoded CSV into a UTF-8-only integration and sees invalid-byte errors when importing some names. The team recommends: Convert the input using iconv with the correct declared source and target encodings. Which Linux behavior best explains that recommendation? Named IANA timezones include region-specific daylight-saving rules while abbreviations are not uniquely identifying. Character encodings determine byte-to-character interpretation independently of timezone or language choice. Locale categories influence command output and can change text expected by scripts. iconv transforms text between character encodings when the source encoding is known. ExplanationCorrect Answer D:iconv transforms text between character encodings when the source encoding is known. The underlying rule explains the proposal. Convert the input using iconv with the correct declared source and target encodings. Without it, a bulk integration can reject rows or silently replace characters. Incorrect Answers A:Named IANA timezones include region-specific daylight-saving rules while abbreviations are not uniquely identifying. This does not establish the proposed intervention. The governing principle here is: iconv transforms text between character encodings when the source encoding is known. Apply it by: Convert the input using iconv with the correct declared source and target encodings. B:Character encodings determine byte-to-character interpretation independently of timezone or language choice. This does not establish the proposed intervention. The governing principle here is: iconv transforms text between character encodings when the source encoding is known. Apply it by: Convert the input using iconv with the correct declared source and target encodings. 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: iconv transforms text between character encodings when the source encoding is known. Apply it by: Convert the input using iconv with the correct declared source and target encodings.