50 rhcsa practice exam Practice Questions: Question Bank 2025
Build your exam confidence with our curated bank of 50 practice questions for the Red Hat Certified System Administrator (RHCSA) certification. Each question includes detailed explanations to help you understand the concepts deeply.
Question Banks Available
Current Selection
Extended Practice
Extended Practice
Why Use Our 50 Question Bank?
Strategically designed questions to maximize your exam preparation
50 Questions
A comprehensive set of practice questions covering key exam topics
All Domains Covered
Questions distributed across all exam objectives and domains
Mixed Difficulty
Easy, medium, and hard questions to test all skill levels
Detailed Explanations
Learn from comprehensive explanations for each answer
Practice Questions
50 practice questions for Red Hat Certified System Administrator (RHCSA)
You need to find all files in the /var directory that are larger than 100MB and have been modified in the last 7 days. Which command accomplishes this task?
A system administrator needs to create a script that runs daily to backup log files. The script should only execute if the /backup directory exists. Which shell script construct is most appropriate?
You need to configure a service called 'webapp' to start automatically at boot and start it immediately. Which command sequence achieves both objectives?
An administrator needs to create a new 2GB partition on /dev/sdb and format it with the XFS filesystem. The partition should be the fourth primary partition. Which sequence of commands is correct?
You need to configure a logical volume named 'datalv' with 5GB of space from volume group 'datavg', format it with ext4, and mount it persistently at /data. Which series of commands accomplishes this?
A server is experiencing high load. You run 'top' and notice a process consuming 98% CPU. The process is unresponsive to SIGTERM. What is the most appropriate next step to terminate this process with PID 3847?
You need to create a cron job that runs a backup script located at /usr/local/bin/backup.sh every day at 2:30 AM as the root user. Which crontab entry is correct?
An administrator needs to create a shell script that processes all .log files in /var/log and compresses files older than 30 days. Which script structure is most appropriate?
A system has a volume group 'vgstorage' with 50GB free space. You need to extend the logical volume 'lvdata' by 20GB and resize the ext4 filesystem on it without unmounting. The LV is currently mounted at /mnt/data. What is the complete procedure?
A production server needs a new user 'appuser' with UID 5001, primary group 'appadmin' (GID 6001), home directory at /opt/appuser, shell /bin/bash, and password expiration set to 90 days. Which command sequence correctly creates this user with all requirements?
You need to create a shell script that automatically backs up all files in /home/user/documents that were modified in the last 7 days to /backup/weekly. Which command should be included in your script?
A server needs to mount an NFS share from 192.168.1.100:/exports/data to /mnt/nfsdata automatically at boot with read-only access. What is the correct entry to add to /etc/fstab?
You need to create a new logical volume named 'applv' with a size of 2GB from the volume group 'vgdata' and format it with xfs filesystem. Which sequence of commands accomplishes this?
Which command displays the current runlevel and the previous runlevel on a systemd-based RHEL system?
You need to configure a system to automatically execute a script at 2:30 AM every day. The script is located at /usr/local/bin/cleanup.sh. Which cron entry is correct?
A partition /dev/sdb1 is formatted with ext4 and mounted at /data. Users report that the filesystem shows as full, but you suspect deleted files are still holding space. Which command will help identify processes holding deleted files open?
You need to create a user account 'dbadmin' with UID 1500, primary group 'database' (GID 1500), home directory /home/dbadmin, and shell /bin/bash. Which command accomplishes this?
A system has a VG named 'vgapp' with 10GB free space. You need to extend the logical volume 'lvdata' by 3GB and resize its ext4 filesystem in one operation. Which command achieves this?
You need to configure SELinux to allow httpd to connect to network databases while keeping SELinux in enforcing mode. Which command accomplishes this?
A critical service fails to start after a system reboot. You need to examine detailed service startup logs including all stdout and stderr from the service initialization. Which command provides the most comprehensive service log information?
You need to create a bash script that checks if a directory exists and creates it if it doesn't. Which script accomplishes this correctly?
A system administrator needs to configure a new 100GB disk (/dev/sdc) with a GPT partition table and create a single partition using all available space. What is the correct sequence of commands?
You need to schedule a script to run at 2:30 AM every Tuesday. Which cron entry is correct?
A file system on /dev/vdb1 mounted at /data is showing errors. You need to check and repair it. What is the correct procedure?
You need to create a logical volume named 'datalv' with a size of 5GB from volume group 'vgdata' and format it with XFS filesystem. Which command sequence is correct?
A bash script needs to iterate through all .log files in /var/log and compress them. Which script construct is most appropriate?
You need to configure a system to automatically mount an NFS share at boot. The NFS server is nfs.example.com, the export is /exports/data, and it should mount at /mnt/nfsdata. Which /etc/fstab entry is correct?
A system is running out of disk space on the root filesystem. After investigation, you find that journal files in /var/log/journal are consuming 3GB. How do you configure systemd-journald to limit journal size to 500MB?
You are configuring a new RHEL system and need to set the hostname to 'webserver.example.com'. Which command permanently sets this hostname across reboots?
A logical volume /dev/vgapp/applv is mounted at /app and currently 10GB in size. The volume group has 20GB free space. You need to extend the logical volume to 25GB and grow the XFS filesystem. What is the correct command sequence?
You need to create a simple bash script that backs up all .conf files from /etc to /backup directory and runs daily at 2 AM. Which approach correctly accomplishes this task?
You want to find all files larger than 100MB in the /var directory and save the list to a file. Which command accomplishes this correctly?
A system administrator needs to configure a 2GB swap partition on /dev/sdb2. Which sequence of commands is correct?
You need to create a logical volume named 'lv_data' with 5GB size from volume group 'vg_app'. Which command is correct?
A server is experiencing high load and you need to identify which process is consuming the most CPU. The system has many processes running. What is the most efficient approach?
You need to configure a file system to automatically mount at boot with read-only access and prevent execution of binaries. The partition is /dev/sdc1 and mount point is /data/archives. Which /etc/fstab entry is correct?
A bash script needs to check if a user provided exactly two command-line arguments and exit with an error message if not. Which script logic is correct?
Your organization requires that all new files created in the /data/shared directory automatically inherit the group ownership of the directory (which is 'projectteam') regardless of the creating user's primary group. How do you configure this?
A production server needs to have a specific kernel parameter 'net.ipv4.ip_forward=1' persist across reboots. After making the change, you discover it doesn't persist. Upon investigation, you find multiple configuration files. What is the correct approach to ensure persistent kernel parameter configuration?
You are configuring a new RHEL server that will host multiple web applications. You need to create a logical volume that can be easily expanded in the future as storage needs grow. Currently you need 10GB, but the volume group has 50GB available. What is the best practice approach?
You need to create a shell script that processes all .log files in /var/log and counts lines containing the word 'error'. Which script accomplishes this task correctly?
Your system's boot process is failing. You need to access the system to troubleshoot. What kernel parameter should you add at boot time to boot into rescue mode with a root shell?
You need to configure a system to automatically mount an NFS share at boot time. The share is server1.example.com:/exports/shared and should mount to /mnt/nfs. Which /etc/fstab entry is correct?
You need to find all files in /home that are larger than 100MB and were modified in the last 7 days. Which command accomplishes this?
You are configuring a new logical volume that must survive system reboots. After creating the physical volume, volume group 'vg_data', and logical volume 'lv_app' (10GB), what is the correct sequence of remaining commands?
Which command correctly configures the system to boot into graphical.target by default instead of multi-user.target?
You need to create a user 'dbadmin' with UID 5000, home directory /opt/dbadmin, shell /bin/bash, and member of the 'database' supplementary group. Which command is correct?
Your system has a volume group 'vg_data' with 50GB total space. You have lv_app1 (20GB) and lv_app2 (15GB). You need to extend lv_app1 by 10GB but vgdisplay shows only 8GB free. What should you do?
You need to write a script that checks if a service is running and starts it if it's not. The script should handle the service name as an argument. Which script is correct?
A critical filesystem /dev/vg_data/lv_critical formatted with XFS has become corrupted after a power failure. The system boots but the filesystem won't mount. What is the correct recovery procedure?
Need more practice?
Expand your preparation with our larger question banks
Red Hat Certified System Administrator (RHCSA) 50 Practice Questions FAQs
rhcsa practice exam is a professional certification from Red Hat that validates expertise in red hat certified system administrator (rhcsa) technologies and concepts. The official exam code is EX200.
Our 50 rhcsa practice exam practice questions include a curated selection of exam-style questions covering key concepts from all exam domains. Each question includes detailed explanations to help you learn.
50 questions is a great starting point for rhcsa practice exam preparation. For comprehensive coverage, we recommend also using our 100 and 200 question banks as you progress.
The 50 rhcsa practice exam questions are organized by exam domain and include a mix of easy, medium, and hard questions to test your knowledge at different levels.
More Preparation Resources
Explore other ways to prepare for your certification