> ## Documentation Index
> Fetch the complete documentation index at: https://linux-plus.ipoint-labs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Domain 8 Review Quiz

> 25 practice questions for Domain 8. Managing the Linux Kernel and Devices.

25 practice questions covering **Managing the Linux Kernel and Devices**. Read the question, take answers from the room, then reveal.

<div className="quiz" data-total="25">
  <div className="quiz__q" data-n="1" data-answer="D">
    <p className="quiz__stem">
      { "A systems administrator needs to enable routing of IP packets between network interfaces. Which of the following kernel parameters should the administrator change?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "net.ipv4.ip_multicast" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "net.ipv4.ip_route" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "net.ipv4.ip_local_port_range" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "net.ipv4.ip_forward" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "The net.ipv4.ip_forward kernel parameter controls whether the Linux kernel can forward IP packets between network interfaces, enabling routing functionality when set to 1." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="2" data-answer="C">
    <p className="quiz__stem">
      { "Users report that a Linux system is unresponsive and simple commands take too long to complete. The Linux administrator logs in to the system and sees the following: Which of the following is the system experiencing?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "High latency" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "High uptime" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "High CPU load" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "High I/O wait times" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "The load averages (8.71, 8.24, 7.71) are well above the number of CPUs (4), showing CPU saturation. Additionally, Output 2 indicates very high CPU usage (65.88% usr, 20.54% sys) with 0% idle, confirming the system is under heavy CPU load, which explains the unresponsiveness." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="3" data-answer="A">
    <p className="quiz__stem">
      { "A Linux administrator receives reports about MySQL service availability issues. The administrator observes the following information: Which of the following explains why the server was offline?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# journalctl -u mysqld --since today\nkernel: mysqld invoked oom-killer: gfp_mask=0x100cca, order=0, oom_score_adj=0\nkernel: Out of memory: Killed process 2144 (mysqld) total-vm:9820184kB, anon-rss:7523120kB\nsystemd: mysqld.service: Main process exited, code=killed, status=9/KILL\nsystemd: mysqld.service: Failed with result 'signal'." }
      </code>
    </pre>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A" data-correct="1"><span className="quiz__letter">A</span><span className="quiz__text">{ "The process exhausted server memory." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The process was intentionally terminated by a privileged user." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The process crashed because of a filesystem error." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "A network outage caused a service availability issue." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: A</p>

      <p className="quiz__why">
        { "The logs show mysqld invoked oom-killer, which is the Linux Out-Of-Memory (OOM) killer. This indicates MySQL consumed too much memory, forcing the kernel to terminate it to protect the system, which caused the service outage." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="4" data-answer="B">
    <p className="quiz__stem">
      { "A Linux administrator receives reports that an application hosted in a system is not completing tasks in the allocated time. The administrator connects to the system and obtains the following details: Which of the following actions can the administrator take to help speed up the jobs?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# uptime\n 14:02:11 up 12 days,  3:44,  2 users,  load average: 7.75, 5.72, 5.17\n# nproc\n4\n# free -m\n               total        used        free      shared  buff/cache   available\nMem:           15884        4120       10260          18        1504       11402\nSwap:           4095           0        4095\n# vmstat 1 2\nprocs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----\n r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st\n 9  0      0 10506240  88320 1452032   0    0     0     2  512 1024 94  5  1  0  0" }
      </code>
    </pre>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Increase the amount of free memory available to the system." }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "Increase the amount of CPU resources available to the system." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Increase the amount of swap space available to the system." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Increase the amount of disks available to the system." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "The uptime output shows a load average of 7.75, 5.72, 5.17 on a system with only 4 processors (nproc = 4). This indicates CPU saturation since the load averages are significantly higher than the number of available CPUs. Memory and swap usage are minimal, and vmstat shows no I/O waits, so the bottleneck is CPU. Increasing CPU resources will help speed up the jobs." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="5" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following commands should a Linux administrator use to determine the version of a kernel module?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "modprobe bluetooth" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "lsmod bluetooth" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "depmod bluetooth" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "modinfo bluetooth" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "The modinfo command displays detailed information about a kernel module, including its version, author, description, and parameters." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="6" data-answer="D">
    <p className="quiz__stem">
      { "A Linux user runs the following command: nohup ping comptia.com & Which of the following commands should the user execute to attach the process to the current terminal?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "renice" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "jobs" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "exec" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "fg" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "The fg command brings a background job to the foreground, attaching it to the current terminal. Since the ping process was started in the background with &, fg is the correct way to reattach it." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="7" data-answer="B">
    <p className="quiz__stem">
      { "A Linux systems administrator is running an important maintenance task that consumes a large amount of CPU, causing other applications to slow. Which of the following actions should the administrator take to help alleviate the issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Increase the available CPU time with pidstat." }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "Lower the priority of the maintenance task with renice." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Run the maintenance task with nohup." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Execute the other applications with the bg utility." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "The renice command adjusts the priority of a running process. By lowering the maintenance task’s priority, the scheduler allocates more CPU time to other applications, reducing their slowdown." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="8" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following commands should an administrator use to see a full hardware inventory of a Linux system?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A" data-correct="1"><span className="quiz__letter">A</span><span className="quiz__text">{ "dmidecode" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "lsmod" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "dmesg" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "lscpu" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: A</p>

      <p className="quiz__why">
        { "dmidecode retrieves detailed hardware information from the system’s DMI/SMBIOS, including BIOS, CPU, memory, and motherboard details, providing a full hardware inventory." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="9" data-answer="B">
    <p className="quiz__stem">
      { "An administrator thinks that the user Joe may be running an unauthorized process on a Linux server. Which of the following commands should the administrator run to confirm this idea?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "lsof -p 'Joe'" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "top -u 'Joe'" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "jobs -n 'Joe'" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "ps -ax 'Joe'" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "top –u Joe filters the process display to only show processes owned by user Joe, allowing the administrator to see if Joe is running any unauthorized processes." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="10" data-answer="A">
    <p className="quiz__stem">
      { "A systems administrator needs to validate that the dm_multipath driver was loaded in a Linux system. Which of the following commands should the administrator use?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A" data-correct="1"><span className="quiz__letter">A</span><span className="quiz__text">{ "lsmod | grep dm_multipath" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "modinfo | grep dm_multipath" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "insmod | grep dm_multipath" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "modprobe | grep dm_multipath" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: A</p>

      <p className="quiz__why">
        { "lsmod lists currently loaded kernel modules; piping to grep dm_multipath confirms whether that specific driver is active in the running kernel." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="11" data-answer="A">
    <p className="quiz__stem">
      { "After receiving a monitoring call, an administrator checks the Linux server for processes that have completed execution but have not been removed yet from the process table. Which of the following represents the process state for which the administrator should search?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A" data-correct="1"><span className="quiz__letter">A</span><span className="quiz__text">{ "Z" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "S" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "D" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "T" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: A</p>

      <p className="quiz__why">
        { "This process state represents zombie processes, which have finished execution but still remain in the process table because their parent process has not yet read their exit status." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="12" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following commands would a Linux administrator use to determine the temperature of a motherboard?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "ipmtool" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "dmidecode" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "lspci" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "lm_sensors" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "This utility reads hardware sensor data exposed by the system, including motherboard and CPU temperature values, allowing administrators to monitor system thermal conditions." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="13" data-answer="B">
    <p className="quiz__stem">
      { "A user reports issues when trying to connect to one of the Linux servers. The server administrator reviews the following outputs: Which of the following statements describes the cause and resolution for this issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "The current kernel is corrupted and should be reinstalled." }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "The messages point to a hardware issue that should be addressed by the server team." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The system has crashed and needs to be rebooted to fix the issue." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "All available CPUs have been exhausted, and a new CPU should be added." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "The logs show machine check exceptions and a fatal machine check kernel panic, which indicate hardware-level errors detected by the CPU. These errors are typically related to faulty hardware components and must be investigated and resolved by the server or hardware support team rather than through software remediation." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="14" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following does dmesg display?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Incorrect login attempts" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "\"Session closed\" messages" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Window manager warnings" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "USB device connections" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "This command displays kernel ring buffer messages, which include hardware-related events such as device initialization and USB device connections." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="15" data-answer="C">
    <p className="quiz__stem">
      { "Users report that after about a week, an application hosted in a system stops responding, requiring the system to be restarted to recover. A systems administrator connects to the system and obtains the following output: Which of the following describes the reason the application stops responding?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# free -m\n               total        used        free      shared  buff/cache   available\nMem:            7937        7788          71           4          78          52\nSwap:           2047        2041           6\n# dmesg | tail -2\nOut of memory: Killed process 3182 (appsrv) total-vm:9123456kB, anon-rss:7801232kB\noom_reaper: reaped process 3182 (appsrv), now anon-rss:0kB" }
      </code>
    </pre>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "The application is configured incorrectly, which depletes memory and swap." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The application has an incorrect disk quota, which fills up the filesystem." }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "The application has a memory leak, which consumes all the available memory on the system." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The application is not allowed to allocate memory, which slows down the system." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "The output shows memory and swap are fully consumed, and the kernel invoked the OOM killer against the application due to excessive resident memory usage, which is consistent with a memory leak gradually exhausting available RAM and swap until the application becomes unresponsive." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="16" data-answer="C">
    <p className="quiz__stem">
      { "A systems administrator wants to terminate all the processes owned by testuser on a Linux VM. Which of the following should the administrator use for this task? A. B. C." }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "while true; do killall; done" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "This command identifies all processes owned by the specified user by extracting their process IDs and then terminates each one, ensuring that all running processes belonging to that user are stopped." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="17" data-answer="D">
    <p className="quiz__stem">
      { "A user reports recurrent issues with an application, which is currently operational. The systems administrator gathers the following outputs to diagnose the issue: Which of the following is a possible cause of this issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "A backup is consuming all the system memory." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The system is using all the swap" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The cached memory is approaching the system's limits." }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "The process is showing signs of a memory leak." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: D</p>

      <p className="quiz__why">
        { "The logs show repeated out-of-memory kills involving the mariadb process, and the memory statistics show sustained high memory usage with no swap configured. Since the application is currently running but repeatedly grows until the kernel kills it, the likely cause is a memory leak in the process." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="18" data-answer="C">
    <p className="quiz__stem">
      { "Application owners are reporting that their application stops responding after several days of running, and they need to restart it. A Linux administrator obtains the following details from the dmesg command: The application owners mentioned that resources to the system have boon increased, and the error takes longer to appear. Which of the following best describes the reason the process is being terminated by OOM?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "The CPU type is incompatible with the application." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The kernel has panicked." }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "The application might have a memory leak." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The swap configuration is not correctly sized." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "The OOM killer is terminating the application after it runs for several days, and adding system resources only delays the failure. That behavior indicates the application is gradually consuming more memory over time, which is consistent with a memory leak." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="19" data-answer="B">
    <p className="quiz__stem">
      { "Which of the following commands should an administrator run to check for errors during startup?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "modinfo" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "dmesg" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "dracut" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "lshw" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "The dmesg command displays kernel ring buffer messages, including hardware detection, driver loading, and startup-related errors that occur during boot." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="20" data-answer="C">
    <p className="quiz__stem">
      { "An administrator is trying to terminate a process that is not responding. Which of the following commands should the administrator use in order to force the termination of the process?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "kill PID" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "kill -1 PID" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "kill -9 PID" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "kill -15 PID" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "The kill command is used to send signals to processes. The -9 option sends the SIGKILL signal, which immediately terminates the process and cannot be caught or ignored by the process. This is used as a last resort when a process is not responding to the default (SIGTERM, -15) or other signals. The SIGKILL signal guarantees termination." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="21" data-answer="B">
    <p className="quiz__stem">
      { "Which of the following commands can be used to display real-time running processes on a Linux system?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "ps" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "top" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "df" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "free" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "The correct answer is B. top because it provides a dynamic, real-time view of running processes and system resource usage. The top command is an essential Linux system monitoring utility that continuously updates information about CPU usage, memory consumption, running processes, load averages, and system uptime. It is widely used by system administrators for performance monitoring and troubleshooting. When executed, top displays a full-screen interface showing active processes sorted by resource usage (typically CPU by default). It updates at regular intervals, allowing administrators to observe changes in real time. Additionally, it offers interactive features such as sorting processes, killing processes, and filtering output, which enhances system management capabilities." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="22" data-answer="A">
    <p className="quiz__stem">
      { "A Linux administrator receives reports that an application hosted in a system is not completing tasks in the allocated time. The administrator connects to the system and obtains the following details: $ uptime 12:47:43 up 22:17, 2 users, load average: 7.75, 5.72, 5.17 Which of the following is the most likely cause of the issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A" data-correct="1"><span className="quiz__letter">A</span><span className="quiz__text">{ "High CPU load" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Insufficient disk space" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Network latency" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Memory leak" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: A</p>

      <p className="quiz__why">
        { "The correct answer is A. High CPU load because the uptime command output clearly shows elevated load averages (7.75, 5.72, 5.17), which indicate that the system is experiencing significant processing demand. Load average represents the number of processes that are either actively using the CPU or waiting for CPU time. When this value is consistently higher than the number of available CPU cores, it suggests that the CPU is overloaded and processes are being delayed. In this scenario, the application is not completing tasks within the expected time frame, which aligns with CPU contention. When too many processes compete for CPU resources, scheduling delays occur, causing slower execution of applications and services. This is a common performance bottleneck in Linux systems." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="23" data-answer="B">
    <p className="quiz__stem">
      { "A Linux system displays the following error during operation: Kernel panic - not syncing: Fatal Machine check Pid: 0, comm: swapper Tainted: G M Call Trace: ... mce_panic do_machine_check Which of the following is the most likely cause of this issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Filesystem corruption" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "Hardware failure (CPU or memory)" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Misconfigured bootloader" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Incorrect file permissions" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "Hardware failure (CPU or memory) because the error message explicitly references a \"Machine Check Exception (MCE)\", which is a hardware-level error detected by the CPU. The line \"Kernel panic - not syncing: Fatal Machine check\" indicates that the kernel encountered a critical, unrecoverable hardware condition and halted the system to prevent further damage or data corruption. Machine Check Exceptions are generated by the CPU when it detects internal errors such as cache failures, bus errors, or memory corruption. These errors are typically associated with faulty hardware components like the processor, RAM, motherboard, or even overheating issues. The presence of functions like mce_panic and do_machine_check in the call trace further confirms that the kernel is responding to a hardware-level fault." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="24" data-answer="B">
    <p className="quiz__stem">
      { "Which of the following commands can be used to display current CPU utilization in real time on a Linux system?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "uptime" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "top" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "df" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "lsblk" }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: B</p>

      <p className="quiz__why">
        { "It provides a real-time, continuously updating view of system performance, including CPU utilization. The top command is one of the most widely used monitoring tools in Linux and is essential for system administrators when analyzing performance issues. When executed, top displays a dynamic interface showing CPU usage percentages, memory consumption, load averages, running processes, and other critical system metrics. The CPU usage section is particularly useful because it breaks down usage into categories such as user space, system (kernel), idle time, and I/O wait. This allows administrators to quickly identify whether the CPU is under heavy load and which processes are consuming the most resources." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="25" data-answer="C">
    <p className="quiz__stem">
      { "A user reports performance degradation on a server that is running their web application. Given the following information about the system: Which of the following describes the ongoing behavior?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# top -b -n 1 | head -9\ntop - 09:14:52 up 6 days,  1:07,  1 user,  load average: 1.42, 1.31, 1.20\nMiB Mem :  23890.5 total,    268.3 free,  23004.1 used,    618.1 buff/cache\nMiB Swap:   4096.0 total,   2892.0 free,   1204.0 used.    301.4 avail Mem\n\n    PID USER      PR  NI    VIRT    RES  SHR S  %CPU  %MEM     TIME+ COMMAND\n   2417 www-data  20   0   13.1g  11.7g  4180 S   3.0  49.0  88:12.44 webapp\n   2418 www-data  20   0   13.0g  11.7g  4172 S   2.7  48.9  87:55.10 webapp" }
      </code>
    </pre>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "The web application process is causing the load average to rise, resulting in the latency." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The web application process is running at a priority of 20, which is starving the kernel." }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "The web application process is consuming all system memory, causing the system to use swap space." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The web application process is consuming all cores, leading the system to run out of compute power." }</span></li>
    </ul>

    <div className="quiz__reveal">
      <p className="quiz__verdict" />

      <p className="quiz__answer">Answer: C</p>

      <p className="quiz__why">
        { "The two webapp processes are using nearly all of the 23 GiB of RAM (each ~11.7 GiB), leaving almost no free memory and forcing the system to swap (~1.2 GiB), which degrades performance." }
      </p>
    </div>
  </div>
</div>
