Practice Exam 100 Questions And
Correct Answers (Verified Answers) Plus
Rationales 2026 Q&A | Instant
Download Pdf
Covers: System Administration, Networking, SELinux, Storage, Security,
Automation (Ansible), and Troubleshooting
1. Which command is used to create a new logical volume in Linux?
A. lvscan
B. lvcreate
C. pvcreate
D. vgcreate
Rationale: lvcreate is used to create logical volumes within a volume
group; pvcreate initializes disks, and vgcreate creates volume groups.
,2. Which configuration file defines network interfaces in RHEL 9 using
NetworkManager?
A. /etc/sysconfig/network
B. /etc/network/interfaces
C. /etc/NetworkManager/system-connections/
D. /etc/netplan/config.yaml
Rationale: NetworkManager in RHEL stores interface profiles under
/etc/NetworkManager/system-connections/.
3. Which command enables SELinux enforcing mode immediately without
reboot?
A. setenforce 0
B. setenforce 1
C. semanage enforce on
D. systemctl enable selinux
Rationale: setenforce 1 switches SELinux to enforcing mode at runtime.
4. The command firewall-cmd --permanent --add-service=http does what?
A. Opens port 22
B. Permanently allows HTTP traffic
C. Closes HTTP service
D. Adds temporary rule only
,Rationale: The --permanent option makes the HTTP service rule persistent
across reboots.
5. Which systemd command displays service dependencies?
A. systemctl show
B. systemctl enable
C. systemctl list-dependencies
D. systemctl status
Rationale: systemctl list-dependencies <service> shows the units required
by or ordered before a given service.
6. Which file controls the default runlevel in RHEL 9?
A. /etc/inittab
B. /etc/systemd/system/default.target
C. /etc/systemd/default.target
D. /boot/grub2/grub.cfg
Rationale: The symbolic link /etc/systemd/system/default.target points to
the current default systemd target (runlevel equivalent).
7. To list SELinux file context mappings, use:
, A. semanage users -l
B. semanage fcontext -l
C. ls -Z
D. restorecon
Rationale: semanage fcontext -l lists file context rules stored in SELinux
policy.
8. Which command creates a new Ansible inventory file named
inventory.ini?
A. ansible-playbook inventory.ini
B. ansible -m setup
C. touch inventory.ini
D. ansible-inventory --create
Rationale: An inventory file is a text file that can be manually created;
touch initializes an empty one.
9. What does useradd -m john do?
A. Adds user john without a home
B. Adds user john and creates /home/john
C. Adds system user
D. Adds john with no shell
Rationale: The -m flag creates the user’s home directory.