Question 230
A diagnostic script needs a complete one-time snapshot of all running users' processes. Which command is suitable?
- mpstat -P ALL 1
- Defunct child awaiting parent reaping
- pidstat -p 6120 1
- ps aux
Explanation
Correct Answer
D:ps aux displays a system-wide process snapshot including user, CPU and memory information. It does not continuously refresh like top.
Incorrect Answers
A:mpstat reports processor statistics including per-CPU usage at chosen intervals; the administrator instead needs obtaining a cross-user process snapshot; this option serves a different purpose.
B:A zombie has exited but retains a minimal process-table entry until its parent collects exit status; it answers a neighboring question rather than obtaining a cross-user process snapshot.
C:pidstat measures per-process statistics at intervals and can target a specific PID; that changes a different part of the system; the requested outcome is obtaining a cross-user process snapshot.
Question 231
A command is running at the terminal, and the operator wants a foreground interrupt normally handled as SIGINT. Which keystroke is standard?
- Ctrl+C
- ulimit -n
- at 17:00 tomorrow
- crontab -l
Explanation
Correct Answer
A:Ctrl+C causes the terminal to deliver an interrupt signal to the foreground process group. Programs can handle SIGINT instead of exiting.
Incorrect Answers
B:ulimit manages limits for the current shell and its descendants, subject to hard limits and policy; the requirement is sending an interrupt to the foreground process, outside the effect of this choice.
C:at queues a one-time job for a specified future time; it does not deliver sending an interrupt to the foreground process, which is decisive in this scenario.
D:crontab -l displays the current user's installed cron table; the evidence calls for sending an interrupt to the foreground process, not merely this separate operation.
Question 232
A Linux service has an excessive number of open files and needs a higher per-process soft file-descriptor limit. Which shell builtin inspects or adjusts limits?
- 15 2 * * *
- crontab -l
- at 17:00 tomorrow
- ulimit -n
- Ctrl+C
Explanation
Correct Answer
D:ulimit manages limits for the current shell and its descendants, subject to hard limits and policy. It does not retroactively change unrelated running services.
Incorrect Answers
A:Cron places the minute field first and the hour field second, so 15 2 means 02:15; its scope differs from setting a shell's open-file descriptor limit, so it cannot meet the stated requirement.
B:crontab -l displays the current user's installed cron table; that is not equivalent to setting a shell's open-file descriptor limit.
C:at queues a one-time job for a specified future time; the administrator instead needs setting a shell's open-file descriptor limit; this option serves a different purpose.
E:Ctrl+C causes the terminal to deliver an interrupt signal to the foreground process group; that changes a different part of the system; the requested outcome is setting a shell's open-file descriptor limit.
Question 233
A database maintenance command must run once tomorrow at 17:00 rather than on a repeating schedule. Which scheduler fits?
- Ctrl+Z
- ulimit -n
- Ctrl+C
- at 17:00 tomorrow
Explanation
Correct Answer
D:at queues a one-time job for a specified future time. Cron is more appropriate for repeating calendar schedules.
Incorrect Answers
A:Ctrl+Z normally delivers SIGTSTP to the foreground process group; this does not achieve queuing one execution at a future time on the system described.
B:ulimit manages limits for the current shell and its descendants, subject to hard limits and policy; it will not provide queuing one execution at a future time under these conditions.
C:Ctrl+C causes the terminal to deliver an interrupt signal to the foreground process group; using it would leave queuing one execution at a future time unresolved.
Question 234
A daemon is documented to reload its configuration upon receipt of a hangup signal. Which signal is sent?
- nice -n 10 command
- renice +10 -p 6120
- fg %2
- SIGKILL (signal 9)
- SIGTERM (signal 15)
- SIGHUP (signal 1)
Explanation
Correct Answer
F:Many daemons interpret SIGHUP as a reload request, although behavior depends on the application. The signal convention comes from terminal hangups.
Incorrect Answers
A:nice launches a new process with its requested scheduling niceness, typically making it less favored under contention when positive; the evidence calls for requesting daemon configuration reload using HUP, not merely this separate operation.
B:renice modifies the scheduling priority of an existing process; the task involves requesting daemon configuration reload using HUP, whereas this addresses another subsystem.
C:fg places a shell job in the foreground and waits for it; its scope differs from requesting daemon configuration reload using HUP, so it cannot meet the stated requirement.
D:SIGKILL forces termination through the kernel and bypasses process cleanup handlers; that is not equivalent to requesting daemon configuration reload using HUP.
E:SIGTERM requests termination and can be handled so a process may clean up; the administrator instead needs requesting daemon configuration reload using HUP; this option serves a different purpose.
Question 235
A RHEL host should use a local DNF repository only when explicitly enabled. Which configuration option controls this?
- Package version lock or exclusion
- enabled=0 in the repository definition
- Remove the repository configuration entry
- apt update
Explanation
Correct Answer
B:A disabled DNF repository is excluded from normal transactions until selected. Repository definitions commonly live in .repo files under /etc/yum.repos.d.
Incorrect Answers
A:Version locks or repository exclusions can prevent selected packages from participating in upgrades; it answers a neighboring question rather than keeping an RPM repository disabled by default.
C:Package managers consult configured repository definitions for updates; this does not achieve keeping an RPM repository disabled by default on the system described.
D:apt update fetches current indexes from configured apt sources and refreshes the local package cache; it will not provide keeping an RPM repository disabled by default under these conditions.
Question 236
A second web service requires Apache's module-based HTTP server rather than Nginx. Which daemon family should be configured?
- Authoritative DNS server
- Sandboxed application packaging
- Apache httpd
- Isolate dependencies inside a container image
Explanation
Correct Answer
C:Apache HTTP Server provides HTTP service with modules and site configuration. Package and service names differ among distributions.
Incorrect Answers
A:An authoritative DNS service publishes zone records to querying resolvers; the requirement is deploying Apache HTTP Server, outside the effect of this choice.
B:Sandboxed formats such as Flatpak can isolate portions of application execution and dependencies; it does not deliver deploying Apache HTTP Server, which is decisive in this scenario.
D:A container image bundles application dependencies into a deployable filesystem; the task involves deploying Apache HTTP Server, whereas this addresses another subsystem.
Question 237
A RHEL-family host must update an installed package using configured repositories. Which command normally fits?
- update-alternatives --config java
- python -m pip install requests
- apt install nginx
- dnf upgrade openssh-server
Explanation
Correct Answer
D:dnf resolves RPM dependencies and updates the named package from enabled repositories. Updating a running daemon may require a restart to activate new code.
Incorrect Answers
A:The alternatives system selects among registered implementations through managed symbolic links; that is not equivalent to updating an RPM-family package from repositories.
B:pip installs Python distributions into the interpreter environment invoked by python; the administrator instead needs updating an RPM-family package from repositories; this option serves a different purpose.
C:apt resolves dependencies from configured package sources and installs the requested package; it answers a neighboring question rather than updating an RPM-family package from repositories.
Question 238
A containerized service requires a matching runtime library but should not alter system-wide dependency versions. Which packaging approach fits?
- Nginx web server
- Apache httpd
- DHCP server
- Isolate dependencies inside a container image
Explanation
Correct Answer
D:A container image bundles application dependencies into a deployable filesystem. The host still supplies a compatible kernel and runtime.
Incorrect Answers
A:Nginx can terminate HTTP requests and serve static content or reverse-proxy backends; it will not provide separating application runtime dependencies from host packages under these conditions.
B:Apache HTTP Server provides HTTP service with modules and site configuration; using it would leave separating application runtime dependencies from host packages unresolved.
C:A DHCP service grants leases and associated network parameters to clients; the requirement is separating application runtime dependencies from host packages, outside the effect of this choice.
Question 239
A compiled source project requires local installation from a tarball after reviewing the build instructions. Which operational concern is most important?
- DHCP server
- Track non-package-managed installed files and updates
- Apache httpd
- Sandboxed application packaging
- Authoritative DNS server
Explanation
Correct Answer
B:Source installations may place files outside the system package manager's ownership database. Administrators need their own patch and rollback discipline.
Incorrect Answers
A:A DHCP service grants leases and associated network parameters to clients; the task involves managing provenance of locally compiled software, whereas this addresses another subsystem.
C:Apache HTTP Server provides HTTP service with modules and site configuration; that is not equivalent to managing provenance of locally compiled software.
D:Sandboxed formats such as Flatpak can isolate portions of application execution and dependencies; the administrator instead needs managing provenance of locally compiled software; this option serves a different purpose.
E:An authoritative DNS service publishes zone records to querying resolvers; it answers a neighboring question rather than managing provenance of locally compiled software.
Question 240
An internal zone needs authoritative responses for company hostnames. Which daemon category addresses this?
- Apache httpd
- Sandboxed application packaging
- Track non-package-managed installed files and updates
- Authoritative DNS server
Explanation
Correct Answer
D:An authoritative DNS service publishes zone records to querying resolvers. It is distinct from a stub resolver that only asks upstream name servers.
Incorrect Answers
A:Apache HTTP Server provides HTTP service with modules and site configuration; that changes a different part of the system; the requested outcome is serving authoritative DNS records.
B:Sandboxed formats such as Flatpak can isolate portions of application execution and dependencies; this does not achieve serving authoritative DNS records on the system described.
C:Source installations may place files outside the system package manager's ownership database; it will not provide serving authoritative DNS records under these conditions.