Questions & answers (free, no sign-in needed)
- View
10 beginner questions on the EX200 (RHEL 10) objectives, one per objective group: essential tools, managing software, shell scripts, operating running systems, local storage, file systems, deploying and maintaining systems, basic networking, users and groups, and security (SELinux). The real exam is hands-on; these questions check that you know the right command for each task.
Ready to test yourself? Take the graded Beginner test (free; sign in with Google, one click) to get your score.
An administrator wants to add the output of
df -hto the end of/root/report.txtwithout overwriting what is already in the file. Which operator should be used?- A.
df -h > /root/report.txt - B.
df -h >> /root/report.txt✔ correct - C.
df -h < /root/report.txt - D.
df -h | /root/report.txt
Answer: B.
>>appends standard output to the end of the file. A single>truncates the file first,<redirects input, and a pipe sends output to another command, not to a file.Source: man7.org/linux/man-pages/man1/bash.1.html · Domain: Understand and use essential tools
- A.
On RHEL 10, where do you place a
.repofile so that DNF can use a custom software repository?- A.
/var/lib/rpm/ - B.
/etc/sysconfig/network-scripts/ - C.
/etc/yum.repos.d/✔ correct - D.
/usr/share/doc/dnf/
Answer: C. DNF reads repository definitions from
.repofiles in/etc/yum.repos.d/(or from/etc/dnf/dnf.conf).dnf config-manager --add-repocreates such a file for you;/var/lib/rpmholds the RPM database.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/managing_softw · Domain: Manage software
- A.
In a Bash script,
$1holds the first argument passed to the script on the command line.- A. True ✔ correct
- B. False
Answer: A. True. Positional parameters
$1,$2and so on hold the script's arguments in order,$#holds how many there are, and$0is the script name itself.Source: man7.org/linux/man-pages/man1/bash.1.html · Domain: Create simple shell scripts
Which setting makes
systemd-journaldstore the journal on disk so that logs survive a reboot?- A.
Storage=volatilein/etc/systemd/journald.conf - B.
Storage=nonein/etc/systemd/journald.conf - C.
ForwardToConsole=yesin/etc/systemd/journald.conf - D.
Storage=persistentin/etc/systemd/journald.conf✔ correct
Answer: D. With
Storage=persistent, journald writes to/var/log/journal(creating it if needed), so logs are kept across reboots.volatilekeeps logs only in memory under/run/log/journal, andnonedrops them.Source: www.freedesktop.org/software/systemd/man/latest/journald.conf.html · Domain: Operate running systems
- A.
An administrator must initialize the new disk
/dev/vdbfor LVM and create a volume group namedvgdataon it. Which two commands do this? (Select TWO)- A.
pvcreate /dev/vdb✔ correct - B.
vgcreate vgdata /dev/vdb✔ correct - C.
lvextend -L +1G /dev/vgdata - D.
xfs_growfs /dev/vdb - E.
mkfs.vfat /dev/vdb
Answer: A, B.
pvcreateinitializes the disk as an LVM physical volume andvgcreatecreates the volume group from it.lvextendgrows an existing logical volume,xfs_growfsgrows a mounted XFS file system, andmkfs.vfatformats the disk.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html-single/configu · Domain: Configure local storage
- A.
The logical volume
/dev/vgdata/lvdataholds a mounted XFS file system that is almost full. Which single command adds 2 GiB to the volume and resizes the file system too?- A.
lvextend --size +2G --resizefs vgdata/lvdata✔ correct - B.
lvcreate -L 2G -n lvdata vgdata - C.
vgextend vgdata /dev/vgdata/lvdata - D.
mkfs.xfs -f -L data /dev/vgdata/lvdata
Answer: A.
lvextend --size +2Ggrows the logical volume and--resizefs(short form-r) also grows the file system on it.mkfs.xfs -fwould create a new, empty file system and destroy the data;lvcreatemakes a new volume.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/configuring_an · Domain: Create and configure file systems
- A.
A server should boot into a text-mode multi-user system, without the graphical desktop, on every boot. Which command sets this?
- A.
systemctl isolate multi-user.target - B.
systemctl enable multi-user.target --now - C.
systemctl set-default multi-user.target✔ correct - D.
systemctl start graphical.target
Answer: C.
systemctl set-default multi-user.targetchanges thedefault.targetlink, so the new target is used from the next boot on.systemctl isolateswitches targets only for the current session.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/using_systemd_ · Domain: Deploy, configure, and maintain systems
- A.
Running
firewall-cmd --add-service=httpwithout--permanentchanges only the runtime configuration, so the rule is lost when firewalld is reloaded or the system reboots.- A. True ✔ correct
- B. False
Answer: A. True. firewalld keeps separate runtime and permanent configurations, and the runtime one is rebuilt from the permanent one on reload or restart. Add
--permanent(then reload) or runfirewall-cmd --runtime-to-permanent.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/configuring_fi · Domain: Manage basic networking
The user
aliceis already in several supplementary groups. An administrator must add her to thewheelgroup without removing her other memberships. Which command does this?- A.
usermod -G wheel alice - B.
usermod -aG wheel alice✔ correct - C.
groupadd wheel alice - D.
useradd -G wheel alice
Answer: B.
-a(append) with-Gadds the group to her current supplementary groups.-Galone replaces the whole list and removes any group not named.useraddcreates new accounts.Source: man7.org/linux/man-pages/man8/usermod.8.html · Domain: Manage users and groups
- A.
An administrator moved web files from a home directory into
/var/www/html. Apache now gets permission denied, andls -Zshows the files labeleduser_home_t. Which command restores the default SELinux contexts?- A.
setenforce 0 - B.
chmod -R 777 /var/www/html - C.
chcon -R -t user_home_t /var/www/html - D.
restorecon -Rv /var/www/html✔ correct
Answer: D.
restorecon -Rresets files to the default contexts in the SELinux policy, herehttpd_sys_content_t.setenforce 0only switches to permissive mode,chconhere would re-apply the wrong type, andchmoddoes not change labels.Source: docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html-single/using_s · Domain: Manage security
- A.
Original practice questions written by xOps School (DevOpsSchool Private Limited) from the public Red Hat exam objectives (EX200 objectives, based on Red Hat Enterprise Linux 10), checked 2026-10-25. They are not actual exam questions. xOps School is not affiliated with or endorsed by Red Hat; exam names are trademarks of their owners. Official exam page: www.redhat.com/en/services/training/ex200-red-hat-certified-system-adm.