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

> 7 practice questions for Domain 6. Deploying Software.

7 practice questions covering **Deploying Software**. Read the question, take answers from the room, then reveal.

<div className="quiz" data-total="7">
  <div className="quiz__q" data-n="1" data-answer="D">
    <p className="quiz__stem">
      { "An administrator attempts to install updates on a Linux system but receives error messages regarding a specific repository. Which of the following commands should the administrator use to verify that the repository is installed and enabled?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "yum repo-pkgs" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "yum list installed repos" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "yum reposync available" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "yum repolist all" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The yum repolist all command lists all configured repositories along with their status (enabled or disabled), allowing the administrator to verify if the problematic repository is installed and active." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="2" data-answer="A">
    <p className="quiz__stem">
      { "Following the completion of monthly server patching, a Linux administrator receives reports that a critical application is not functioning. Which of the following commands should help the administrator determine which packages were installed?" }
    </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">{ "dnf history" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "dnf list" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "dnf info" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "dnf search" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The dnf history command shows a log of past package operations (install, update, remove), allowing the administrator to review which packages were installed or updated during the patching process." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="3" data-answer="D">
    <p className="quiz__stem">
      { "A systems technician needs to install a third-party software package. Which of the following commands would allow the technician to download this software package from a remote server?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "netstat" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "nc" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "telnet" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "wget" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "wget is specifically designed to download files from remote servers using HTTP, HTTPS, or FTP protocols, making it the appropriate command for retrieving software packages." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="4" data-answer="C">
    <p className="quiz__stem">
      { "Due to application compatibility issues, the Python 3 OpenSSL library should not be upgraded. Which of the following commands should the systems administrator use to ensure the package stays at the current version?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "dpkg --hold python3-openssl" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "apt set-selections python3-openssl" }</span></li>
      <li className="quiz__choice" data-letter="C" data-correct="1"><span className="quiz__letter">C</span><span className="quiz__text">{ "apt-mark hold python3-opensal" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "echo \"python3-openssl \u003e hold\" |apt set-selections" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "This command places the specified package on hold, preventing it from being upgraded during system updates while allowing other packages to be updated normally." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="5" data-answer="A">
    <p className="quiz__stem">
      { "A systems administrator is patching servers that are vulnerable to the regreSSHion bug. Which of the following commands allows the administrator to patch the servers?" }
    </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">{ "dnf --advisory-regreSSHion upgrade openssh" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "dnf --enablerepo=security-common update openssh" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "dnf --enable=security-common install openssh" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "dnf check-update openssh" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "Using the advisory option with the upgrade command applies security patches associated with a specific vulnerability advisory, ensuring the OpenSSH package is updated to remediate the regreSSHion flaw." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="6" data-answer="B">
    <p className="quiz__stem">
      { "A systems administrator reviews the package management history and sees the following entries: 46 install httpd Install 9 47 update -y Upgrade 44 Which of the following commands should the administrator use to undo the installation of the httpd package from transaction 46?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "yum remove httpd" }</span></li>
      <li className="quiz__choice" data-letter="B" data-correct="1"><span className="quiz__letter">B</span><span className="quiz__text">{ "yum history undo 46" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "yum rollback 46" }</span></li>
      <li className="quiz__choice" data-letter="D"><span className="quiz__letter">D</span><span className="quiz__text">{ "yum erase 46" }</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. yum history undo 46 because it directly reverses the specific transaction identified in the YUM history log. In Red Hat-based Linux distributions, the yum history feature allows administrators to view, manage, and undo past package operations. Each transaction is assigned a unique ID, which can be used to reverse changes accurately. In this scenario, transaction 46 corresponds to the installation of the httpd package. Using the command yum history undo 46 will attempt to revert that exact transaction by removing the installed package and restoring the system to its previous state before that transaction occurred. This method is precise and preferred in environments where maintaining package consistency is critical." }
      </p>
    </div>
  </div>

  <div className="quiz__q" data-n="7" data-answer="D">
    <p className="quiz__stem">
      { "Which of the following commands is used to check and prepare software for compilation?" }
    </p>

    <ul className="quiz__choices">
      <li className="quiz__choice" data-letter="A"><span className="quiz__letter">A</span><span className="quiz__text">{ "make" }</span></li>
      <li className="quiz__choice" data-letter="B"><span className="quiz__letter">B</span><span className="quiz__text">{ "./bash.sh" }</span></li>
      <li className="quiz__choice" data-letter="C"><span className="quiz__letter">C</span><span className="quiz__text">{ "install" }</span></li>
      <li className="quiz__choice" data-letter="D" data-correct="1"><span className="quiz__letter">D</span><span className="quiz__text">{ "./configure" }</span></li>
    </ul>

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

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

      <p className="quiz__why">
        { "The ./configure script probes the system for required tools and libraries, verifies dependencies, and generates tailored Makefiles. After running it, you use make to compile the software." }
      </p>
    </div>
  </div>
</div>
