Share this link

This is a quiz to prepare you for the RHCE exam.
Be careful, it’s not so easy!
You’ve got 5 minutes for 10 questions.

PS: As there are more than 10 questions overall, you will have to come back to test all of them, which will help you to memorize!
If you don’t understand an answer, most of the explanations are available in the website itself.

1 Star2 Stars3 Stars4 Stars5 Stars (39 votes, average: 4.10 out of 5)
42 comments on “RHEL7 RHCE Quiz
  1. rickytan says:

    I just took the exam last week and yeah I totally agree it is very difficult the exam is a nightmare!

  2. ahana says:

    Hello people, well I took the examination last month, and I cleared it. Now I’m officially REdhat Certified Engineer 7.
    As per my experience, the examination is not that difficult actually, but its the timing which is against you. Three and a half hours to do everything, is not enough ( unless and until you do time management). So here is my suggestion to all of you.
    Don’t solve in sequence but prioritize your questions. Big and heavy questions are in the middle or end. Spend an hour doing beginning questions, and you are dead. I solved all questions in the following manner:

    File Share (NFS, Krb5 and Samba) > Apache > ISCSI > Database > DNS and SMTP > Networking and any other questions > Scripting
    Leave scripting for the last ( unless and until you are reallllyyyy good at it, otherwise don’t attempt it in beginning or in middle, it’ll eat up all your time)

    I hope you find it helpful for your examination, and Best of luck.

  3. yrhce says:

    Certdepot is an excellent supplement to actual redhat recommended material. Many thanks to the moderator for setting it up and keeping it up-to-date.
    I got my RHCE today for RHEL 7 on first attempt. I was a RHCSA for RHEL 6 and I confirmed with red hat before signing up for RHCE 7 if I would be eligible without taking RHCSA 7 and the answer was yes. I would recommend you check with redhat too first if this is your case too. Within 2 hrs of taking my exam at a kiosk, red hat delivered my results to the registered email id. Please bear in mind, it may be different for you.
    The exam covers pretty much all the objectives listed on red hat site for RHCE 7 and I think that is what makes it challenging to finish it within 3.5 hrs. So make sure you are thorough with all the requirements and it will be little easier. I would recommend rigorous practice before exam, if linux administration was/was not your background or profession.
    It is an amazing feeling though when you see that certificate with your name on it and is definitely worth the effort you put to earn it. All the very best to all and hope you pass it in first attempt too.

  4. jey says:


    Does anybody know what RHEL 7 version (7/7.1/7.2) exam is based on ?


  5. HjTermiziLinux says:

    Dear Certdepot Admin,

    First, thank you for your awesome initiative in providing hints and tips (in my case RHCSA and RHCE)

    Secondly, I noticed that there is a particular question in your RHCE quiz bank that does not response correctly to the right answer. The question is as stated below;

    Which command to generate public and private 2048-bit RSA keys?

    # ssh-keygen -B 2048 -t rsa
    # sshkey-gen -B 2048 -T rsa
    # sshkey-gen -b 2048 -T rsa
    # ssh-keygen -b 2048 -t rsa


    I would appreciate if you would kindly rectify the problem at the coding level.

    Thank you.

  6. DanS says:

    It would be great to see a larger pool of questions in the quiz. I would help contribute some and probably others would as well if you would accept them. I feel going thru them on a regular basis keeps your mind fresh on the large group of topics covered for this exam. Thanks.

  7. p-s says:

    Which command to add a user/password (here tom/centos) to the Apache password file (here passwd)?
    • # htpasswd -c passwd tom centos
    • # htpasswd passwd tom centos
    • # htpasswd add passwd tom centos
    • # htpasswd -v passwd tom centos
    The documentation says the -b flag is mandatory:(
    htpasswd -b [ -c ] [ -m | -B | -d | -s | -p ] [ -C cost ] [ -D ] [ -v ] passwdfile username password
    What is more I tested it for myself and without a -b it doesn’t work:(

  8. p-s says:

    htpasswd -nb[mBdps] [-C cost] username password -b Use the password from the command line rather than prompting for it

    I just copied the part of your message from your reply and as you can see without -b it won’t work:( Have you tried to execute that command on you machine 7.4? Mine is CentOS Linux release 7.3.1611 (Core) and without a -b it just offers help:( Thanks in advance anyway

    • CertDepot says:

      My question was badly worded but the given answer was correct.
      I replaced passwd with passwdfile to remove any confusion in the question.
      The -b option is needed when you want to specify the password (not the password file) from the command line.
      Sorry for this confusion.

      • p-s says:

        The -b option is needed when you want to specify the password (not the password file) from the command line.

        No, no, no:( with the command like this ‘htpasswd -b passwdfile username password’ I just won’t be prompted for the password but the password file is needed anyway:( cause it needs to be written somewhere, I think… Anyway, thanks for your reply…

  9. p-s says:

    I just want to thank this web service for that opportunity like this! I try taking a quiz as frequently as I can. I does really help me! Thank you very much for your service and wish a good luck to everyone 🙂

  10. p-s says:

    Hi. Sometimes I try to take your quizzes and it excites me. But every time when I encounter with this question those answers make me confused:

    Which command to allow the ssh daemon to run on the 443 tcp port?

    # semanage port -a -t ssh_port_t -p tcp 443
    # semanage port -m -t ssh_port_t -p tcp 443
    # semanage port -m -t sshd_port_t -p tcp 443
    # semanage port -a -t sshd_port_t -p tcp 443

    And everytime I meet this question I answer the same: “semanage port -a -t ssh_port_t -p tcp 443” cause I just see the only one word “allow”. So for me it implies like additional port to be allowed to run.

    I try to explain you why:
    You have similar question about allowing to run some demon on particular port. And the answer is “semanage port -a -t …….”
    Would you be more specific on that questions:)?
    When you ask “to allow” could it be described as “only allowed” so I will use the command: “semanage port -m -t ssh_port_t -p tcp 443” but if I see in your question just “allow” so I just want to add one more port as an additional to be allowed to run. You know what I mean?
    If by any chance I am wrong about this just let me know by clarifying it:) Thanks:)

    • CertDepot says:

      There is a trap in this question.
      Normally when you need to allow a port for a daemon to listen on, you use the -a (add) option with the semanage command.
      With the SSH daemon, the problem is slightly different: there is already a port (22) on which the daemon is listening. To my knowledge and until now, a daemon is linked to a port and only one. Therefore, you have to use the -m (modify) option to change the port on which the daemon is listening.

      • Lisenet says:

        I agree with CertDepot that the question is tricky, but I also think that the wording could be improved to avoid ambiguity (as per p-s explanation).

        • CertDepot says:

          How would you improve the wording of this question?

          • Lisenet says:

            E.g. which command to allow the ssh daemon to run on the 443 TCP port only refuse the default port 22 TCP?

          • CertDepot says:

            I’m updating the quiz.

          • p-s says:


          • p-s says:

            I think that question won’t cause any confusing thoughts 🙂 and will be understandable to everyone:)
            Thank you for collaboration.

          • p-s says:

            Hi! Thanks to “Lisenet” for joining to our conversation 🙂 This made me think tricky question over and after that I thought carefully and I have realized that you can add with the utility “semanage port” as much ports as you want to enable on (see example below):
            [root@mimimi ~]# semanage port -l | grep ssh
            ssh_port_t tcp 4000, 22
            However, the main reason which port you want to connect via SSH plays the file /etc/ssh/sshd_config (rge service should be restarted after all). That is where you have to change the main port to be connected with via SSH. Am I right?

          • CertDepot says:

            I think you are right.

      • p-s says:

        Thanks for clarifying it!:)

Leave a Reply

Upcoming Events (Local Time)

There are no events.

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.

Follow me on Twitter

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 ...