RHEL7 RHCSA Sample exam 1

Share this link

RHCSA7 1

This is a sample RHCSA exam for RHEL7. You’ve got 2 hours and half.

Prerequisites:

– a file system of 1GB for /home,
– 1GB of non-allocated space.

One precision: nobody checks your answers but solutions are provided.

1 Star2 Stars3 Stars4 Stars5 Stars (130 votes, average: 3.09 out of 5)
Loading...

Leave a Reply

109 Comments on "RHEL7 RHCSA Sample exam 1"

Notify of
Sort by:   newest | oldest
algorisms
Member
algorisms

For question 8, couldn’t you use:

# chcon -R –reference=/home /xfs

DKatcars
Member
DKatcars

This is in regards to question#6.
Is Bash scripting really a prerequisite AND testable on RHCSA?

algorisms
Member
algorisms
It is testable – At least with LFCS, when I took the exam they had us write a bash script with certain requisites. You don’t get your results right away because they hand-grade parts of the exam. Either way, you really should know Bash if you want to be effective at SysAdmin with Linux. It saves time and lives. Also, RegEx – Knowing how to use RegEx will save you a TON of time… Though you can probably get by without both, employers will look for these skills and they are relatively easy to test in technical interviews as well… Read more »
DKatcars
Member
DKatcars

For question#9, which RHCSA objective covers learning configuring a virtual console?

DKatcars
Member
DKatcars

Are resolving issues such as “ls: Login failed: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()” be beyond the scope of the RHCSA exam?

I would anticipate possibly having to enable chroot_list_enable=YES and adding a user(s) to a chroot_list at most. Seems there may be lots more to allowing users various permissions once they ftp into their home directory though. Please provide any thoughts you have that may help me understand how far to investigate.

Thanks in advance!

afro
Member
afro

How to start this Sample Quiz ?
Any help ?

afro
Member
afro

Thx, now everything is working fine.

rodolfocasas
Member
rodolfocasas

In Question 6 I think it may be faster to do this

lvextend -r -L 200M /dev/vg/lv_xfs

The -r option automatically grows the file system.

Thank you for your really nice and useful site.

R

hunter86_bg
Member

why not “setsebool -P httpd_use_nfs on” on task 11 ?

pharlan
Member
pharlan

Considering Q9: On my CentOS 7 machine context of /home directories is user_home_dir_t not user_home_t

gremlin961
Member
gremlin961

For question 3, could you also use ‘semanage fcontext -a -e /home /xfs’ to do the same thing? That would set /xfs to home_root_t and any sub directories to user_home_dir_t, just like /home.

mak777
Member
mak777

ahhhh .. i failed my rhcsa exam today . ๐Ÿ™

timlee
Member
timlee

Can you tell which part is the most difficult or what to take note of?

timlee
Member
timlee

[root@rhel7-testServer ~]# ./prog.sh
./prog.sh: line 5: [40: command not found

And here are contents:
#!/bin/bash

cd /xfs
N=40
while [“$N” -gt 0 ]
do
fallocate -l 2M .file_$N
N=’expr $N – 1′
done

timlee
Member
timlee

I found the answer for this…
There needs to be a preceeding “space” after the square bracket [ “

timlee
Member
timlee

For question 12, there is no file /usr/bin/sar

asifshabir
Member
asifshabir

for question 8.
You have asked to write a bash script. Which I guess is no longer a part of RHCSA ?

Please correct me if I am wrong.
I am preparing for RHCSA, and you prompt response will help me ๐Ÿ™‚

romio
Member
romio
Passed my RED HAT exam yesterday. Thank you, cert depot for updating LDAP post for me. I would have failed the exam without LDAP part. Initially, I was thinking to skip LDAP questions as I felt prepared for the rest of the exam but when you updated that portion, I thought to give it a try and it started working fine for me. Now when I went to exam, surprisingly I couldn’t do any logical volume questions which I thought I was the easiest part of the exam, reason being vgs, lvs, lvdisplay or any logical volume related commands were… Read more »
mamytov1288@gmail.com
Member
mamytov1288@gmail.com

If the lvs pvs vgs commands are not working then you should install lvm2 package:
# yum install lvm2

mbarnes
Member
mbarnes

You could simplify the bash script in question 8 a little.

#!/bin/bash

for N in `seq 40`
do
fallocate -l 2M /xfs/.file_$N
done

toddles76boston
Member
toddles76boston

Thank you!!!

This script is easier to figure out and remember the concept.

redhat0329
Member
redhat0329

Hi CertDepot,

Are the RHEL7 RHCSA Sample exam 1 updated as of this writing and can be on the exam questions? Thanks

val
Member
val

Question 8 isn’t that complicated as it seems here. Actually it could be done in one line: for i in {1..40}; do fallocate -l 2M .file_{$i}; done. Much shorter and cleaner

redhat0329
Member
redhat0329

Hi CertDepot,

Need your help please.. ๐Ÿ™‚

Where can I get the semanage fcontext value user_home_dir_t? Thanks! ๐Ÿ™‚

Question number 3.
# yum install -y setroubleshoot-server
# semanage fcontext -a -t user_home_dir_t โ€œ/xfs(/.*)?โ€
# restorecon -R /xfs

lixinchina1
Member
lixinchina1

Am I giving root login access during the exam or I have to login as normal user and “sudo” every command?

lixinchina1
Member
lixinchina1

Also in order for a regular user to run sudo command, I know there’re many methods to grant the permission but one of the method I found is to edit /etc/sudoers and add a line:

username ALL=(ALL) ALL

Is that a acceptable way? thx!

haisan
Member
haisan

I have to say, for encouraging the attenders, that the exam is much easier than this simulation. ๐Ÿ™‚

I got 283, finished in 2h10min and having enough time for tests. No idea where I did the mistake.

azmedhs
Member
azmedhs

My 6 RHCSA expired I took rhce but I had 209 !! then I must go back RHCSA on version 7. Can you show me the difference between v6 and v7 EX200? Thank you

miguel
Member
miguel

Hello Certdepot

For one of the questions in “task of the day” is to increase an existing standard partition running on “xfs” filesystem. I tried to use parted but seems there is no “resize” command anymore. The only advise i’m getting from the internet is to delete the existing partition and increase using fdisk. but if I do that, my files will be deleted.

laring
Member
laring

looking for sample exam (rhcsa7), I’m scheduled for an rhcsa7 next friday. so I’m working hard, but i need more labs.

andreap91
Member
andreap91

Hi Certdepot,
thank you for this guide. Tomorrow I will have my RHCSA exam and I have one question: in the exam I will work on vm like virtualbox or kvm or I have a vm with limited actions(for example only to start/stop/reset the vm and nothing else)?

thanks in advance

scruff
Member
scruff

Hi, Can’t find LDAP topic. Could you point it to me please?

maced
Member
maced
Hi everyone. I am new here guys and also to RHEL, however I was wondering, for the ex200 exam if you are tested on how to troubleshoot boot loader errors when booting from an ISO image, mounting the image, creating partition and partition type, installing/copying device drivers, editing GRUB and RunLevels before even starting the 1st question… Reason I ask is I got the shock of my life just last week on my Job interview I had a technical test to complete that was designed in that way and I failed it horribley…I am about to write the Ex200 exam… Read more »
scruff
Member
scruff

Hi gentlemen. It it allowed to reboot virtual lab pc (with “reboot” command) during exam?

Lisenet
Member

Just to clarify, you are not allowed to reboot the host PC, but you can reboot a guest VM as many times as you wish (and time allows).

scruff
Member
scruff

Hi, regarding to Question 7 of sample exam – could you explain why we use “defaults 1 2” in fstab configuration file. I think “defaults 0 0” is enough, as first “0” point to “dump” utility usage, and “1” in your case is enabling backup of the volume with dump utility. The second “0” points to “fsck” utility for volume integrity check, and “2” in your case enables fsck check at stratup. Hope for your answer. Thx…

jrios9
Member
jrios9

Hello! where could I find the answers for these RHEL7 RHCSA Sample exam 1 questions?

daxster
Member
daxster

Question, Is there any difference in size between MB and M? in some of the practice exam objectives you ask to create a lv with the size of 200MB but then in the hint you show creating it using lvcreate -n lv_swap -L 200M. Would RedHat dock you on points for not having it the right size?

jrios9
Member
jrios9
Hello! I have a big doubt! I have 3 types (options) about mounting a filesystem volume. Please could you tell us what is the best and the right way of mounting a volume? What is the difference between them? Could you explain it us please? Have in mind that the volume in these three options are the same. Option 01 /dev/mapper/debianvg-vol01_data /Data xfs defaults 0 0 Option 02 UUID=ea0c3175-95c7-4355-bcb4-223a739eecea /Data xfs defaults 0 0 Option 03 /dev/debianvg/vol01_data /Data xfs defaults 0 0
Lisenet
Member
As you may be aware, LVM uses a device mapper. Both options 01 and 03 are symlinks to some block device (these can be found under /sys/block/). It shouldn’t really matter what symlink you use in the fstab up until it’s not broken. Option 02 uses a UUID. UUIDs are created when a partition gets formatted and are designed in a way so that collisions are unlikely. For the block device itself, the UUID is stored in the superblock. UUID is unique and stays that way even if the device is plugged into some other system. All three ways of… Read more »
wiggler
Member
wiggler

regarding item 14. does it need to be the same script on the solution or could be different as long as the output is the same?

I have my script just like this:

#!/bin/bash
for N in seq 1 40; do fallocate -l2M /xfs/.file_$N; done

wpDiscuz

RHCSA7: Task of the day

Allowed time: 10 minutes.
Boot and change the root password before the end of the boot process.

RHCE7: Task of the day

Allowed time: 8 minutes.
Set up an iScsi target based on a block backstore of 100MB called lv_iscsi with basic authentication, ext4 filesystem and standard firewall configuration.

Poll for favorite RHEL 7 book

What is your favorite RHEL 7 book to prepare RHCSA & RHCE exams?

View Results

Loading ... Loading ...

Poll for most difficult RHCSA 7 topic

What do you think is the most difficult RHCSA 7 topic?

View Results

Loading ... Loading ...

Poll for most difficult RHCE 7 topic

What do you think is the most difficult RHCE 7 topic?

View Results

Loading ... Loading ...

Recent Comments