RedHat EX200 Actual Free Exam Questions & Community Discussion

  • Exam Code/Number: EX200
  • Exam Name/Title: Red Hat Certified System Administrator - RHCSA
  • Certification Provider: RedHat
  • Corresponding Certification: RHCSA
  • Exam Questions: 69
  • Updated On: Aug 01, 2026
Find String
Find all lines containing the string "ng" in the file /usr/share/xml/iso-codes/iso_639_3.xml.
Save copies of all these lines to /root/list in the root directory.
/root/list must not contain empty lines, and all lines must be exact copies of the original lines in /usr/share/xml/iso-codes/iso_639_3.xml.
Correct Answer:
Solution:
[root@node1 ~]# grep ng /usr/share/xml/iso-codes/iso_639_3.xml
[root@node1 ~]# grep ng /usr/share/xml/iso-codes/iso_639_3.xml > /root/list
# Verification
[root@node1 ~]# cat /root/list
Find Files
Find all files belonging to the user "jacques" and move them to the directory /root/findfiles under the root directory.
Correct Answer:
Solution:
[root@node1 ~]# mkdir /root/findfiles
[root@node1 ~]# find / -user jacques
[root@node1 ~]# find / -user jacques -exec cp -a {} /root/findfiles \;
# Verification
[root@node1 ~]# ll /root/findfiles/
Extend logical volume lvbackup by 500 MiB and grow the XFS filesystem online.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
lvextend -L +500M /dev/vgdata/lvbackup
xfs_growfs /backup
df -h /backup
Detailed Explanation:
* lvextend increases the LV size.
* xfs_growfs expands the XFS filesystem while mounted.
* This is a classic RHCSA storage task and aligns with RHEL 10 LVM/XFS workflows. ( Red Hat
Documentation )
Adjust Logical Volume Size
Adjust the size of the logical volume "vo" and its filesystem to 300 MiB, ensuring that the filesystem content remains unchanged.
Note: Partition sizes rarely match the requested size exactly, so a range of 290 MiB to 310 MiB is acceptable.
For ext4 filesystems, use resize2fs to take effect immediately; for xfs filesystems, use xfs_growfs to take effect immediately.
Correct Answer:
Solution:
# Scan logical volumes
[root@node2 ~]# lvscan
# Extend the logical volume. With -rL, the filesystem space is adjusted immediately after extending the volume.
[root@node2 ~]# lvextend -rL 300M /dev/myvol/vo
# Check the changes
[root@node2 ~]# lsblk
[root@node2 ~]# lvs
# Verification
[root@node2 ~]# df -h
Configure Apache to serve content from /webdata on port 8080, allow the port in SELinux, and open it in the firewall.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
dnf install -y httpd policycoreutils-python-utils
mkdir -p /webdata
echo "RHEL10 Web Server" > /webdata/index.html
sed -i 's/^Listen 80/Listen 8080/' /etc/httpd/conf/httpd.conf
semanage port -a -t http_port_t -p tcp 8080
firewall-cmd --permanent --add-port=8080/tcp
firewall-cmd --reload
systemctl enable --now httpd
systemctl restart httpd
ss -tulpn | grep 8080
Detailed Explanation:
* Apache defaults to port 80, so Listen 8080 changes the service port.
* SELinux must allow Apache to bind to 8080, which is done with semanage port.
* firewall-cmd opens the port externally.
* RHEL 10 documents firewalld as the standard firewall management interface and SELinux port
labeling for confined services. ( Red Hat Documentation )
Create a systemd service named backup-now.service that runs /usr/local/bin/backup-now.sh.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
Create the script:
mkdir -p /usr/local/bin
cat > /usr/local/bin/backup-now.sh < < 'EOF'
#!/bin/bash
tar -czf /root/etc-$(date +%F).tar.gz /etc
EOF
chmod +x /usr/local/bin/backup-now.sh
Create the unit file:
cat > /etc/systemd/system/backup-now.service < < 'EOF'
[Unit]
Description=Run manual etc backup
[Service]
Type=oneshot
ExecStart=/usr/local/bin/backup-now.sh
[Install]
WantedBy=multi-user.target
EOF
Reload and test:
systemctl daemon-reload
systemctl start backup-now.service
systemctl status backup-now.service
Detailed Explanation:
* Type=oneshot is correct for a task that runs and exits.
* ExecStart points to the script.
* systemctl daemon-reload is required after adding a new unit file.
* RHEL 10 systemd documentation covers manual unit creation and management. ( Red Hat
Documentation )
Create a systemd timer that runs backup-now.service every day at 02:00.
Correct Answer:
See the solution below in Explanation.
Explanation:
Solution:
Create timer unit:
cat > /etc/systemd/system/backup-now.timer < < 'EOF'
[Unit]
Description=Daily backup timer
[Timer]
OnCalendar=*-*-* 02:00:00
Persistent=true
[Install]
WantedBy=timers.target
EOF
Enable it:
systemctl daemon-reload
systemctl enable --now backup-now.timer
systemctl list-timers --all | grep backup-now
Detailed Explanation:
* OnCalendar=*-*-* 02:00:00 means daily at 02:00.
* Persistent=true runs missed jobs after boot if the system was off.
* timers.target is the normal target for timer units.
* RHEL 10 documentation includes systemd timer units as a standard scheduling mechanism. ( Red Hat
Documentation )
0
0
0
10