Question 270A workstation cannot discover a new network printer because the CUPS device URI points to a retired print server. What can go wrong if no corrective work is performed? Restarting the daemon conceals the actual hardware fault and delays printing. All submitted documents remain queued because the destination no longer exists. Only the host attached to the printer can produce documents and other users remain blocked. Paper and confidential document waste continues while repeated jobs remain unchecked. ExplanationCorrect Answer B:All submitted documents remain queued because the destination no longer exists. The direct consequence is addressed by: Correct the printer's approved device URI in the CUPS configuration and test connectivity. A successful test would show: A test page completes through the expected print server and the queue returns to idle. Incorrect Answers A:A print job can queue normally while the destination device cannot complete it. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: All submitted documents remain queued because the destination no longer exists. C: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: All submitted documents remain queued because the destination no longer exists. D:Each print submission creates a separate queued job, so repeated client retries can duplicate physical output. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: All submitted documents remain queued because the destination no longer exists.
Question 271An operator appends a diagnostic directory before system directories in PATH and discovers that a utility with the same name overrides the distribution's trusted command. What should the administrator do to correct the underlying condition? Arrange for the login-selected Bash profile to source the shared profile content intentionally. Export the revised PATH rather than leaving it as an unexported local assignment. Put verified system paths ahead of untrusted directories and remove unsafe PATH entries. Source the reviewed configuration file in the current shell session. ExplanationCorrect Answer C:Put verified system paths ahead of untrusted directories and remove unsafe PATH entries. This targets the failure described rather than another system component. Command lookup follows PATH order; a writable earlier directory can shadow a trusted executable. The expected result is: type -a shows the approved binary selected first and no untrusted search entry precedes it. Incorrect Answers A:Bash login initialization uses the first applicable personal login file, so later alternatives are not automatically all loaded. That is relevant to a different intervention. For the stated situation, the required action is: Put verified system paths ahead of untrusted directories and remove unsafe PATH entries. The governing reason is: Command lookup follows PATH order; a writable earlier directory can shadow a trusted executable. B:A child Bash inherits exported environment entries, not every internal variable in the parent's symbol table. That is relevant to a different intervention. For the stated situation, the required action is: Put verified system paths ahead of untrusted directories and remove unsafe PATH entries. The governing reason is: Command lookup follows PATH order; a writable earlier directory can shadow a trusted executable. D:The dot or source builtin executes file contents in the calling shell, unlike running a separate shell process. That is relevant to a different intervention. For the stated situation, the required action is: Put verified system paths ahead of untrusted directories and remove unsafe PATH entries. The governing reason is: Command lookup follows PATH order; a writable earlier directory can shadow a trusted executable.
Question 272An administrator changes an SSH server's host key after rebuilding the machine, and clients now reject the connection with a host-identification warning. The team recommends: Verify the replacement host identity out of band before updating known_hosts records. Which Linux behavior best explains that recommendation? Asymmetric SSH keys separate private signing credentials from public verification material. SSH private keys establish personal authentication identity and should not be shared. SSH host keys authenticate the server identity and protect against connecting to an impostor. Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. ExplanationCorrect Answer D:Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. The underlying rule explains the proposal. Verify the replacement host identity out of band before updating known_hosts records. Without it, operators may ignore a genuine man-in-the-middle attack while clearing connection warnings. Incorrect Answers A:Asymmetric SSH keys separate private signing credentials from public verification material. This does not establish the proposed intervention. The governing principle here is: Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. Apply it by: Verify the replacement host identity out of band before updating known_hosts records. B:SSH private keys establish personal authentication identity and should not be shared. This does not establish the proposed intervention. The governing principle here is: Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. Apply it by: Verify the replacement host identity out of band before updating known_hosts records. C:SSH host keys authenticate the server identity and protect against connecting to an impostor. This does not establish the proposed intervention. The governing principle here is: Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. Apply it by: Verify the replacement host identity out of band before updating known_hosts records.
Question 273A hostname lookup succeeds on the administrator's shell but applications using NSS fail to resolve a short local name because the configured lookup order differs. Which operational or security exposure is most closely tied to this condition? Programs fail local name resolution even when direct DNS queries succeed. Monitoring and applications receive inconsistent or invalid identity data. Name resolution intermittently returns to an obsolete server configuration. Network changes fail because files are edited for a service that does not control the device. ExplanationCorrect Answer A:Programs fail local name resolution even when direct DNS queries succeed. The failure arises from this Linux behavior: The hosts database lookup sequence is a configurable NSS policy separate from raw DNS server reachability. A repair would be: Review /etc/nsswitch.conf and the resolver configuration for the desired hosts lookup sources. Incorrect Answers B:A host's kernel hostname is not a free-form description field and must follow supported naming conventions. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Programs fail local name resolution even when direct DNS queries succeed. C:NetworkManager or another resolver manager may regenerate /etc/resolv.conf rather than preserving manual edits. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Programs fail local name resolution even when direct DNS queries succeed. D:ifup/ifdown scripts and NetworkManager profiles belong to different configuration mechanisms. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Programs fail local name resolution even when direct DNS queries succeed.
Question 274A distribution-independent administrative script uses Bash-specific [[ syntax but declares /bin/sh in the shebang, failing on systems where sh is another shell. What is the most defensible corrective step? Use a verified absolute executable path and a deliberate minimal execution environment. Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. Chain deletion to archive success with conditional execution and check the archive exit status. Use command substitution to assign the program's output to a variable before validation. ExplanationCorrect Answer B:Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. It changes the dependency that is failing in the scenario. The script's declared interpreter must support every shell construct used in its body. Confirm the outcome with: The script passes syntax checks under its declared interpreter on each supported host. Incorrect Answers A:Automation must not rely on incidental working directories or inherited search paths to select privileged programs. That is relevant to a different intervention. For the stated situation, the required action is: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. The governing reason is: The script's declared interpreter must support every shell construct used in its body. C:The && operator evaluates the next command only after the preceding command succeeds. That is relevant to a different intervention. For the stated situation, the required action is: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. The governing reason is: The script's declared interpreter must support every shell construct used in its body. D: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: Either use POSIX-compatible [ tests or explicitly select Bash as the interpreter. The governing reason is: The script's declared interpreter must support every shell construct used in its body.
Question 275A desktop migration plan expects Wayland clients to connect to arbitrary remote X11 display servers using exactly the same mechanisms without checking compositor behavior. What measured result should the reviewer ask for after the repair? The utility opens its window through the approved forwarded session without changing global X access rules. After the graphical service restarts, the keyboard produces the mapped characters without another manual command. The remote application opens through a supported protocol in the actual selected session type. An authorized remote client connects while an unauthorized test client is rejected by the X server. ExplanationCorrect Answer C:The remote application opens through a supported protocol in the actual selected session type. A successful configuration edit alone would not prove the behavior. Wayland compositors and X11 servers have different display and security architectures. Incorrect Answers A:X clients need a reachable X server and valid authorization, even when their programs run on another host. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The remote application opens through a supported protocol in the actual selected session type. B:Persistent X server settings belong in recognized configuration files rather than a one-off active-session command. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The remote application opens through a supported protocol in the actual selected session type. D:X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: The remote application opens through a supported protocol in the actual selected session type.
Question 276A workstation starts fresh SSH sessions by asking for the key's passphrase repeatedly, and the user considers removing the key's encryption permanently. The proposed fix is to use ssh-agent to hold the unlocked key during an approved session rather than stripping passphrase protection. Which result would verify that the actual problem was resolved? After a verified update the SSH client accepts the new key and rejects a mismatched test key. The intended recipient decrypts the corrected message while the former user's key is not required. A client connects through the local forwarded port while the database remains unavailable directly from the Internet. Authorized SSH connections succeed after one agent unlock and the private key remains passphrase-protected. ExplanationCorrect Answer D:Authorized SSH connections succeed after one agent unlock and the private key remains passphrase-protected. This is an end-to-end observation tied to the fault, not a generic host-health indicator. Use ssh-agent to hold the unlocked key during an approved session rather than stripping passphrase protection. Incorrect Answers A:Host-key changes must be authenticated rather than silently trusted because they can indicate impersonation. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Authorized SSH connections succeed after one agent unlock and the private key remains passphrase-protected. B:Public-key encryption targets selected recipients; possession of a different private key cannot decrypt their ciphertext. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Authorized SSH connections succeed after one agent unlock and the private key remains passphrase-protected. C:SSH local forwarding carries a specific TCP connection through an encrypted authenticated tunnel. This relates to a separate check and does not verify the specified repair. The relevant acceptance evidence is: Authorized SSH connections succeed after one agent unlock and the private key remains passphrase-protected.
Question 277A DNS incident affects only clients in one branch, and a technician proposes changing public authoritative zones without checking the branch resolver. Which action is the most appropriate first repair? Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. Configure the upstream DNS servers through the resolver manager or connection profile that owns the stub. Query the configured resolver with dig and repair the resolver or its upstream configuration. Inspect getent hosts and /etc/nsswitch.conf to reconcile the application's lookup path. ExplanationCorrect Answer A:Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. This targets the failure described rather than another system component. Resolver-specific caching or forwarding faults can exist even when authoritative DNS data is healthy. The expected result is: The branch resolver returns the same current answer as the known-good comparison endpoint. Incorrect Answers B:A generated resolver file reflects active management state rather than serving as the lasting configuration source. That is relevant to a different intervention. For the stated situation, the required action is: Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. The governing reason is: Resolver-specific caching or forwarding faults can exist even when authoritative DNS data is healthy. C:DNS errors must be distinguished from IP reachability because application names depend on resolver behavior. That is relevant to a different intervention. For the stated situation, the required action is: Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. The governing reason is: Resolver-specific caching or forwarding faults can exist even when authoritative DNS data is healthy. D: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: Compare direct queries against the branch resolver and a known-good resolver before editing authoritative records. The governing reason is: Resolver-specific caching or forwarding faults can exist even when authoritative DNS data is healthy.
Question 278A kiosk image installs a display manager but lacks a usable desktop environment, leaving employees at a successful login with no workable session. Why is the recommendation to install and select a supported desktop session, such as KDE Plasma, GNOME or Xfce, for the kiosk requirements appropriate here? Desktop environments differ in resource use and components, without changing the Linux kernel's core functions. Graphical session components must include both session login and an actual user desktop. RDP, VNC and XDMCP provide different graphical-session mechanisms and are not interchangeable merely because each is remote. The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. ExplanationCorrect Answer B:Graphical session components must include both session login and an actual user desktop. The underlying rule explains the proposal. Install and select a supported desktop session, such as KDE Plasma, GNOME or Xfce, for the kiosk requirements. Without it, users encounter a login loop and cannot launch the kiosk application. Incorrect Answers A:Desktop environments differ in resource use and components, without changing the Linux kernel's core functions. This does not establish the proposed intervention. The governing principle here is: Graphical session components must include both session login and an actual user desktop. Apply it by: Install and select a supported desktop session, such as KDE Plasma, GNOME or Xfce, for the kiosk requirements. C:RDP, VNC and XDMCP provide different graphical-session mechanisms and are not interchangeable merely because each is remote. This does not establish the proposed intervention. The governing principle here is: Graphical session components must include both session login and an actual user desktop. Apply it by: Install and select a supported desktop session, such as KDE Plasma, GNOME or Xfce, for the kiosk requirements. 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: Graphical session components must include both session login and an actual user desktop. Apply it by: Install and select a supported desktop session, such as KDE Plasma, GNOME or Xfce, for the kiosk requirements.
Question 279An engineer assumes that a window manager alone supplies the login screen, but the workstation never presents graphical account authentication after boot. What is the most defensible corrective step? Remove the stale DISPLAY override and use the current authenticated session's display value. Use scoped X authentication cookies through xauth instead of broadly disabling X server access controls. 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 C:Configure a supported display manager and confirm that it starts the intended desktop session. This targets the failure described rather than another system component. The display manager handles graphical login, while a window manager controls window placement after login. The expected result is: At boot the display manager presents authentication and starts the selected desktop environment on success. Incorrect Answers A:The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. That is relevant to a different intervention. For the stated situation, the required action is: Configure a supported display manager and confirm that it starts the intended desktop session. The governing reason is: The display manager handles graphical login, while a window manager controls window placement after login. B: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: Configure a supported display manager and confirm that it starts the intended desktop session. The governing reason is: The display manager handles graphical login, while a window manager controls window placement after login. 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: Configure a supported display manager and confirm that it starts the intended desktop session. The governing reason is: The display manager handles graphical login, while a window manager controls window placement after login.
Question 280A host inventory lists no open TCP listeners, but external scanning reports a service exposed on an unusual port and the local team assumes the scanner is inaccurate. What consequence follows most directly if the team leaves this issue unresolved? A syntax mistake can deny emergency administration or unexpectedly broaden permissions. Long-lived credentials remain usable beyond the accepted risk window. One application can exhaust available file descriptors and cause unrelated service failures. An unintended externally reachable service may remain outside local audit coverage. ExplanationCorrect Answer D:An unintended externally reachable service may remain outside local audit coverage. The direct consequence is addressed by: Correlate a controlled port scan with ss or lsof listener data and network forwarding policy. A successful test would show: The team identifies the actual responding service or forwarding rule and documents its authorization. Incorrect Answers A:Sudo policy must parse correctly, and validation before replacement prevents lockouts. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An unintended externally reachable service may remain outside local audit coverage. B:Password expiration metadata is a separate account policy control that must be applied to the relevant identities. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An unintended externally reachable service may remain outside local audit coverage. C:Resource limits such as ulimit can bound file descriptors independently of physical memory capacity. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: An unintended externally reachable service may remain outside local audit coverage.