Question 660A new administrator's Bash alias works after sourcing a file manually but disappears whenever a fresh interactive terminal window starts. Which change most directly addresses this failure? Source the reviewed configuration file in the current shell session. Update the templates in /etc/skel and apply existing-account changes separately as required. Export the revised PATH rather than leaving it as an unexported local assignment. Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. ExplanationCorrect Answer D:Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. It changes the dependency that is failing in the scenario. Bash reads initialization files according to login and interactive mode, not merely because a shell is started. Confirm the outcome with: Opening a new interactive Bash window shows the alias through the alias builtin. Incorrect Answers A: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: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. The governing reason is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started. B:User-account creation copies initial skeleton content; modifying the template does not rewrite existing home directories. That is relevant to a different intervention. For the stated situation, the required action is: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. The governing reason is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started. C: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: Define and source the alias in the user's interactive Bash initialization file such as ~/.bashrc. The governing reason is: Bash reads initialization files according to login and interactive mode, not merely because a shell is started.
Question 661A TCP connection is established, but the application seems unreachable because the operator tests a different port number than the service's bound listener. Which operational or security exposure is most closely tied to this condition? A working service is falsely declared offline due to mismatched port tests. IPv6 service failures remain unresolved because checks focus on the wrong protocol family. Users cannot locate a working service because the name-to-address mapping is wrong. Latency-sensitive traffic unexpectedly traverses a costly or unreliable backup link. ExplanationCorrect Answer A:A working service is falsely declared offline due to mismatched port tests. The failure arises from this Linux behavior: Transport-layer endpoints are defined by protocol and port as well as host address. A repair would be: Verify the intended transport port with ss and connect to that exact endpoint. Incorrect Answers B:IPv6 maintains routing information separate from IPv4 even on a dual-stack host. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A working service is falsely declared offline due to mismatched port tests. C:Successful direct IP connectivity rules out many routing failures while leaving DNS configuration as a possible cause. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A working service is falsely declared offline due to mismatched port tests. D:Among routes with the same prefix length, route metrics influence selection. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: A working service is falsely declared offline due to mismatched port tests.
Question 662A user with motor tremor unintentionally generates repeated keystrokes when resting on a key, producing duplicate characters in forms. What can go wrong if no corrective work is performed? Blind or low-vision users lack a practical means to interpret the interface. Forms continue to record unintended characters, creating data-entry errors. Key interface controls remain effectively invisible, preventing completion of work. A functioning X server may still leave users without a usable graphical login workflow. ExplanationCorrect Answer B:Forms continue to record unintended characters, creating data-entry errors. The direct consequence is addressed by: Adjust the desktop's repeat-key timing or enable the appropriate slow-key input filter. A successful test would show: Repeated characters decrease in a test text field while intentional typing remains possible. Incorrect Answers A:Magnification changes visual scale, whereas a screen reader communicates interface semantics audibly. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Forms continue to record unintended characters, creating data-entry errors. C:Visual accessibility settings address readability and distinguishability, not underlying network or shell problems. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Forms continue to record unintended characters, creating data-entry errors. 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: Forms continue to record unintended characters, creating data-entry errors.
Question 663An X11 application starts only when the administrator disables access checking globally with xhost +, which exposes the display to unrelated network clients. Which unresolved failure mode should be included in the risk review? A functioning X server may still leave users without a usable graphical login workflow. Users experience incorrect key mapping after every reboot and may enter credentials incorrectly. Other hosts could observe input or interfere with graphical applications running in the session. Unsupported assumptions about display protocols block remote graphical administration. ExplanationCorrect Answer C:Other hosts could observe input or interfere with graphical applications running in the session. The failure arises from this Linux behavior: X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. A repair would be: Use scoped X authentication cookies through xauth instead of broadly disabling X server access controls. Incorrect Answers A: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: Other hosts could observe input or interfere with graphical applications running in the session. B: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: Other hosts could observe input or interfere with graphical applications running in the session. D:Wayland compositors and X11 servers have different display and security architectures. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Other hosts could observe input or interfere with graphical applications running in the session.
Question 664A script accepts an input filename but places the unquoted positional argument in a command that also consumes a wildcard, producing unpredictable matching. The team recommends: Pass the positional filename as a quoted argument and validate it before processing. Which Linux behavior best explains that recommendation? The read builtin's default field splitting and backslash handling can transform raw input. Shell control structures require specific delimiters and grammar before their bodies can execute. Iteration over bounded input avoids operating-system argument-vector size limits and handles individual records. Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. ExplanationCorrect Answer D:Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. The underlying rule explains the proposal. Pass the positional filename as a quoted argument and validate it before processing. Without it, a single unusual filename can cause the script to process or overwrite other files. Incorrect Answers A: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: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. Apply it by: Pass the positional filename as a quoted argument and validate it before processing. B:Shell control structures require specific delimiters and grammar before their bodies can execute. This does not establish the proposed intervention. The governing principle here is: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. Apply it by: Pass the positional filename as a quoted argument and validate it before processing. 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: Shell expansion occurs before program execution and quoting prevents unintended argument splitting and globbing. Apply it by: Pass the positional filename as a quoted argument and validate it before processing.
Question 665An IPv6-only endpoint responds to ping6 from one neighbor but not from a routed segment, and investigators inspect only the IPv4 route table. An administrator proposes to inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. Which technical principle supports the proposal? IPv6 maintains routing information separate from IPv4 even on a dual-stack host. Network interface operational state precedes higher-level IP and DNS functionality. A host needs a next-hop route for destinations outside directly connected networks. Path tracing can expose intermediate hop behavior that is not visible from a local route lookup alone. ExplanationCorrect Answer A:IPv6 maintains routing information separate from IPv4 even on a dual-stack host. The proposed repair works on this mechanism rather than an unrelated symptom. Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. Incorrect Answers B:Network interface operational state precedes higher-level IP and DNS functionality. This does not establish the proposed intervention. The governing principle here is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host. Apply it by: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. C:A host needs a next-hop route for destinations outside directly connected networks. This does not establish the proposed intervention. The governing principle here is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host. Apply it by: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path. D:Path tracing can expose intermediate hop behavior that is not visible from a local route lookup alone. This does not establish the proposed intervention. The governing principle here is: IPv6 maintains routing information separate from IPv4 even on a dual-stack host. Apply it by: Inspect IPv6 addresses and routes using ip -6 and test the actual IPv6 path.
Question 666A server still exposes an obsolete telnet daemon even though all administrators now use SSH, and the security baseline requires removing unneeded listeners. Why is the recommendation to disable the unneeded service and its activation socket, then confirm that its port is no longer reachable appropriate here? Systemd socket activation can launch a service in response to network connections independently of service enablement. Unused network services expand attack surface whether launched as long-running daemons or on demand. Disabling future startup and stopping current processes are separate tasks in service hardening. Password hashes require stronger access protection than public user profile records. ExplanationCorrect Answer B:Unused network services expand attack surface whether launched as long-running daemons or on demand. The underlying rule explains the proposal. Disable the unneeded service and its activation socket, then confirm that its port is no longer reachable. Without it, an unnecessary plaintext remote-access service remains available to attackers. Incorrect Answers A:Systemd socket activation can launch a service in response to network connections independently of service enablement. This does not establish the proposed intervention. The governing principle here is: Unused network services expand attack surface whether launched as long-running daemons or on demand. Apply it by: Disable the unneeded service and its activation socket, then confirm that its port is no longer reachable. C:Disabling future startup and stopping current processes are separate tasks in service hardening. This does not establish the proposed intervention. The governing principle here is: Unused network services expand attack surface whether launched as long-running daemons or on demand. Apply it by: Disable the unneeded service and its activation socket, then confirm that its port is no longer reachable. D:Password hashes require stronger access protection than public user profile records. This does not establish the proposed intervention. The governing principle here is: Unused network services expand attack surface whether launched as long-running daemons or on demand. Apply it by: Disable the unneeded service and its activation socket, then confirm that its port is no longer reachable.
Question 667A service relies on TCP for a multi-record transfer but the implementation treats any one received segment as proof that the complete application message arrived. Which action is the most appropriate first repair? Allow the required DNS transport, normally UDP 53 with TCP support where necessary. Keep the address within private routing and use approved external translation or published public addressing where needed. Read and reassemble the TCP byte stream until the application's message framing is complete. Configure a valid default gateway or specific route for destinations beyond the local subnet. ExplanationCorrect Answer C:Read and reassemble the TCP byte stream until the application's message framing is complete. This targets the failure described rather than another system component. TCP provides a reliable ordered byte stream, not application-defined message boundaries. The expected result is: A fragmented test transfer reconstructs the entire record without premature parsing. Incorrect Answers A:DNS commonly uses UDP for queries and TCP for larger responses, zone transfers and fallback scenarios. That is relevant to a different intervention. For the stated situation, the required action is: Read and reassemble the TCP byte stream until the application's message framing is complete. The governing reason is: TCP provides a reliable ordered byte stream, not application-defined message boundaries. B:RFC 1918 private IPv4 addresses are not globally routed across the public Internet. That is relevant to a different intervention. For the stated situation, the required action is: Read and reassemble the TCP byte stream until the application's message framing is complete. The governing reason is: TCP provides a reliable ordered byte stream, not application-defined message boundaries. D:Routing chooses the next hop for remote IP packets independently of DNS suffix handling. That is relevant to a different intervention. For the stated situation, the required action is: Read and reassemble the TCP byte stream until the application's message framing is complete. The governing reason is: TCP provides a reliable ordered byte stream, not application-defined message boundaries.
Question 668A newly built node receives remote syslog messages on no listener even though its outbound log forwarding works to other servers. What consequence follows most directly if the team leaves this issue unresolved? Journal growth can fill the system volume and interrupt normal services. Disk exhaustion can stop system services and prevent new audit messages from being recorded. The host continues sending audit data to an obsolete server despite the edited file. Remote hosts believe events are centralized but the designated collector drops every inbound message. ExplanationCorrect Answer D:Remote hosts believe events are centralized but the designated collector drops every inbound message. The direct consequence is addressed by: Configure the approved inbound rsyslog input module, listener and network access for the central receiving role. A successful test would show: A remote logger test reaches the new receiver with the expected source metadata. Incorrect Answers A: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: Remote hosts believe events are centralized but the designated collector drops every inbound message. B:Rotation policy limits historical log volume independently of current message generation. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Remote hosts believe events are centralized but the designated collector drops every inbound message. C:A daemon must apply updated configuration before it changes live routing behavior. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Remote hosts believe events are centralized but the designated collector drops every inbound message.
Question 669A 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. Which operational or security exposure is most closely tied to this condition? Applications launch invisibly on an unreachable display or fail to open at all. 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. Other hosts could observe input or interfere with graphical applications running in the session. ExplanationCorrect Answer A:Applications launch invisibly on an unreachable display or fail to open at all. The failure arises from this Linux behavior: The DISPLAY environment variable directs X clients to a particular server, not automatically to the active monitor. A repair would be: Remove the stale DISPLAY override and use the current authenticated session's display value. 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: Applications launch invisibly on an unreachable display or fail to open at all. 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: Applications launch invisibly on an unreachable display or fail to open at all. D:X authorization should identify permitted clients rather than grant every reachable host unrestricted display access. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Applications launch invisibly on an unreachable display or fail to open at all.
Question 670An account database review finds a shadow file readable by ordinary users because a packaging script reset its permissions. What can go wrong if no corrective work is performed? Non-wrapper applications remain reachable from prohibited networks. Local users can harvest password hashes for offline cracking attempts. New reboots restore insecure services that were stopped only temporarily. An unnecessary plaintext remote-access service remains available to attackers. ExplanationCorrect Answer B:Local users can harvest password hashes for offline cracking attempts. The direct consequence is addressed by: Restore appropriate restricted ownership and permissions on the shadow database using supported system tools. A successful test would show: A nonprivileged user cannot read /etc/shadow while authentication functions normally. Incorrect Answers A: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: Local users can harvest password hashes for offline cracking attempts. C:Service hardening requires maintaining a minimal set of reachable network interfaces across reboots. That does not describe the principal exposure from the stated failure. The direct avoidable risk is: Local users can harvest password hashes for offline cracking attempts. D: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: Local users can harvest password hashes for offline cracking attempts.