Table of Contents
RHCSA Practice Exam A
General Notes
Here are some tips to ensure your exam starts with a clean environment:
- You do not need external servers or resources.
- Do not register or connect to external repositories.
- Install a new VM according to the instructions in each practice exam.
- No sample solutions are provided for these practice exams. On the real exam, you need to be able to verify the solutions for yourself as well.
- You should be able to complete each exam within two hours.
After applying these tips, you’re ready to get started. Good luck!
Tasks
- Install a RHEL 9 virtual machine that meets the following requirements:
- 2 GB of RAM
- 20 GB of disk space using default partitioning
- One additional 20-GB disk that does not have any partitions installed
- Server with GUI installation pattern
-
Create user
studentwith passwordpassword, and userrootwith passwordpassword. -
Configure your system to automatically mount the ISO of the installation disk on the directory
/repo.
Configure your system to remove this loop-mounted ISO as the only repository that is used for installation.
Do not register your system withsubscription-manager, and remove all references to external repositories that may already exist. -
Reboot your server. Assume that you don’t know the root password, and use the appropriate mode to enter a root shell that doesn’t require a password.
Set the root password tomypassword. -
Set default values for new users.
Set the default password validity to 90 days, and set the first UID that is used for new users to 2000. -
Create users
edwinandsantosand make them members of the grouplivingopensourceas a secondary group membership.
Also, create userssereneandalexand make them members of the groupoperationsas a secondary group.
Ensure that usersantoshas UID 1234 and cannot start an interactive shell. - Create shared group directories
/groups/livingopensourceand/groups/operations, and make sure these groups meet the following requirements:- Members of the group
livingopensourcehave full access to their directory. - Members of the group
operationshave full access to their directory. - New files that are created in the group directory are group owned by the group owner of the parent directory.
- Others have no access to the group directories.
- Members of the group
-
Create a 2-GiB volume group with the name
myvg, using 8-MiB physical extents.
In this volume group, create a 500-MiB logical volume with the namemydata, and mount it persistently on the directory/mydata. -
Find all files that are owned by user
edwinand copy them to the directory/root/edwinfiles. -
Schedule a task that runs the command
touch /etc/motdevery day from Monday through Friday at 2 a.m. -
Add a new 10-GiB virtual disk to your virtual machine.
On this disk, add a Stratis volume and mount it persistently. -
Create user
boband set this user’s shell so that this user can only change the password and cannot do anything else. -
Install the
vsftpdservice and ensure that it is started automatically at reboot. -
Create a container that runs an HTTP server.
Ensure that it mounts the host directory/httprooton the directory/var/www/html. -
Configure this container such that it is automatically started on system boot as a system user service.
-
Create a directory with the name
/usersand ensure it contains the subdirectorieslindaandanna.
Export this directory by using an NFS server. - Create users
lindaandannaand set their home directories to/home/users/lindaand/home/users/anna.
Make sure that while these users access their home directory, autofs is used to mount the NFS shares/users/lindaand/users/annafrom the same server.
RHCSA Practice Exam B
General Notes
- You do not need external servers or resources.
- Do not register or connect to external repositories.
- Install a new VM according to the instructions in each practice exam.
- No sample solutions are provided for these practice exams. On the real exam, you need to be able to verify the solutions for yourself as well.
- You should be able to complete each exam within two hours.
After applying these tips, you’re ready to get started. Good luck!
Tasks
- Install a RHEL 9 virtual machine that meets the following requirements:
- 2 GB of RAM
- 20 GB of disk space using default partitioning
- One additional 20-GB disk that does not have partitions installed
- Server with GUI installation pattern
-
Create user
studentwith passwordpassword, and userrootwith passwordpassword. -
Configure your system to automatically mount the ISO of the installation disk on the directory
/repo.
Configure your system to remove this loop-mounted ISO as the only repository that is used for installation.
Do not register your system withsubscription-manager, and remove all references to external repositories that may already exist. -
Create a 1-GB partition on
/dev/sdb.
Format it with the vfat file system.
Mount it persistently on the directory/mydata, using the labelmylabel. -
Set default values for new users.
Ensure that an empty file with the nameNEWFILEis copied to the home directory of each new user that is created. -
Create users
lauraandlindaand make them members of the grouplivingopensourceas a secondary group membership.
Also, create userslisaandloriand make them members of the groupoperationsas a secondary group. - Create shared group directories
/groups/livingopensourceand/groups/operationsand make sure these groups meet the following requirements:- Members of the group
livingopensourcehave full access to their directory. - Members of the group
operationshave full access to their directory. - Users should be allowed to delete only their own files.
- Others should have no access to any of the directories.
- Members of the group
-
Create a 2-GiB swap partition and mount it persistently.
-
Resize the LVM logical volume that contains the root file system and add 1 GiB.
Perform all tasks necessary to do so. -
Find all files that are owned by user
lindaand copy them to the file/tmp/lindafiles/. -
Create user
vickywith the custom UID2008. -
Install a web server and ensure that it is started automatically.
- Configure a container that runs the
docker.io/library/mysql:latestimage and ensure it meets the following conditions: - It runs as a rootless container in the user
lindaaccount. - It is configured to use the mysql root password
password. - It bind mounts the host directory
/home/student/mysqlto the container directory/var/lib/mysql. - It automatically starts through a systemd job, where it is not needed for user
lindato log in.
Practice Exam C
General Notes
- You do not need any external servers or resources.
- Do not register or connect to any external repositories.
- Install a new VM according to the instructions in each practice exam.
- No sample solutions are provided for these practice exams. On the real exam, you need to be able to verify the solutions for yourself as well.
- You should be able to complete each exam within two hours.
After applying these tips, you’re ready to get started. Good luck!
Tasks
- Install a RHEL 9 virtual machine that meets the following requirements:
- 2 GB of RAM
- 20 GB of disk space using default partitioning
- One additional 20-GB disk that does not have any partitions installed
- Server with GUI installation pattern
-
Create user
studentwith passwordpassword, and userrootwith passwordpassword. -
Configure your system to automatically mount the ISO of the installation disk on the directory
/repo.
Configure your system to remove this loop-mounted ISO as the only repository that is used for installation.
Do not register your system withsubscription-manager, and remove all references to external repositories that may already exist. -
Reboot your server. Assume that you don’t know the root password, and use the appropriate mode to enter a root shell that doesn’t require a password.
Set the root password tomypassword. -
Set default values for new users.
Make sure that any new user password has a length of at least six characters and must be used for at least three days before it can be reset. -
Create users
lindaandannaand make them members of the groupsalesas a secondary group membership.
Also, create userssereneandalexand make them members of the groupaccountas a secondary group. - Configure an SSH server that meets the following requirements:
- User
rootis allowed to connect through SSH. - The server offers services on port
2022.
- User
- Create shared group directories
/groups/salesand/groups/account, and make sure these groups meet the following requirements:- Members of the group
saleshave full access to their directory. - Members of the group
accounthave full access to their directory. - Users have permissions to delete only their own files, but Alex is the general manager, so user
alexhas access to delete all users’ files.
- Members of the group
-
Create a 4-GiB volume group, using a physical extent size of 2 MiB.
In this volume group, create a 1-GiB logical volume with the namemyfiles, format it with the Ext3 file system, and mount it persistently on/myfiles. -
Create a group
sysadmins.
Make userslindaandannamembers of this group and ensure that all members of this group can run all administrative commands usingsudo. -
Optimize your server with the appropriate profile that optimizes throughput.
-
Add a new disk to your virtual machine with a size of 10 GiB.
On this disk, create a LVM logical volume with a size of 5 GiB, configure it as swap, and mount it persistently. -
Create a directory
/users/and in this directory create the directoriesuser1throughuser5using one command. -
Configure a web server to use the nondefault document root
/webfiles.
In this directory, create a fileindex.htmlthat has the contentshello worldand then test that it works. -
Configure your system to automatically start a
mariadbcontainer.
This container should expose its services at port3306and use the directory/var/mariadb-containeron the host for persistent storage of files it writes to the/vardirectory. - Configure your system such that the container created in step 15 is automatically started as a Systemd user container.
RHCSA Practice Exam D
General Notes
Here are some tips to ensure your exam starts with a clean environment:
- You do not need any external servers or resources.
- Do not register or connect to any external repositories.
- Install a new VM according to the instructions in each practice exam.
- No sample solutions are provided for these practice exams. On the real exam, you need to be able to verify the solutions for yourself as well.
- You should be able to complete each exam within two hours.
After applying these tips, you’re ready to get started. Good luck!
Tasks
- Install a RHEL 9 virtual machine that meets the following requirements:
- 2 GB of RAM
- 20 GB of disk space using default partitioning
- One additional 20-GB disk that does not have any partitions installed
- Server with GUI installation pattern
-
Create user
studentwith passwordpassword, and userrootwith passwordpassword. -
Configure your system to automatically mount the ISO of the installation disk on the directory
/repo.
Configure your system to remove this loop-mounted ISO as the only repository that is used for installation.
Do not register your system withsubscription-manager, and remove all references to external repositories that may already exist. -
Create a 500-MiB partition on your second hard disk, and format it with the Ext4 file system.
Mount it persistently on the directory/mydata, using the labelmydata. -
Set default values for new users.
A user should get a warning three days before expiration of the current password.
Also, new passwords should have a maximum lifetime of 120 days. -
Create users
loriandlauraand make them members of the secondary groupsales.
Ensure that userloriuses UID2000and userlaurauses UID2001. - Create shared group directories
/groups/salesand/groups/data, and make sure these groups meet the following requirements:- Members of the group
saleshave full access to their directory. - Members of the group
datahave full access to their directory. - Others have no access to any of the directories.
- Alex is general manager, so user
alexhas read access to all files in both directories and has permissions to delete all files that are created in both directories.
- Members of the group
-
Create a 1-GiB swap partition and mount it persistently.
-
Find all files that have the SUID permission set, and write the result to the file
/root/suidfiles. -
Create a 1-GiB LVM volume group.
In this volume group, create a 512-MiB swap volume and mount it persistently. -
Add a 10-GiB disk to your virtual machine.
On this disk, create a Stratis pool and volume.
Use the namestratisvolfor the volume, and mount it persistently on the directory/stratis. -
Install an HTTP web server and configure it to listen on port
8080. -
Create a configuration that allows user
laurato run all administrative commands usingsudo. -
Create a directory with the name
/usersand ensure it contains the subdirectorieslindaandanna.
Export this directory by using an NFS server. - Create users
lindaandannaand set their home directories to/home/users/lindaand/home/users/anna.
Make sure that while these users access their home directory, autofs is used to mount the NFS shares/users/lindaand/users/annafrom the same server.