Question 80A distribution-independent administrative script uses Bash-specific [[ syntax but declares /bin/sh in the shebang, failing on systems where sh is another shell. The team recommends: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. Which Linux behavior best explains that recommendation? File attributes have dedicated test operators; numeric comparison operators expect numeric operands. The read builtin's default field splitting and backslash handling can transform raw input. Automation must not rely on incidental working directories or inherited search paths to select privileged programs. The script's declared interpreter must support every shell construct used in its body. ExplanationCorrect Answer D:The script's declared interpreter must support every shell construct used in its body. The underlying rule explains the proposal. Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. Without it, a routine job works on one Linux distribution but fails on another due to shell syntax differences. Incorrect Answers A:File attributes have dedicated test operators; numeric comparison operators expect numeric operands. This does not establish the proposed intervention. The governing principle here is: The script's declared interpreter must support every shell construct used in its body. Apply it by: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. B:The read builtin's default field splitting and backslash handling can transform raw input. This does not establish the proposed intervention. The governing principle here is: The script's declared interpreter must support every shell construct used in its body. Apply it by: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. C:Automation must not rely on incidental working directories or inherited search paths to select privileged programs. This does not establish the proposed intervention. The governing principle here is: The script's declared interpreter must support every shell construct used in its body. Apply it by: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter.
Question 81A configuration team put an environment setting in ~/.bash_logout and expects it to affect commands launched at the beginning of each login session. After applying the correction, which observation would provide the strongest acceptance evidence? The desired variable exists immediately after a fresh login and not only when the session closes. Opening a new interactive Bash window shows the alias through the alias builtin. A newly created test user receives the expected startup files while an existing user's files remain unchanged until amended. The variable is visible immediately to the subsequent current-shell command without another import step. ExplanationCorrect Answer A:The desired variable exists immediately after a fresh login and not only when the session closes. A successful configuration edit alone would not prove the behavior. The logout file is evaluated when leaving the login shell rather than when establishing its initial environment. Incorrect Answers B: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: The desired variable exists immediately after a fresh login and not only when the session closes. C:User-account creation copies initial skeleton content; modifying the template does not rewrite existing home directories. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The desired variable exists immediately after a fresh login and not only when the session closes. D: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 desired variable exists immediately after a fresh login and not only when the session closes.
Question 82An administrator changes an SSH server's host key after rebuilding the machine, and clients now reject the connection with a host-identification warning. What can go wrong if no corrective work is performed? Sensitive information is exposed because signing is mistaken for encryption. Operators may ignore a genuine man-in-the-middle attack while clearing connection warnings. Colleagues may continue encrypting or accepting signatures for a compromised identity. Unsecured display permissions can expose graphical session data and input. ExplanationCorrect Answer B:Operators may ignore a genuine man-in-the-middle attack while clearing connection warnings. The direct consequence is addressed by: Verify the replacement host identity out of band before updating known_hosts records. A successful test would show: After a verified update the SSH client accepts the new key and rejects a mismatched test key. 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: Operators may ignore a genuine man-in-the-middle attack while clearing connection warnings. C: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: Operators may ignore a genuine man-in-the-middle attack while clearing connection warnings. D:SSH can forward X11 traffic over an encrypted channel with scoped display authorization. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Operators may ignore a genuine man-in-the-middle attack while clearing connection warnings.
Question 83A support team confuses RDP and XDMCP when planning browser-based remote sessions and cannot explain which remote login workflow is available. Which unresolved failure mode should be included in the risk review? Users encounter a login loop and cannot launch the kiosk application. Low-memory devices spend time swapping when a heavier desktop is deployed without validation. Technicians cannot connect because they target the wrong port or remote desktop protocol. Applications launch invisibly on an unreachable display or fail to open at all. ExplanationCorrect Answer C:Technicians cannot connect because they target the wrong port or remote desktop protocol. The failure arises from this Linux behavior: RDP, VNC and XDMCP provide different graphical-session mechanisms and are not interchangeable merely because each is remote. A repair would be: Inventory the actual remote desktop service and match its protocol and client to the supported endpoint. Incorrect Answers A:Graphical session components must include both session login and an actual user desktop. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Technicians cannot connect because they target the wrong port or remote desktop protocol. B:Desktop environments differ in resource use and components, without changing the Linux kernel's core functions. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Technicians cannot connect because they target the wrong port or remote desktop protocol. D:The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Technicians cannot connect because they target the wrong port or remote desktop protocol.
Question 84A support script needs to deactivate a temporary user without deleting the home directory needed for a financial investigation. The proposed fix is to lock or expire the account while retaining the home directory and documenting access to its data. Which result would verify that the actual problem was resolved? getent returns the account record when its configured identity service is reachable. getent group no longer resolves the deleted group, and dependent users and files have been assessed. id reports the intended primary GID and new files created under normal defaults reflect it. New authentication is refused while an authorized reviewer can still preserve required files. ExplanationCorrect Answer D:New authentication is refused while an authorized reviewer can still preserve required files. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Lock or expire the account while retaining the home directory and documenting access to its data. Incorrect Answers A:Name Service Switch resolution may combine local and external account databases beyond a single local file. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: New authentication is refused while an authorized reviewer can still preserve required files. B:Supported group management utilities maintain the group's database structure and consistency. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: New authentication is refused while an authorized reviewer can still preserve required files. C:The primary group field in the account database is distinct from supplementary group memberships. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: New authentication is refused while an authorized reviewer can still preserve required files.
Question 85A Linux workstation's local X keyboard layout changes back after its graphical environment restarts, despite manual changes made in a running session. An administrator proposes to create a supported Xorg input-class configuration fragment for the intended keyboard mapping. Which technical principle supports the proposal? Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. Wayland compositors and X11 servers have different display and security architectures. The display manager handles graphical login, while a window manager controls window placement after login. X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. ExplanationCorrect Answer A:Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. The proposed repair works on this mechanism rather than an unrelated symptom. Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. Incorrect Answers B:Wayland compositors and X11 servers have different display and security architectures. This does not establish the proposed intervention. The governing principle here is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. Apply it by: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. C:The display manager handles graphical login, while a window manager controls window placement after login. This does not establish the proposed intervention. The governing principle here is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. Apply it by: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping. D:X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. This does not establish the proposed intervention. The governing principle here is: Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. Apply it by: Create a supported Xorg input-class configuration fragment for the intended keyboard mapping.
Question 86An operator treats the selected NTP pool hostname as proof of synchronization, but chronyc reports no valid measurements and the host remains unsynchronized. What can go wrong if no corrective work is performed? Certificates and timestamp-dependent transactions can be rejected when the host clock is wrong. The host continues with unreliable timestamps while configuration review gives false confidence. Manual clock jumps can break timers, event sequencing and secure protocol checks. Authentication and event correlation failures recur when the local clock drifts again. ExplanationCorrect Answer B:The host continues with unreliable timestamps while configuration review gives false confidence. The direct consequence is addressed by: Inspect chrony source reachability and tracking state rather than relying on configuration text alone. A successful test would show: Tracking shows synchronized status and source statistics contain valid recent samples. Incorrect Answers A:Clock synchronization and timezone display are independent; time-sensitive services require accurate system time. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: The host continues with unreliable timestamps while configuration review gives false confidence. C:A timezone shift should alter local representation, not the underlying global instant. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: The host continues with unreliable timestamps while configuration review gives false confidence. D:Manual wall-clock changes do not establish ongoing synchronization with a reliable reference. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: The host continues with unreliable timestamps while configuration review gives false confidence.
Question 87An administrator changes /etc/rsyslog.conf to forward messages and assumes the edit is active, but new tests still use the old destination. What measured result should the reviewer ask for after the repair? journalctl lists the known test failure from the target unit with its severity. A generated high-priority test message appears at the remote collector over the intended transport. A new logger message reaches the intended destination after the rsyslog configuration is applied. The filtered output contains the service's errors inside the exact deployment interval. ExplanationCorrect Answer C:A new logger message reaches the intended destination after the rsyslog configuration is applied. A successful configuration edit alone would not prove the behavior. A daemon must apply updated configuration before it changes live routing behavior. Incorrect Answers A:Journal-backed records may not be mirrored into traditional text files on every distribution. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A new logger message reaches the intended destination after the rsyslog configuration is applied. B:Remote log delivery requires agreement on protocol and endpoint in addition to a valid routing selector. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A new logger message reaches the intended destination after the rsyslog configuration is applied. D:The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: A new logger message reaches the intended destination after the rsyslog configuration is applied.
Question 88A TCP connection is established, but the application seems unreachable because the operator tests a different port number than the service's bound listener. Which technical response directly restores the expected behavior? Install or restore the approved corporate network route via the VPN interface. Inspect listening sockets with ss and configure the service to bind to the intended approved interface. Test the destination's actual TCP or UDP service, including listener state and policy, rather than only ICMP. Verify the intended transport port with ss and connect to that exact endpoint. ExplanationCorrect Answer D:Verify the intended transport port with ss and connect to that exact endpoint. It changes the dependency that is failing in the scenario. Transport-layer endpoints are defined by protocol and port as well as host address. Confirm the outcome with: A client reaches the correct listening port and receives the expected application response. Incorrect Answers A:Multiple active interfaces require route selection that matches the destination and policy. That is relevant to a different intervention. For the stated situation, the required action is: Verify the intended transport port with ss and connect to that exact endpoint. The governing reason is: Transport-layer endpoints are defined by protocol and port as well as host address. B: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: Verify the intended transport port with ss and connect to that exact endpoint. The governing reason is: Transport-layer endpoints are defined by protocol and port as well as host address. C:IP reachability does not establish that a particular transport port or application is available. That is relevant to a different intervention. For the stated situation, the required action is: Verify the intended transport port with ss and connect to that exact endpoint. The governing reason is: Transport-layer endpoints are defined by protocol and port as well as host address.
Question 89A newly deployed chronyd instance chooses an untrusted public source even though policy requires internal time servers for regulated workloads. An administrator proposes to restrict its source configuration to approved enterprise NTP peers and validate their reachability. Which technical principle supports the proposal? Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. A timezone shift should alter local representation, not the underlying global instant. Configured time sources are candidates, and actual synchronization depends on accepted time measurements. The RTC and running system clock are distinct clock sources and can disagree. ExplanationCorrect Answer A:Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. The proposed repair works on this mechanism rather than an unrelated symptom. Restrict its source configuration to approved enterprise NTP peers and validate their reachability. Incorrect Answers B:A timezone shift should alter local representation, not the underlying global instant. This does not establish the proposed intervention. The governing principle here is: Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. Apply it by: Restrict its source configuration to approved enterprise NTP peers and validate their reachability. C:Configured time sources are candidates, and actual synchronization depends on accepted time measurements. This does not establish the proposed intervention. The governing principle here is: Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. Apply it by: Restrict its source configuration to approved enterprise NTP peers and validate their reachability. D:The RTC and running system clock are distinct clock sources and can disagree. This does not establish the proposed intervention. The governing principle here is: Time source selection is part of the trust boundary; merely being synchronized does not establish source compliance. Apply it by: Restrict its source configuration to approved enterprise NTP peers and validate their reachability.
Question 90A configuration file for systemd-networkd is present but a distribution-managed interface is actually controlled by NetworkManager, so the edit has no effect. Which post-change test would demonstrate success rather than merely show that a configuration file exists? A connection change survives reboot when applied with the active supported manager. The intended manager reports the new profile and the interface reflects it after reactivation. After reload and reconnect, ip address and the manager's profile both show the new configuration. hostnamectl reports the valid name and approved aliases resolve through the configured lookup service. ExplanationCorrect Answer B:The intended manager reports the new profile and the interface reflects it after reactivation. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Identify the interface's active network manager and update the authoritative persistent profile. Incorrect Answers A:ifup/ifdown scripts and NetworkManager profiles belong to different configuration mechanisms. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The intended manager reports the new profile and the interface reflects it after reactivation. C:Writing a profile on disk does not necessarily update the network manager's in-memory active connection. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The intended manager reports the new profile and the interface reflects it after reactivation. D:A host's kernel hostname is not a free-form description field and must follow supported naming conventions. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The intended manager reports the new profile and the interface reflects it after reactivation.