Red Hat Certified Sys Admin Ex200 Practice Test - Set 1

Test your knowledge with this Red Hat Certified Sys Admin Ex200 mock exam. Get real-world IT questions and prepare for certification success.

EX200: Red Hat Certified System Administrator (RHCSA) - Exam Information

Exam Information

Exam Code

Red Hat Certified Sys Admin Ex200

Exam Title

EX200: Red Hat Certified System Administrator (RHCSA)

Vendor

Red Hat

Difficulty

Intermediate

Duration

2.5 Hours

Question Format

Multiple Choice

Last Updated

February 23, 2025

The EX200 exam tests the skills and knowledge required to be a successful Red Hat Certified System Administrator (RHCSA).

Practice Test

Shop Best EX200: Red Hat Certified System Administrator (RHCSA) Resources Worldwide Amazon

1. Which command is used to create a new user in Linux?

adduser
usercreate
newuser
createuser

2. Which file stores user account information in Linux?

/etc/passwd
/etc/shadow
/etc/group
/etc/users

3. Which command is used to change file ownership in Linux?

chown
chmod
chgrp
usermod

4. What is the default firewall service in RHEL 8?

firewalld
iptables
ufw
nftables

5. Which command displays the disk usage of a directory in Linux?

du
df
lsblk
fdisk

6. Which file controls sudo privileges in Linux?

/etc/sudoers
/etc/privileges
/etc/sudoconfig
/etc/permissions

7. Which command is used to list open network connections?

netstat
ps
top
ifconfig

8. Which command is used to extract a tar.gz file?

tar -xzf file.tar.gz
tar -czf file.tar.gz
unzip file.tar.gz
extract file.tar.gz

9. What does the "ls -l" command display?

A detailed list of files
Only hidden files
Only directories
File sizes only

10. Which command is used to check the current runlevel?

runlevel
uptime
ps -aux
systemctl status

11. Which command is used to reboot a Linux system immediately?

reboot
shutdown -r now
halt
init 6

12. Which command is used to display the current working directory?

pwd
cwd
dir
ls

13. Which command shows the last system boot time?

who -b
uptime
last
dmesg | grep boot

14. Which command is used to search for a specific string in a file?

grep
find
locate
search

15. Which command is used to change the hostname in Linux?

hostnamectl set-hostname
hostname
sysctl hostname
hostconfig

16. Which command is used to remove a directory in Linux?

rmdir
rm -rf
del
remove

17. Which command displays memory usage in Linux?

free
df
memstat
top

18. Which command lists all running processes?

ps aux
top
jobs
proc

19. Which file stores system logs in Linux?

/var/log/syslog
/etc/log
/log/system
/log/messages

20. Which command is used to schedule a cron job?

crontab -e
cron
taskadd
jobs -s

21. Which command is used to check disk space usage?

df -h
du -sh
lsblk
fdisk -l

22. Which command is used to kill a running process by name?

pkill
kill
terminate
stop

23. Which command is used to display active network interfaces?

ip a
ifconfig
netstat -i
route -n

24. Which command updates package repositories in RHEL?

dnf update
yum update
apt-get update
pkg update

25. Which command changes file permissions in Linux?

chmod
chown
chgrp
setperm

26. Create a new user named "developer" with UID 1500 and home directory /home/dev

useradd -u 1500 -d /home/dev developer
adduser -u 1500 -h /home/dev developer
usermod -u 1500 -d /home/dev developer
newuser developer -u 1500 -h /home/dev

27. Set the password for user "developer" to "RedHat123"

echo "RedHat123" | passwd --stdin developer
passwd developer <<< "RedHat123"
chpasswd developer:RedHat123
setpass developer RedHat123

28. Create a directory /data/share with permissions 775, owned by group "developers"

mkdir -p /data/share && chmod 775 /data/share && chgrp developers /data/share
install -d -m775 -g developers /data/share
newdir /data/share -m775 -g developers
mkfolder /data/share -perm 775 -group developers

29. Mount /dev/sdb1 persistently to /mnt/data using XFS filesystem

Add "UUID=$(blkid -s UUID -o value /dev/sdb1) /mnt/data xfs defaults 0 0" to /etc/fstab then mount -a
mount /dev/sdb1 /mnt/data -t xfs -o defaults && echo "/dev/sdb1 /mnt/data xfs defaults 0 0" >> /etc/fstab
mkfs.xfs /dev/sdb1 && mount /dev/sdb1 /mnt/data
format /dev/sdb1 xfs && automount /mnt/data

30. Create a cron job that runs /usr/local/bin/backup.sh daily at 2:30 AM

crontab -e then add "30 2 * * * /usr/local/bin/backup.sh"
echo "30 2 * * * /usr/local/bin/backup.sh" >> /etc/crontab
addcron "30 2 * * * /usr/local/bin/backup.sh"
schedule -t daily -h 2 -m 30 /usr/local/bin/backup.sh

31. Configure the system to automatically mount /dev/cdrom at /media/cdrom

Add "/dev/cdrom /media/cdrom iso9660 defaults,ro,user,noauto 0 0" to /etc/fstab
mount /dev/cdrom /media/cdrom && chmod 755 /media/cdrom
automount --device /dev/cdrom --target /media/cdrom
echo "cd /dev/cdrom /media/cdrom" >> /etc/autofs.conf

32. Find all files in /var/log modified in the last 7 days and save the list to /root/logfiles.txt

find /var/log -mtime -7 > /root/logfiles.txt
ls -l /var/log/* | grep "7 days" > /root/logfiles.txt
locate /var/log -d 7 > /root/logfiles.txt
search /var/log -modified +7d -out /root/logfiles.txt

33. Configure the system to use 192.168.1.100 as its DNS server

Add "nameserver 192.168.1.100" to /etc/resolv.conf
echo "DNS=192.168.1.100" >> /etc/sysconfig/network
netconfig set dns 192.168.1.100
resolvectl add 192.168.1.100

34. Create a symbolic link /usr/bin/py3 that points to /usr/bin/python3

ln -s /usr/bin/python3 /usr/bin/py3
symlink /usr/bin/python3 /usr/bin/py3
link -s /usr/bin/python3 /usr/bin/py3
mklink /usr/bin/py3 /usr/bin/python3

35. Set the default runlevel to multi-user mode (no GUI)

systemctl set-default multi-user.target
init 3
telinit 3
change-runlevel 3

36. Configure the system to synchronize time with time.server.example.com

Add "server time.server.example.com" to /etc/chrony.conf and restart chronyd
ntpdate time.server.example.com
timedatectl set-ntp time.server.example.com
echo "time.server.example.com" > /etc/ntp.conf

37. Create a 1GB swap file at /swapfile and activate it

dd if=/dev/zero of=/swapfile bs=1M count=1024 && mkswap /swapfile && swapon /swapfile
fallocate -l 1G /swapfile && swapon /swapfile
mkfile 1G /swapfile && swapctl -a /swapfile
createswap /swapfile 1G

38. Configure the system to automatically resize /home to use all available space on boot

Add "x-systemd.growfs" to /etc/fstab for /home entry
echo "growpart /home" >> /etc/rc.local
install growfsd service for /home
autogrowfs enable /home

39. Find all files owned by user "olduser" and change ownership to "newuser"

find / -user olduser -exec chown newuser {} \;
chown -R newuser:newuser /
for file in $(ls -l | grep olduser); do chown newuser $file; done
find / -owner olduser | xargs chown newuser

40. Configure the system to allow SSH access only from 192.168.1.0/24

Add "AllowUsers *@192.168.1.*" to /etc/ssh/sshd_config and restart sshd
iptables -A INPUT -p tcp --dport 22 -s 192.168.1.0/24 -j ACCEPT
firewall-cmd --add-rich-rule="rule family="ipv4" source address="192.168.1.0/24" service name="ssh" accept"
echo "192.168.1.0/24" > /etc/ssh/allowed_hosts

41. Create a compressed archive of /etc directory named etc_backup.tar.gz

tar -czf etc_backup.tar.gz /etc
zip -r etc_backup.tar.gz /etc
gzip /etc > etc_backup.tar.gz
archive create etc_backup.tar.gz /etc

42. Configure the system to automatically start Apache web server at boot

systemctl enable httpd
chkconfig httpd on
service httpd enable
initctl enable httpd

43. Find all files larger than 100MB in /var and save the list to /root/largefiles.txt

find /var -size +100M > /root/largefiles.txt
du -h /var | grep "100M" > /root/largefiles.txt
ls -lh /var | awk "{if ($5 > 100M) print}" > /root/largefiles.txt
search /var -size +100MB -out /root/largefiles.txt

The Red Hat Certified Sys Admin Ex200 certification is a globally recognized credential for IT professionals. This practice test helps you prepare by covering key topics like hardware, networking, troubleshooting, and security.

Want more practice? Check out our other mock exams:

© 2025 ITCertRocket.com - Hands-On IT Lab Exercises & Certification Prep. All rights reserved.