Skip to content

Instantly share code, notes, and snippets.

@harunaadoga
Last active February 20, 2026 15:24
Show Gist options
  • Select an option

  • Save harunaadoga/4cf4171e45f761dc2c1f6fe6c6762360 to your computer and use it in GitHub Desktop.

Select an option

Save harunaadoga/4cf4171e45f761dc2c1f6fe6c6762360 to your computer and use it in GitHub Desktop.
RHCSA EX200 EXAM Objectives Preparation Questions - Free Hands-on Playlist on YouTube - Haruna Adoga
Free YouTube RHCSA EX200 Hands-on Exam Practice Playlist here: https://www.youtube.com/playlist?list=PLiI_-JOspy6FuSPXSipE0xE4oC2XXYyuI)
1) RHCSA EX200 EXAM Objective: Understand and Use Essential Tools
Task 1: Text Search & Archive - Man pages
1.1 Find the string "Listen" in /etc/httpd/conf/httpd.conf and save the output to /root/web.txt
2 1.2 Create a gzip-compressed tar archive of /etc named etc_vault.tar.gz in /vaults directory.
⁃ use man pages for gzip option
Task 2: File Links - Shortcuts
2.1 In /shorts directory:
◦ Create a file file_a
◦ Create soft link file_b pointing to file_a
◦ Create hard link file_c pointing to file_a
◦ Verify all links work
Task 3: Advanced File Operations - Find
5 3.1. Find files in /usr that are greater than 3MB but < 10MB and copy them to /bigfiles directory.
6 3.2 Find files in /etc modified more than 120 days ago and copy them to /var/tmp/twenty/
7 3.3 Find all files owned by user hadoga and copy them to /root/h-files
8 3.4 Find a file named “httpd.conf” and save the absolute paths to /root/httpd-paths.txt
Task 4: Remote Access & File Permissions
8 4.1 From node1, SSH into node2 as user hadoga and:
◦ 4.2 Copy the contents of /etc/fstab to /var/tmp
◦ 4.3 Set the file ownership to root
◦ 4.4 Ensure no execute permissions for anyone
2) RHCSA EXAM OBJECTIVE: Create Simple Shell Scripts
Task 1: Size-Based File Search
Create a shell script that:
1 Finds files in /usr sized >30KB but <50KB
2 Outputs results to /root/sized_files.txt
Task 2: Conditional Script (career.sh) with argument
Create /root/career.sh that:
1 Outputs "Yes, I’m a Systems Engineer." when run with ./career.sh me
2 Outputs "Okay, they do cloud engineering." when run with ./career.sh they
3 Outputs  "Usage: ./career.sh me|they" for invalid/empty arguments
Task 3: File processing, input/output Users and Groups Script
Write shell scripts on node1 that create users and groups according to the following parameters.
maryam:2030:hpc_admin,hpc_managers
adam:2040:sysadmin,
jacob:2050:hpc_admin
Write a shell script that sets the passwords of the users maryam, adam and jacob to Password@1
3) RHCSA EX200 Part3 - Operate Running Systems
Task 1: Reset Root Password
• Break into node2 and set a new root password to hoppy.
Task 2: Tuning Profile Configuration and SELINUX
• Check the current recommended tuning profile.
• Put SELinux in permissive mode on node2.
• On node1 ensure network service is enabled and starts on boot.
Task 4: Persistent Journaling
• Configure persistent journaling on both servers to retain logs across reboots.
Task 5: Process process scheduling
• Start a stress-ng process on node1 with a niceness value of 19.
• Adjust the niceness value of the running stress-ng process to 10.
• Terminate the stress-ng process.
Task 6: File Permissions & File ACLs
• Copy /etc/fstab to /var/tmp.
• Set the file owner to root
• Ensure /var/tmp/fstab is not executable by anyone.
• Configure file ACLs on the copied file to:
◦ User adam: read & write.
◦ User maryam: no access.
◦ All other users: read-only.
Task 7: Secure File Transfer
• On node1, create a file node1-file.ext and securely copy (scp) it to the home dir of user hadoga on node2.
4) RHCSA Objective - Configure Local Storage
Task 1: Set Up LVM on node1
Create a logical volume named devops_lv with 32 extents using the /dev/vdb disk.
This should be created from a volume group named devops_vg with 20MB physical extents.
Format the logical volume as an ext4 filesystem and mount it persistently at /mnt/devops_lv.
Check your work.
Task 2: Create and Mount Swap volume persistently
From /dev/vdb, create a 800MB swap partition and configure it to mount persistently.
All your changes must persist after a reboot.
5) Create & Configure File Systems
Task 1: Resize devlops_lv and Configure Swap volume
On node1, resize the existing cloud_lv logical volume to 250MB (a size between 225–270MB is acceptable), while resizing its filesystem accordingly.
Task 2: Configure Autofs for remote user home directories
Create a user named bobby with UID of , with no home directory, and a base directory of /mnt/netdir and a password of hoppy.
Configure NFS autofs such that the home directory of user bob is automatically mounted at
/mnt/netdir/bobby on login.
Note that bobby’s account has been configured on the NFS server exporting their home directory at repo.rhcsa.home:/home/bobby.
Login as user bobby to verify your config.
6) Deploy, Configure, and Maintain Systems
Tasks:
1 Cron Job Configuration
◦ Create a cron job for user hadoga that runs logger "RHCSA Playlist Now Available” every 2 minutes.
◦ Use at to write "This task was easy!" to /at-files/at.txt in 2 minutes.
2 Local YUM Repository Configuration
◦ Configure BaseOS (URL: http://repo.rhcsa.home/repo/BaseOS/) and AppStream (URL: http://repo.rhcsa.home/repo/AppStream/) repos on node1
1 NTP Chrony Configuration
◦ Set up chrony time service to sync time with server.rhel.com.
2 GRUB Bootloader Modification
◦ Set GRUB_TIMEOUT=10, 
◦ GRUB_TIMEOUT_STYLE=hidden, and add quiet to GRUB_CMDLINE_LINUX.
◦ Apply your changes to the grub config file.
7) RHCSA - Manage Basic Networking
Tasks on node1:
1 Enable Network Services
◦ Ensure network services starts at boot.
2 Firewall Rules
◦ Allow access SSH and HTTP services using firewall-cmd.
3 Static IP Configuration
◦ Assign IP 172.16.1.10/24, gateway 172.16.1.1, DNS 172.16.1.1,
◦ hostname node5.rhcsa.
◦ Set DNS search domain to rhel.server.com.
8) RHCSA Objective: Manage Users and Groups
Tasks:
1 User/Group Creation
◦ Create a group named sharegroup and the following users:
▪ haruna (with no login shell, not a member of sharegroup), 
▪ umar (member of sharegroup)
▪ adoga (with UID 4444 member of sharegroup).
▪ All users should have a password: persward.
▪ Change the password of user adoga to perfect
2 User Password Policies
◦ Enforce password policy to have a minimum length of 8 chars.
◦ Set the max password age to 30 days.
3 Delete Users and Groups
◦ Remove the user umar from sharegroup
◦ Delete the sharegroup
◦ Delete user haruna with their home directory
9) RHCSA Objective: Manage security
Tasks:
1 Configure Key-based Authentication as root & Allow SSH Root Access
◦ Generate SSH key on node1, and setup key-based authentication for the root user.
◦ Enable SSH root login and test your configuration.
2 HTTPD Server Troubleshooting SELINUX
◦ The web server on node1 (192.168.70.10) is listening on port 85, ensure that the website is reachable via that port.
◦ Fix SELinux context for /var/www/html, if needed.
◦ Test using curl http://server-ip/ or use a web browser
10) RHCSA - Manage Containers
Tasks:
1 Container Image Creation
◦ As user haruna on node2 (192.168.70.12), build a container image named web_image using the container file located at http://repo.rhcsa.home/containers/Containerfile.
2 Systemd Rootless Container Service
◦ Deploy haruna_web container with the following:
▪ Map host port 8000 → container port 80.
▪ Map the host directory /opt/user_files to container directory /opt/userfiles. Files should be accessible.
▪ Configure the container as a systemd service to start on boot.
11) RHCSA - Manage Software - FLATPAK
Task 1: Configure Flatpak Repositories
1.1 [Install Flatpak package manager
1.2 Add Flathub remote repositoryhttps://flathub.org/repo/flathub.flatpakrepo)
1.3 Add RHEL Flatpak remote repository (https://flatpaks.redhat.io/rhel.flatpakrepo)
1.4 Verify all configured Flatpak remotes
Task 2: Install and Remove Flatpak Packages
2.1 Search for Firefox in Flatpak repositories
2.2 Install Firefox from Flathub
2.3 List all installed Flatpak applications
Dependencies resolved.
2.4 Update Firefox Flatpak to latest version
2.5 Remove Firefox Flatpak and clean up unused runtimes
@harunaadoga
Copy link
Copy Markdown
Author

harunaadoga commented Jul 31, 2025

Watch the complete FREE Youtube RHCSA EX200 hands-on exam practice solutions on YouTube - Haruna Adoga

Find the RHCSA exam objectives here: RHCSA Objectives

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment