RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300), Third Edition (2015)

Appendix B: Sample RHCSA Exam 2

Time Duration:     2.5 hours

Passing Score:        70% (210 out of 300)

Instructions:          The RHCSA exam, EX200, is offered electronically on a desktop system running RHEL7. The exam presents a list of tasks that are to be completed within the stipulated time. Firewall and SELinux need to be taken into account. All settings performed on the systems must survive system reboots or you will not be given credits. Access to the Internet, printed material, and electronic devices is prohibited during the exam.

Setup for the Sample Exam:

Install RHEL7 (or its clone) on a physical system called hv1 with hypervisor and desktop/X Window support. Install a virtual machine called rhcsa2 and load minimal RHEL7 without GUI support. Configure hostname rhcsa2 and the primary network interface with IP, gateway, and DNS during installation. Leave 2GB of disk space free in the system disk. You may want to build virtual machine for this sample exam on an existing hypervisor.


Instruction 01: Tasks furnished here are in addition to the exercises and labs presented in the RHCSA section of this book. No solutions are provided.

Instruction 02: Do not consult the material in this book or browse the Internet while taking this sample exam. However, you can refer to the online help and the documentation located in the /usr/share/doc directory.

Instruction 03: This exam should be done in a text console using commands or text tools.

Instruction 04: Perform all tasks on rhcsa2 unless otherwise indicated.

Instruction 05: You can reboot the system after completing each task or a few tasks, or wait until all tasks have been finished. Do not forget to retest the configuration after the reboot.

Instruction 06: Use your own judgement for making decisions where necessary.


Task 01: Create a user account called jerry with UID 2929 and shell /bin/tcsh. Create a user account called terry without login access. Create another user account called mary with all the default values. Set their passwords to Temp123$.

Task 02: Create a file called testfile as user jerry in his home directory and give user mary read and execute rights, and user terry no permissions at all. Make sure that existing rights on the file are unaltered.

Task 03: Create a directory called /testdir1 as root and configure it for collaboration among members of the admins group. Create the group with members jerry and terry.

Task 04: Set permissions on /linuxadm so that all files created underneath get the membership of the parent group.

Task 05: Create a logical volume lvol1 of size 100MB in vg02 volume group with mount point /mnt/lvol1 and ext4 file system structures. Create a file called lvolfile in the mount point.

Task 06: Create a swap logical volume called swapvol1 of size equal to 12 LEs in vg02 volume group, and activate it persistently.

Task 07: Create a standard partition of size 70MB on any available disk and format it with xfs file system structures. Assign a label called stdxfs1 to the file system. Mount the file system on /mnt/stdxfs persistently using its label. Create a file called stdxfsfile in the mount point.

Task 08: Search for all files in the entire directory structure that have been modified in the past 30 days and save their copies in /var/tmp/modfiles.txt.

Task 09: Configure /mnt/lvol1 so that users can delete their own files and not other users’.

Task 10: Change the default base home directory for new users to /usr.

Task 11: Enable cron access for user jerry and deny for user terry.

Task 12: Set up a cron job as user mary to display the output of the /usr/local directory at 15:35 every day.

Task 13: Use dc=example, dc=com, and LDAP server vm2.example.com with a certificate sitting in /etc/openldap/cacerts to allow ldapuser1 to be able to log on to rhcsa2.

Task 14: Upgrade the kernel to a higher version and set it as the default boot kernel. The existing kernel and its configuration must remain intact. Download a kernel from rpmfind.net for this task.

Task 15: Configure the system as an NTP client of server hv2 (configure NTP service on hv2; see RHCE section).

Task 16: Use tar and bzip2 to create a compressed archive of the /etc directory. Store the archive in /root using any name of your choice.

Task 17: Configure AutoFS to automatically mount the home directory for user victor under /dirnet when he logs on to the system (see the chapter on NFS in the RHCE section on how to configure the server side).

Task 18: Open port 100 in firewalld in the default zone.

Task 19: Perform a case-sensitive search for the pattern “file” in the /etc/profile file and save the output in the /var/tmp/pattern.txt file.

Task 20: Set up a FTP yum repository in the /var/ftp/pub/rhel7 directory on hv2, and configure a repo on rhcsa2.

Reboot the system and validate the configuration.