Question 10An administrator disables a service unit but leaves its systemd socket unit enabled, and incoming traffic still starts the service on demand. What can go wrong if no corrective work is performed? An unnecessary plaintext remote-access service remains available to attackers. An supposedly disabled service remains remotely reachable through its socket unit. Non-wrapper applications remain reachable from prohibited networks. A legacy access list creates false confidence while the service remains openly reachable. ExplanationCorrect Answer B:An supposedly disabled service remains remotely reachable through its socket unit. The direct consequence is addressed by: Disable and stop the associated socket activation unit as well as the service when it is not required. A successful test would show: A connection probe no longer activates the service and the listener is absent. Incorrect Answers A:Unused network services expand attack surface whether launched as long-running daemons or on demand. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An supposedly disabled service remains remotely reachable through its socket unit. C:TCP wrappers historically controlled compatible application connections and do not replace packet filtering. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An supposedly disabled service remains remotely reachable through its socket unit. D:TCP wrapper configuration affects only compatible services and is not a universal host firewall. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An supposedly disabled service remains remotely reachable through its socket unit.
Question 11The security manager needs proof of which users were logged into a host during a suspicious interval, but the report uses only currently running processes. What measured result should the reviewer ask for after the repair? chage -l shows the correct limits and a test account is prompted to rotate at the required boundary. A controlled test user reaches the defined process cap without preventing system services from running. The report identifies expected user sessions and timestamps from the approved account logs. visudo reports valid syntax and the approved operator's sudo -l output matches policy. ExplanationCorrect Answer C:The report identifies expected user sessions and timestamps from the approved account logs. A successful configuration edit alone would not prove the behavior. Login history and current-session evidence provide identity information different from process snapshots. Incorrect Answers A:Password expiration metadata is a separate account policy control that must be applied to the relevant identities. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The report identifies expected user sessions and timestamps from the approved account logs. B: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: The report identifies expected user sessions and timestamps from the approved account logs. D:Sudo policy must parse correctly, and validation before replacement prevents lockouts. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The report identifies expected user sessions and timestamps from the approved account logs.
Question 12A developer can connect to a remote SSH host using a password, but their new public-key login fails because the public key was stored in the wrong user's home directory. The team recommends: Install the intended public key in the correct account's authorized_keys with safe permissions. Which Linux behavior best explains that recommendation? A published public key can remain trusted by others until its revoked state becomes known. SSH can forward X11 traffic over an encrypted channel with scoped display authorization. SSH private keys establish personal authentication identity and should not be shared. SSH public-key authentication binds an accepted public key to a particular account on the server. ExplanationCorrect Answer D:SSH public-key authentication binds an accepted public key to a particular account on the server. The underlying rule explains the proposal. Install the intended public key in the correct account's authorized_keys with safe permissions. Without it, access management becomes inconsistent and authorized automation cannot authenticate. Incorrect Answers A:A published public key can remain trusted by others until its revoked state becomes known. This does not establish the proposed intervention. The governing principle here is: SSH public-key authentication binds an accepted public key to a particular account on the server. Apply it by: Install the intended public key in the correct account's authorized_keys with safe permissions. B:SSH can forward X11 traffic over an encrypted channel with scoped display authorization. This does not establish the proposed intervention. The governing principle here is: SSH public-key authentication binds an accepted public key to a particular account on the server. Apply it by: Install the intended public key in the correct account's authorized_keys with safe permissions. C:SSH private keys establish personal authentication identity and should not be shared. This does not establish the proposed intervention. The governing principle here is: SSH public-key authentication binds an accepted public key to a particular account on the server. Apply it by: Install the intended public key in the correct account's authorized_keys with safe permissions.
Question 13A new administrator's Bash alias works after sourcing a file manually but disappears whenever a fresh interactive terminal window starts. An administrator proposes to define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. Which technical principle supports the proposal? Bash reads initialization files according to login and interactive mode, not merely because a shell is started. System-wide interactive shell initialization is distinct from per-user files and must match the distribution's conventions. A child Bash inherits exported environment entries, not every internal variable in the parent's symbol table. The logout file is evaluated when leaving the login shell rather than when establishing its initial environment. ExplanationCorrect Answer A:Bash reads initialization files according to login and interactive mode, not merely because a shell is started. The proposed repair works on this mechanism rather than an unrelated symptom. Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. Incorrect Answers B:System-wide interactive shell initialization is distinct from per-user files and must match the distribution's conventions. This does not establish the proposed intervention. The governing principle here is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started. Apply it by: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. C:A child Bash inherits exported environment entries, not every internal variable in the parent's symbol table. This does not establish the proposed intervention. The governing principle here is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started. Apply it by: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. D:The logout file is evaluated when leaving the login shell rather than when establishing its initial environment. This does not establish the proposed intervention. The governing principle here is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started. Apply it by: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc.
Question 14A user can authenticate at the desktop but a legacy GUI reports wrong screen authority because DISPLAY references an old remote workstation from a previous session. What is the most defensible corrective step? Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. Remove the stale DISPLAY override and use the current authenticated session's display value. Configure a supported display manager and confirm that it starts the intended desktop session. Identify whether the session uses Wayland or X11 and choose a supported remote-display method accordingly. ExplanationCorrect Answer B:Remove the stale DISPLAY override and use the current authenticated session's display value. It changes the dependency that is failing in the scenario. The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. Confirm the outcome with: The client connects to the current display and works without manually granting broad server access. Incorrect Answers A: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: Remove the stale DISPLAY override and use the current authenticated session's display value. The governing reason is: The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. 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: Remove the stale DISPLAY override and use the current authenticated session's display value. The governing reason is: The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. D:Wayland compositors and X11 servers have different display and security architectures. That is relevant to a different intervention. For the stated situation, the required action is: Remove the stale DISPLAY override and use the current authenticated session's display value. The governing reason is: The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor.
Question 15The payroll script's output must be reproducible across hosts, but LC_ALL is inherited unpredictably from whoever starts the command. What measured result should the reviewer ask for after the repair? The converted CSV validates as UTF-8 and representative accented entries match the source. A DST-boundary comparison produces the intended local time and zone offset. Two administrators run the same test input and receive byte-identical formatted output. The parsing result is identical under two different user-language preferences. ExplanationCorrect Answer C:Two administrators run the same test input and receive byte-identical formatted output. A successful configuration edit alone would not prove the behavior. Reproducible command output requires controlling locale-sensitive formatting at the process boundary. Incorrect Answers A:iconv transforms text between character encodings when the source encoding is known. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Two administrators run the same test input and receive byte-identical formatted output. B:Named IANA timezones include region-specific daylight-saving rules while abbreviations are not uniquely identifying. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Two administrators run the same test input and receive byte-identical formatted output. D:Locale categories influence command output and can change text expected by scripts. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Two administrators run the same test input and receive byte-identical formatted output.
Question 16A mail transport daemon is installed, but a monitoring system reports that queued notices never leave the host because DNS resolution of the recipient domain fails. What should the administrator do to correct the underlying condition? Configure an approved ~/.forward file for the account and test the MTA's forwarding behavior. Choose a supported mail transfer agent for system delivery while treating mail clients separately. Submit mail through a supported mail or sendmail-compatible command rather than editing queue storage. Repair the host's supported name-resolution dependency and recheck the MTA queue. ExplanationCorrect Answer D:Repair the host's supported name-resolution dependency and recheck the MTA queue. It changes the dependency that is failing in the scenario. Outgoing mail transfer needs destination routing information; local queue acceptance alone cannot establish delivery. Confirm the outcome with: After DNS correction, queued messages are delivered or advance to the expected remote hop. Incorrect Answers A:User-level forwarding is a recipient-side delivery instruction handled by the local mail agent. That is relevant to a different intervention. For the stated situation, the required action is: Repair the host's supported name-resolution dependency and recheck the MTA queue. The governing reason is: Outgoing mail transfer needs destination routing information; local queue acceptance alone cannot establish delivery. B:An MTA routes and transfers messages between mail systems; a user-facing mail reader has another role. That is relevant to a different intervention. For the stated situation, the required action is: Repair the host's supported name-resolution dependency and recheck the MTA queue. The governing reason is: Outgoing mail transfer needs destination routing information; local queue acceptance alone cannot establish delivery. C:MTA queue files have implementation-specific formats; supported submission tools handle message creation and routing. That is relevant to a different intervention. For the stated situation, the required action is: Repair the host's supported name-resolution dependency and recheck the MTA queue. The governing reason is: Outgoing mail transfer needs destination routing information; local queue acceptance alone cannot establish delivery.
Question 17A desktop migration plan expects Wayland clients to connect to arbitrary remote X11 display servers using exactly the same mechanisms without checking compositor behavior. Which operational or security exposure is most closely tied to this condition? Unsupported assumptions about display protocols block remote graphical administration. Graphical support tools remain unavailable or staff weaken display access controls to work around the failure. Users experience incorrect key mapping after every reboot and may enter credentials incorrectly. A functioning X server may still leave users without a usable graphical login workflow. ExplanationCorrect Answer A:Unsupported assumptions about display protocols block remote graphical administration. The failure arises from this Linux behavior: Wayland compositors and X11 servers have different display and security architectures. A repair would be: Identify whether the session uses Wayland or X11 and choose a supported remote-display method accordingly. Incorrect Answers B:X clients need a reachable X server and valid authorization, even when their programs run on another host. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Unsupported assumptions about display protocols block remote graphical administration. C:Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Unsupported assumptions about display protocols block remote graphical administration. D:The display manager handles graphical login, while a window manager controls window placement after login. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Unsupported assumptions about display protocols block remote graphical administration.
Question 18An application must forward warnings to a central syslog collector, but the host only stores messages locally in /var/log. What can go wrong if no corrective work is performed? Improper file deletion can leave monitoring gaps or destabilize active log handling. Security events may be lost if an attacker or failure destroys the local log files. Sensitive unrelated messages may be unnecessarily disclosed and the needed failure becomes harder to locate. Journal growth can fill the system volume and interrupt normal services. ExplanationCorrect Answer B:Security events may be lost if an attacker or failure destroys the local log files. The direct consequence is addressed by: Configure an rsyslog forwarding action to the approved collection endpoint and validate transport. A successful test would show: The remote collector receives a tagged logger test message generated on the host. Incorrect Answers A:Journal management tools understand archived segments and preserve the integrity of active logging state. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Security events may be lost if an attacker or failure destroys the local log files. C:Precise journal selectors reduce irrelevant data while preserving needed troubleshooting context. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Security events may be lost if an attacker or failure destroys the local log files. D:Systemd journal retention has its own size and time management separate from logrotate. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Security events may be lost if an attacker or failure destroys the local log files.
Question 19A remote graphical utility reports that it cannot open a display after an administrator connects to a workstation using a terminal-only SSH session. Which governing rule explains why this repair works: Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. Wayland compositors and X11 servers have different display and security architectures. Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. X clients need a reachable X server and valid authorization, even when their programs run on another host. The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. ExplanationCorrect Answer C:X clients need a reachable X server and valid authorization, even when their programs run on another host. The proposed repair works on this mechanism rather than an unrelated symptom. Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. Incorrect Answers A:Wayland compositors and X11 servers have different display and security architectures. This does not establish the proposed intervention. The governing principle here is: X clients need a reachable X server and valid authorization, even when their programs run on another host. Apply it by: Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. B:Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. This does not establish the proposed intervention. The governing principle here is: X clients need a reachable X server and valid authorization, even when their programs run on another host. Apply it by: Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display. D:The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. This does not establish the proposed intervention. The governing principle here is: X clients need a reachable X server and valid authorization, even when their programs run on another host. Apply it by: Use an approved X11 forwarding session and confirm that DISPLAY points to the forwarded display.
Question 20A team searches a huge journal manually for one failing service and misses the entries that occurred during a brief deployment window. The team recommends: Filter journalctl by unit and explicit time boundaries to isolate the incident. Which Linux behavior best explains that recommendation? Rotation policy limits historical log volume independently of current message generation. Sending logs and accepting logs are distinct rsyslog functions and require different inputs and rules. Remote log delivery requires agreement on protocol and endpoint in addition to a valid routing selector. The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. ExplanationCorrect Answer D:The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. The underlying rule explains the proposal. Filter journalctl by unit and explicit time boundaries to isolate the incident. Without it, relevant errors remain buried in unrelated logs and the repair is delayed. Incorrect Answers A:Rotation policy limits historical log volume independently of current message generation. This does not establish the proposed intervention. The governing principle here is: The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. Apply it by: Filter journalctl by unit and explicit time boundaries to isolate the incident. B:Sending logs and accepting logs are distinct rsyslog functions and require different inputs and rules. This does not establish the proposed intervention. The governing principle here is: The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. Apply it by: Filter journalctl by unit and explicit time boundaries to isolate the incident. C:Remote log delivery requires agreement on protocol and endpoint in addition to a valid routing selector. This does not establish the proposed intervention. The governing principle here is: The systemd journal indexes unit and time metadata, allowing targeted queries rather than only line scanning. Apply it by: Filter journalctl by unit and explicit time boundaries to isolate the incident.