EXAMINATION QUESTIONS AND
CORRECT ANSWERS (VERIFIED
ANSWERS) PLUS RATIONALES 2026 Q&A
| INSTANT DOWNLOAD PDF
Question 1
Which command is used to display all active systemd services?
A. systemctl list-units --type=service
B. service --status-all
C. chkconfig --list
D. systemctl show services
Correct Answer: A
Rationale: systemctl list-units --type=service displays all currently active and
loaded service units in systemd. It is the modern replacement for legacy SysV
tools and provides real-time service status visibility.
Question 2
Which file controls persistent network interface configuration in RHEL 8/9 using
NetworkManager?
A. /etc/resolv.conf
B. /etc/sysconfig/network-scripts/ifcfg-*
C. /etc/NetworkManager/system-connections/
D. /etc/hosts
,Correct Answer: C
Rationale: NetworkManager stores persistent connection profiles in
/etc/NetworkManager/system-connections/. These files define IP settings,
gateways, and DNS in modern RHEL systems.
Question 3
Which SELinux mode prevents policy violations but only logs them?
A. Enforcing
B. Permissive
C. Disabled
D. Logging
Correct Answer: B
Rationale: Permissive mode allows actions that would normally be blocked but
logs them for auditing. It is commonly used for troubleshooting SELinux issues.
Question 4
Which command is used to permanently enable a service at boot?
A. systemctl start service
B. systemctl enable service
C. systemctl activate service
D. chkconfig service on
Correct Answer: B
Rationale: systemctl enable ensures a service starts automatically during boot
by creating symbolic links in systemd targets.
Question 5
What does the command firewall-cmd --permanent --add-service=http do?
,A. Starts HTTP service
B. Opens HTTP port permanently
C. Installs Apache
D. Restarts firewall
Correct Answer: B
Rationale: This command permanently allows HTTP traffic through the firewall
by adding the service to firewall rules.
Question 6
Which file is used for DNS resolution configuration?
A. /etc/nsswitch.conf
B. /etc/resolv.conf
C. /etc/hosts.allow
D. /etc/dns.conf
Correct Answer: B
Rationale: /etc/resolv.conf defines DNS servers used for hostname resolution. It
may be dynamically managed by NetworkManager.
Question 7
Which command displays disk usage in human-readable format?
A. df -h
B. du -a
C. lsblk -f
D. fdisk -l
Correct Answer: A
Rationale: df -h shows filesystem disk usage in human-readable format, making
it easier to interpret storage capacity.
, Question 8
Which command creates a new logical volume?
A. lvcreate
B. vgcreate
C. pvcreate
D. mkfs
Correct Answer: A
Rationale: lvcreate is used in LVM to create logical volumes from volume groups
after physical volumes are configured.
Question 9
What is the default runlevel equivalent in systemd for multi-user mode?
A. rescue.target
B. graphical.target
C. multi-user.target
D. emergency.target
Correct Answer: C
Rationale: multi-user.target replaces traditional runlevel 3 and provides a non-
graphical multi-user environment.
Question 10
Which command is used to check SELinux status?
A. sestatus
B. selinux --status
C. getenforce
D. Both A and C