RedHat certification · Exam EX200

EX200 Mock Exam

Red Hat Certified System Administrator (RHCSA) Exam

Find out if you're ready for EX200. Take the free timed mock exam and get your score in minutes, or study the free EX200 questions below with answers and explanations.

9 questions · 15 minutes · free, no sign-up

Free EX200 questions

1–9 of 9 free
Question 1

Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel,
keep the old kernel available.

Show answerHide answer

Explanation

Answer: # cat /etc/grub.conf
# cd /boot
# lftp it
# get dr/dom/kernel-xxxx.rpm
# rpm -ivh kernel-xxxx.rpm
# vim /etc/grub.conf
default=0

Question 2

Create a user named alex, and the user id should be 1234, and the password should be
alex111.

Show answerHide answer

Explanation

Answer: # useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex

Question 3

Add 3 users: harry, natasha, tom.
The requirements: The Additional group of the two users: harry, Natasha is the admin
group. The user: tom's login shell should be non-interactive.

Show answerHide answer

Explanation

Answer: # useradd -G admin harry
# useradd -G admin natasha
# useradd -s /sbin/nologin tom
# id harry;id Natasha (Show additional group)
# cat /etc/passwd
(Show the login shell)
OR
# system-config-users

Question 4

Configure the verification mode of your host account and the password as LDAP. And it
can ldapuser40. The password is set as "password". And the certificate login successfully
through
can be downloaded from http://ip/dir/ldap.crt. After the user logs on , the user has no host
directory unless you configure the autofs in the following questions.

Show answerHide answer

Explanation

Answer: system-config-authentication
LDAP Server: ldap//instructor.example.com (In domain form, not write IP)
OR
# yum groupinstall directory-client (1.krb5-workstation 2.pam-krb5 3.sssd)
# system-config-authentication
1.User Account Database: LDAP
2.LDAP Search Base DN: dc=example,dc=com
3.LDAP Server: ldap://instructor.example.com (In domain form, not write IP) 4.Download
CA Certificate
5.Authentication Method: LDAP password
6.Apply
getent passwd ldapuser40

Question 5

Find the files owned by harry, and copy it to catalog: /opt/dir

Show answerHide answer

Explanation

Answer: # cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;

Question 6

Configure a HTTP server, which can be accessed through
http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.

Show answerHide answer

Explanation

Answer: # yum install -y httpd
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
<VirtualHost 192.168.0.254:80>
DocumentRoot /var/www/html/
ServerName station.domain40.example.com
</VirtualHost>

Question 7

Configure a task: plan to run echo hello command at 14:23 every day.

Show answerHide answer

Explanation

Answer: # which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)

Question 8

Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.

Show answerHide answer

Explanation

Answer: # useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat

Question 9

Add admin group and set gid=600

Show answerHide answer

Explanation

Answer: # groupadd -g 600 admin

That's the last free question

You've seen the free 30% (9 of 30 questions). Full access unlocks every question and full-length EX200 mock exams (65 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the EX200 exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real EX200 exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full EX200 mock exam
  • 65questions per mock
  • 105 mintime limit
  • 30questions in the bank
  • Newmock on every attempt