Question 660
A web application's assets were moved with mv from a different context, and restorecon resolves access failures. What caused the denial?
- Analyze denials and restore enforcing mode after repair
- SELinux type permits reads but not the requested writes
- Verify labeling and existing policy before adding allow rules
- Incorrect inherited or retained SELinux file labels
Explanation
Correct Answer
D:Moved files can retain labels inconsistent with their new directory policy. Restoring proper contexts reestablishes allowed access.
Incorrect Answers
A:Permissive behavior helps isolate policy interference but leaves protections unapplied; that changes a different part of the system; the requested outcome is recognizing stale SELinux labels after moving files.
B:SELinux types distinguish read-only content from writable service data; this does not achieve recognizing stale SELinux labels after moving files on the system described.
C:Generated policy exceptions can overgrant access when the real problem is an incorrect context; it will not provide recognizing stale SELinux labels after moving files under these conditions.
Question 661
A shared project directory already has the setgid bit and the correct owning group, so new files inherit the group owner. Newly created ordinary files also need group write permission under the application’s usual 0666 creation mode. Which directory-level feature can define inherited permissions?
- A default POSIX ACL with suitable group and mask entries
- The sticky bit alone
- setgid on the directory alone
- A setuid bit on the directory
- An immutable attribute on the directory
Explanation
Correct Answer
A:A directory default ACL provides inherited ACL entries for newly created objects. With a creation mode allowing group write and a suitable effective mask, it can establish shared group-write access.
Incorrect Answers
B:The sticky bit on a writable directory restricts who may remove or rename contained entries. It does not grant group write to newly created regular files.
C:Directory setgid directs newly created objects to inherit the directory group. It does not force the group write bit or an access ACL entry to be present.
D:Linux does not ordinarily use directory setuid to assign group write permissions to new files. This flag cannot replace a default ACL for inherited access rules.
E:The immutable flag restricts modification and directory-entry changes. It would obstruct creation or maintenance rather than give collaborators writable new files.
Question 662
An audit2allow suggestion would grant a broad permission after one denial. What is the safer response?
- SELinux type permits reads but not the requested writes
- Verify labeling and existing policy before adding allow rules
- Analyze denials and restore enforcing mode after repair
- Persistent semanage fcontext mapping
Explanation
Correct Answer
B:Generated policy exceptions can overgrant access when the real problem is an incorrect context. Review the denied operation and required least privilege.
Incorrect Answers
A:SELinux types distinguish read-only content from writable service data; the administrator instead needs preventing overbroad SELinux policy exceptions; this option serves a different purpose.
C:Permissive behavior helps isolate policy interference but leaves protections unapplied; that changes a different part of the system; the requested outcome is preventing overbroad SELinux policy exceptions.
D:chcon changes current labels but a later relabel can restore policy-defined defaults; this does not achieve preventing overbroad SELinux policy exceptions on the system described.
Question 663
A custom web document root works after chcon but fails again after a full relabel. What was omitted?
- Persistent semanage fcontext mapping
- Incorrect inherited or retained SELinux file labels
- Verify labeling and existing policy before adding allow rules
- Applicable SELinux network-connect boolean
- Relevant AVC denials and file contexts
- Analyze denials and restore enforcing mode after repair
Explanation
Correct Answer
A:chcon changes current labels but a later relabel can restore policy-defined defaults. A saved fcontext rule makes the custom path durable.
Incorrect Answers
B:Moved files can retain labels inconsistent with their new directory policy; the requirement is preserving a custom SELinux label across relabels, outside the effect of this choice.
C:Generated policy exceptions can overgrant access when the real problem is an incorrect context; it does not deliver preserving a custom SELinux label across relabels, which is decisive in this scenario.
D:Policies can restrict which processes initiate outbound connections; the evidence calls for preserving a custom SELinux label across relabels, not merely this separate operation.
E:SELinux may reject access independent of traditional permission bits; the task involves preserving a custom SELinux label across relabels, whereas this addresses another subsystem.
F:Permissive behavior helps isolate policy interference but leaves protections unapplied; its scope differs from preserving a custom SELinux label across relabels, so it cannot meet the stated requirement.
Question 664
A TLS service presents an incomplete chain issued by a private CA, and brand-new clients do not trust the root. Which TWO distinct configuration changes can address both faults? Choose TWO.
- Source-restricted SSH firewall policy
- Present the intermediate CA chain
- KbdInteractiveAuthentication and PAM settings
- Private CA trust anchor on clients
- Configure mutually supported secure KEX algorithms
Explanation
Correct Answers
B:A server must present the intermediate CA certificate or certificates connecting its leaf to a trusted issuing root. Repairing that chain fixes the server-side omission, while clients still must trust the private root independently.
D:Clients need the internal issuing chain anchored in an approved trust store. Disabling certificate validation would conceal impersonation risk.
Incorrect Answers
A:A firewall may drop inbound packets by source or interface; its scope differs from supplying missing intermediate certificates and the private CA trust anchor, so it cannot meet the stated requirement.
C:Disabling PasswordAuthentication alone may leave other interactive authentication methods active; the administrator instead needs supplying missing intermediate certificates and the private CA trust anchor; this option serves a different purpose.
E:Handshake requires client/server overlap in accepted algorithms; that changes a different part of the system; the requested outcome is supplying missing intermediate certificates and the private CA trust anchor.
Question 665
A directory has mode 644 and a user can list it in some contexts but cannot traverse into it. What permission is missing?
- Sticky bit on shared directory
- Existing process retained its original group credentials
- ACL mask entry
- Execute/search permission on the directory
Explanation
Correct Answer
D:Directory execute grants traversal and pathname lookup, while read permits listing names. A file-like 644 mode lacks execute needed for directory access.
Incorrect Answers
A:Write and execute on a directory normally permit removing entries regardless of file ownership; this does not achieve restoring directory traversal permission on the system described.
B:Group memberships are captured when credentials are established for a process; it will not provide restoring directory traversal permission under these conditions.
C:The ACL mask caps effective permissions for named users and group-class entries; using it would leave restoring directory traversal permission unresolved.
Question 666
A newly added repository points to a retired release codename and returns HTTP 404. What is the likely fix?
- Replace stale repository release URLs
- Repository priority or package pinning
- Host clock synchronization
- Verify and import the approved repository signing key
Explanation
Correct Answer
A:Package sources must match a supported distribution release or intended archive mirror. Repeated apt retries cannot repair an invalid source path.
Incorrect Answers
B:Pinning and priorities constrain which sources and versions may satisfy updates; the task involves correcting a repository for the wrong OS release, whereas this addresses another subsystem.
C:TLS certificate validity depends on an accurate system clock; its scope differs from correcting a repository for the wrong OS release, so it cannot meet the stated requirement.
D:Package signature trust must be established using a verified key fingerprint; that is not equivalent to correcting a repository for the wrong OS release.
Question 667
A security scan flags a TLS certificate that expires tomorrow on a reverse proxy. Which maintenance action should be planned?
- Configure mutually supported secure KEX algorithms
- Present the intermediate CA chain
- KbdInteractiveAuthentication and PAM settings
- Renew and deploy the correct certificate chain
Explanation
Correct Answer
D:Expiry checks reject otherwise functional TLS services after the validity window ends. Deploying a renewed certificate and reloading the daemon is necessary.
Incorrect Answers
A:Handshake requires client/server overlap in accepted algorithms; it answers a neighboring question rather than preventing certificate-expiration service failure.
B:Even a trusted root may not be connected to the leaf without the right intermediate certificates; that changes a different part of the system; the requested outcome is preventing certificate-expiration service failure.
C:Disabling PasswordAuthentication alone may leave other interactive authentication methods active; this does not achieve preventing certificate-expiration service failure on the system described.
Question 668
An application spends high CPU time in the kernel after a networking change, while user-space utilization falls. Which metric indicates that split?
- taskset
- User versus system CPU time
- Load includes tasks waiting in uninterruptible sleep
- Single-thread CPU bottleneck
- Raise the batch process nice value
Explanation
Correct Answer
B:System CPU accounts for kernel execution on behalf of tasks. Elevated system time can point to syscall, packet or driver overhead.
Incorrect Answers
A:taskset controls the CPU affinity mask of a process; the requirement is separating kernel work from application CPU, outside the effect of this choice.
C:Linux load average counts runnable tasks and certain uninterruptible waits; the evidence calls for separating kernel work from application CPU, not merely this separate operation.
D:One fully saturated thread can limit application throughput despite aggregate idle CPU capacity; the task involves separating kernel work from application CPU, whereas this addresses another subsystem.
E:Higher niceness generally lowers scheduling priority for normal CFS tasks; its scope differs from separating kernel work from application CPU, so it cannot meet the stated requirement.
Question 669
A process's virtual memory size is huge but resident size remains small. Which measure best reflects physical RAM currently held?
- Firmware-reported memory and online memory blocks
- Memory pressure causing disk-backed paging
- /proc/PID/smaps_rollup
- Resident set size (RSS)
Explanation
Correct Answer
D:RSS measures physical memory currently resident for a process, though shared pages complicate accounting. Virtual size includes unmapped-to-RAM and reserved ranges.
Incorrect Answers
A:The OS can only use memory that firmware and kernel successfully enumerate and online; that is not equivalent to distinguishing virtual allocation from resident memory.
B:Swapping moves memory pages between RAM and backing storage, adding latency when working sets exceed available memory; the administrator instead needs distinguishing virtual allocation from resident memory; this option serves a different purpose.
C:smaps_rollup provides summarized memory mappings and residency information for a process; it answers a neighboring question rather than distinguishing virtual allocation from resident memory.
Question 670
A service must be pinned to specific available CPU cores for an isolated performance test. Which command can inspect or set affinity?
- Single-thread CPU bottleneck
- Load includes tasks waiting in uninterruptible sleep
- taskset
- Raise the batch process nice value
Explanation
Correct Answer
C:taskset controls the CPU affinity mask of a process. Affinity limits scheduling placement but does not reserve exclusive cores.
Incorrect Answers
A:One fully saturated thread can limit application throughput despite aggregate idle CPU capacity; it will not provide restricting process placement to selected CPUs under these conditions.
B:Linux load average counts runnable tasks and certain uninterruptible waits; using it would leave restricting process placement to selected CPUs unresolved.
D:Higher niceness generally lowers scheduling priority for normal CFS tasks; it does not deliver restricting process placement to selected CPUs, which is decisive in this scenario.