Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Linux Root & Sudo Practice Tests: 120 Questions Explained
New
104 students

Linux Root & Sudo Practice Tests: 120 Questions Explained

Practice tests for Linux admins: root access, sudoers rules, visudo, sudo hardening, auditing - every answer explained
Created byVitalii Shumylo
Last updated 11/2026
English

What you'll learn

  • Check your root and sudo security knowledge across three tests
  • Find your weak areas - each test covers one area of privileged access on Linux
  • Learn why each wrong option is wrong, not just which option is right
  • Compare RHEL and Ubuntu defaults for root, wheel, sudo and SSH
  • Practise under time pressure with a full mixed mock exam

Included in This Course

119 questions
  • Practice Test 1: Root Access, sudoers Rules and visudo40 questions
  • Practice Test 2: Sudo Hardening, Auditing and Troubleshooting39 questions
  • Practice Test 3: Full Mock Exam40 questions
  • Bonus Lecture: What to Learn Next

Description

Do you hand out root and sudo access on Linux servers - and want to be sure you do it safely? These practice tests check the knowledge an administrator needs to run least-privilege root access on RHEL and Ubuntu: su and sudo, root SSH logins, sudoers rules and drop-in files, visudo, environment and PATH hardening, shell escapes, timestamps, sudo logs and session recording, and troubleshooting a user who "can't use sudo".

You get 3 practice tests with 120 questions in total (40, 40, 40). Every question was checked twice before release: once by the author against the official documentation, and once by an independent reviewer who answered it blind - any disagreement was settled with a source.

What makes the explanations useful

Each answer tells you why the right option is right and why each wrong option is wrong. The wrong options are real features, commands and settings that are easy to pick by mistake - that is where most of the learning is.

How the tests are built

  • Practice Test 1: Root Access, sudoers Rules and visudo: su, su - and sudo -i, the locked root account, wheel and sudo groups, PermitRootLogin, service accounts, sudoers syntax, aliases, runas users, NOPASSWD, /etc/sudoers.d and visudo.
  • Practice Test 2: Sudo Hardening, Auditing and Troubleshooting: secure_path, env_reset and env_keep, shell escapes and wildcard pitfalls, sudo timestamps, sudo logs, I/O logging and sudoreplay, sudo -l, error messages, revoking access and deploying sudoers files safely.
  • Practice Test 3: Full Mock Exam: a mixed exam across both areas - take it last, in one sitting.

Questions use single-answer and multiple-answer formats; the number of answers to pick is always stated. Suggested time: 60 minutes per test.

Versions: Red Hat Enterprise Linux 9 and RHEL 10, Ubuntu 22.04 LTS and 24.04 LTS, sudo 1.9.x, OpenSSH 9.x (sshd_config and sshd_config.d drop-ins), systemd journald and rsyslog, as of October 2026.

Please note: these are original practice questions written by an instructor. This course is not affiliated with or endorsed by Red Hat or Canonical; Red Hat and Red Hat Enterprise Linux are Red Hat trademarks, Ubuntu is a Canonical trademark.

Who this course is for:

  • Linux administrators who grant and review root and sudo access
  • Security and DevOps engineers hardening Linux servers for least privilege
  • Students preparing for RHCSA, LPIC or Linux security work who want to test what they learned