> ## 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 11 Review Quiz

> 26 practice questions for Domain 11. Securing a Linux System.

26 practice questions covering **Securing a Linux System**. Read the question, take answers from the room, then reveal.

<div className="quiz" data-total="26">
  <div className="quiz__q" data-n="1" data-answer="D">
    <p className="quiz__stem">
      { "While hardening a system, an administrator runs a port scan with Nmap, which returned the following output: Which of the following is the best way to address this security issue?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# nmap -sS 192.168.10.25\nStarting Nmap 7.92 ( https://nmap.org )\nNmap scan report for 192.168.10.25\nHost is up (0.00042s latency).\nNot shown: 997 closed ports\nPORT   STATE SERVICE\n22/tcp open  ssh\n23/tcp open  telnet\n80/tcp open  http" }
      </code>
    </pre>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Configuring a firewall to block traffic on port 23 on the server" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Changing the systems administrator’s password to prevent unauthorized access" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Closing port 80 on the network switch to block traffic" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "Disabling and removing the Telnet service on the server" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Port 23/tcp indicates Telnet, which is insecure because it transmits data in plaintext. The best hardening approach is to disable and remove the Telnet service entirely, eliminating the vulnerability rather than just blocking it at the firewall. Secure alternatives like SSH should be used instead." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="2" data-answer="B">
    <p className="quiz__stem">
      { "Which of the following cryptographic functions ensures a hard drive is encrypted when not in use?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "GPG" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "LUKS" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "PKI certificates" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "OpenSSL" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "LUKS (Linux Unified Key Setup) provides full-disk encryption, ensuring that the data on a hard drive is protected and unreadable when the system is powered off or the drive is not in use." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="3" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following most accurately describes a webhook?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "An authentication method for web-server communication" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "An SNMP-based API for network device monitoring" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "A means to transmit sensitive information between systems" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "An HTTP-based callback function" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "A webhook is an HTTP-based callback that allows one system to send real-time data or notifications to another system when an event occurs." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="4" data-answer="C">
    <p className="quiz__stem">
      { "An administrator receives reports that a web service is not responding. The administrator reviews the following outputs: Which of the following is the reason the web service is not responding?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "The private key needs to be renamed from server.crt to server.key so the service can find it." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The private key does not match the public key, and both keys should be replaced." }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "The private key is not in the correct location and needs to be moved to the correct directory." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The private key has the incorrect permissions and should be changed to 0755 for the service." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The error log shows “cannot load certificate key /etc/pki/nginx/private/server.key”, but the listing reveals that server.key is located in /etc/pki/nginx/ rather than the expected /etc/pki/nginx/private/ directory. Since the file exists but not where Nginx is configured to look, moving it to the correct directory resolves the issue." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="5" data-answer="B">
    <p className="quiz__stem">
      { "A Linux administrator needs to securely erase the contents of a hard disk. Which of the following commands is the best for this task?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "sudo rm -rf /dev/sda1" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "sudo shred /dev/sda1" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "sudo parted rm /dev/sda1" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "sudo dd if=/dev/null of=/dev/sda1" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The shred command securely erases data by overwriting the specified device or file multiple times, making recovery nearly impossible. This is the best option for securely erasing a hard disk." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="6" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following utilities supports the automation of security compliance and vulnerability management?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "SELinux" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Nmap" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "AIDE" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "OpenSCAP" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "OpenSCAP is a framework that automates security compliance checking and vulnerability management by using standardized security content (SCAP). It helps administrators enforce policies and detect vulnerabilities." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="7" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following describes the method of consolidating system events to a single location?" }
    </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">{ "Log aggregation" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Health checks" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Webhooks" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Threshold monitoring" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Log aggregation is the process of collecting and consolidating logs from multiple sources into a single location, making it easier to analyze and manage system events." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="8" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following best describes journald?" }
    </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">{ "A system service that collects and stores logging data" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "A feature that creates crash dumps in case of kernel failure" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "A service responsible for keeping the filesystem journal" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "A service responsible for writing audit records to a disk" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "journald is part of systemd and is responsible for collecting, storing, and managing log data from various sources such as the kernel, services, and applications." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="9" data-answer="C">
    <p className="quiz__stem">
      { "Which of the following is a protocol for accessing distributed directory services containing a hierarchy of users, groups, machines, and organization units?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "SMB" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "TLS" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "LDAP" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "KRB-5" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "LDAP (Lightweight Directory Access Protocol) is specifically designed for accessing and maintaining distributed directory services that organize users, groups, computers, and organizational units in a hierarchical structure." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="10" data-answer="B">
    <p className="quiz__stem">
      { "A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels. Which of the following should the administrator do?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Create an automated process to retrieve logs from the server by demand." }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "Implement a centralized log aggregation solution." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Configure daily automatic backups of logs to remote storage." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Deploy log rotation procedures to manage the records." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "A centralized log aggregation solution (such as Elasticsearch, Graylog, or Splunk) provides reliable and secure management of logs across multiple servers. It consolidates OS and application logs, simplifies analysis, and improves monitoring and security compared to on- demand retrieval, backups, or simple log rotation." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="11" data-answer="C">
    <p className="quiz__stem">
      { "Which of the following passwords is the most complex?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "H3sa1dt01d" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "he$@ID$heTold" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "H3s@1dSh3t0|d" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "HeSaidShetold" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "This password is the most complex because it uses uppercase and lowercase letters, numbers, and multiple special characters, making it significantly harder to guess or brute-force compared to the others." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="12" data-answer="C">
    <p className="quiz__stem">
      { "A systems administrator is deploying a new secure web server but is having issues starting it. The administrator reviews the following outputs: Which of the following commands fixes this issue while following security best practices?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "setsebool -P http_port_t 1234" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "setenforce 0" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "semarage -a -t http_port_t -p tcp 1234" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "systemctl unmask httpd" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The web server is running with SELinux in enforcing mode, and Apache is denied permission to bind to TCP port 1234 because that port is not labeled for HTTP services. Adding port 1234 to the http_port_t SELinux type allows Apache to bind to the port while keeping SELinux enforcing, which follows security best practices." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="13" data-answer="B">
    <p className="quiz__stem">
      { "Which of the following utilities can securely delete a Linux directory from a filesystem and ensure it cannot be recovered?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "dd" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "shred" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "unlink" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "rm" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "This utility securely overwrites data on disk to prevent recovery, making it suitable for securely deleting data from a filesystem in accordance with security best practices." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="14" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following can be implemented with PAM to detect and block dictionary attacks?" }
    </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">{ "pam_tallу2" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "pam_limits" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "pam_unix" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "pam_idap" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "This PAM module tracks failed authentication attempts and can automatically lock accounts after a defined threshold is exceeded, effectively detecting and blocking dictionary and brute-force attacks." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="15" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following describes the primary purpose of monitoring thresholds?" }
    </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">{ "To generate alerts if limits are exceeded" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "To calculate the availability of a service" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "To perform health checks on devices" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "To restart a service automatically" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Monitoring thresholds define acceptable limits for metrics and are primarily used to trigger alerts when those limits are exceeded, allowing administrators to respond before issues escalate." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="16" data-answer="A">
    <p className="quiz__stem">
      { "Which of the following is the term used to describe reviewing processes and file operations on 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">{ "Auditing" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Tuning" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Journaling" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Logging" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Auditing refers to the systematic review and tracking of processes and file operations on a Linux system to ensure accountability, security, and compliance." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="17" data-answer="C">
    <p className="quiz__stem">
      { "Which of the following references is recognized and used for guiding the configuration of operating systems and applications to ensure compliance with security best practices on Linux servers?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "GDPR" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "ISO 27001" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "CIS Benchmarks" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "CVE" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "CIS Benchmarks provide detailed, consensus-based configuration guidelines specifically designed to harden operating systems and applications and ensure compliance with recognized security best practices." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="18" data-answer="A">
    <p className="quiz__stem">
      { "A systems administrator is helping to secure a new web application. During the tests, the administrator obtains the following output to validate the application: Which of the following explains the validation results?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "$ openssl s_client -connect app.internal.example.com:443\ndepth=0 CN = app.internal.example.com\nverify error:num=20:unable to get local issuer certificate\nverify return:1\n---\nSSL handshake has read 1509 bytes and written 393 bytes\nVerify return code: 21 (unable to verify the first certificate)" }
      </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 certificate was not signed by trusted authority, which was forcefully ignored during the tests." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The certificate was only issued for one month, is already expired, and needs to be replaced" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The certificate is a wildcard certificate that is highly insecure and should never be used." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The certificate uses an outdated algorithm and should be replaced with a more secure one." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The validation output indicates that the certificate chain could not be verified because the local system does not trust the issuing certificate authority, and the connection proceeded anyway by ignoring the verification failure during testing." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="19" data-answer="A">
    <p className="quiz__stem">
      { "The security manager at a company notifies a systems administrator of open vulnerabilities on the Linux system. The administrator receives the following information while logged in to the server: Which of the following is the most likely security concern?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "# dnf history list | head -5\nID     | Command line         | Date and time    | Action(s)      | Altered\n---------------------------------------------------------------------------\n    42 | update               | 2024-08-19 03:14 | Update         |    118\n    41 | install httpd        | 2024-07-02 11:48 | Install        |      6\n# date\nWed Sep 17 09:22:41 UTC 2025" }
      </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 server has not been updated in a year and should be patched." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "The system has httpd installed and needs to be removed." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The system is configured to use UTC time and should be set to EDT." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "The system has SELinux set to enforcing and needs to be disabled." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The package management history shows that the last system update occurred over a year ago, which strongly indicates that security patches and vulnerability fixes have not been applied, leaving the system exposed to known vulnerabilities." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="20" data-answer="A">
    <p className="quiz__stem">
      { "Users are having issues running applications. A systems administrator thinks it is an SELinux issue. Which of the following commands should the administrator use to determine whether SELinux is enabled on the 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">{ "getenforce" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "ls -lZ /" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "semanage -l" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "getsebool -l" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "This command reports the current SELinux mode, allowing the administrator to quickly determine whether SELinux is enabled and enforcing, permissive, or disabled." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="21" data-answer="C">
    <p className="quiz__stem">
      { "A systems administrator is having issues installing packages in a Linux system. The administrator receives the following outputs: Which of the following is the best command to fix this issue?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "dnf reinstall ca-certificates" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "touch /etc/pki/tls/certs/ca-bundle.crt" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "restorecon -R /etc/pki/ca-trust/extracted/pem" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "setenforce 0" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The CA bundle path is a symlink to a file under /etc/pki/ca-trust/extracted/pem, and update-ca- trust cannot create that generated bundle while SELinux is enforcing. Restoring the default SELinux contexts on that directory allows the bundle file to be created and fixes the certificate verification failures during package installs." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="22" data-answer="D">
    <p className="quiz__stem">
      { "An administrator wants to see all logs for the app.service systemd process. Which of the following commands should the administrator use to complete this task?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "cat /var/log/messages" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "systemctl status app.service" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "systemd-analyze unit-files app.service" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "journalctl -u app.service" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The journalctl command queries the systemd journal, and using -u app.service filters the output to logs generated by that specific systemd unit." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="23" data-answer="A">
    <p className="quiz__stem">
      { "The development team asks a Linux administrator to help diagnose a connectivity issue that is occurring with a newly developed software. The Linux administrator reviews the following output: Which of the following actions is a best way to resolve the issue?" }
    </p>

    <pre className="quiz__exhibit">
      <code>
        { "$ wget https://api.newapp.internal/health\n--2025-09-12 10:41:02--  https://api.newapp.internal/health\nResolving api.newapp.internal... 10.40.12.7\nConnecting to api.newapp.internal|10.40.12.7|:443... connected.\nERROR: cannot verify api.newapp.internal's certificate, issued by\n  \"CN=Internal Issuing CA\":\n  Unable to locally verify the issuer's authority.\nTo connect to api.newapp.internal insecurely, use `--no-check-certificate'." }
      </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">{ "Verify the remote certificate is trustworthy, and add it to the local trusted certificates repository." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Replace the remote certificate with a now self-signed CA and application certificate." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Replace the expired CA certificate to permanently resolve the problem." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "Add option no check certificate to wget command to permanently resolve the problem." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The error shows the certificate is not trusted because the issuer is unknown to the local system. The best fix is to verify that the remote certificate and issuing CA are legitimate, then add the trusted CA certificate to the system’s certificate trust store." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="24" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following can reduce the attack surface area in relation to Linux hardening?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Customizing the log-in banner" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Reducing the number of directories created" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Extending the SSH startup timeout period" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "Enforcing password strength and complexity" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Reducing the attack surface area in Linux hardening refers to limiting possible points of unauthorized access. According to the CompTIA Linux+ Official Study Guide (Exam XK0-006), enforcing strong password policies is a critical aspect of security hardening. This practice ensures that user accounts are protected by passwords that are difficult to guess or crack, thus minimizing the risk of successful brute-force attacks. Implementing password complexity requirements (such as minimum length, use of uppercase, lowercase, numbers, and special characters) directly addresses one of the primary vectors for unauthorized access." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="25" data-answer="D">
    <p className="quiz__stem">
      { "Due to some errors, a Linux administrator needs to permanently disable SELinux on one of the development machines for the time of testing. Which of the following should the administrator do to accomplish this task?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "Use \"setenforce disabled\" command and restart the system." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "Use \"setenforce 1\" command." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "Use \"systemctl disable selinux\" command." }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "Edit the \"/etc/selinux/config\" file and restart the system." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Changing SELINUX=enforcing to SELINUX=disabled in /etc/selinux/config and then rebooting is the only way to persistently disable SELinux; setenforce only takes effect until the next reboot." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="26" data-answer="A">
    <p className="quiz__stem">
      { "An administrator runs the following command while troubleshooting server authentication issues: Based on the command output, which of the following is the cause of the authentication issues?" }
    </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">{ "The LDAP server is not running on the server." }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "A firewall is blocking access to the LDAP server." }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "The secure LDAP server certificate is not trusted." }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "SSH packets are being dropped." }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The Nmap output shows port 636/tcp (LDAPS) as closed, which indicates that no service is currently listening on that port. This strongly suggests the LDAP server is not running." }
      </p>
    </div>
  </div>
</div>
