Check Real RedHat EX200 Exam Question for Free (2024) [Q24-Q49]

Share

Check Real RedHat EX200 Exam Question for Free (2024)

Get Ready to Boost your Prepare for your EX200 Exam with 136 Questions

NEW QUESTION # 24
You are new System Administrator and from now you are going to handle the system and your main task is Network monitoring, Backup and Restore. But you don't know the root password. Change the root password to redhat and login in default Runlevel.

Answer:

Explanation:
see explanation below.
Explanation
When you Boot the System, it starts on default Runlevel specified in /etc/inittab:
Id:?:initdefault:
When System Successfully boot, it will ask for username and password. But you don't know the root's password. To change the root password you need to boot the system into single user mode. You can pass the kernel arguments from the boot loader.
1. Restart the System.
2. You will get the boot loader GRUB screen.
3. Press a and type 1 or s for single mode ro root=LABEL=/ rhgb queit s
4. System will boot on Single User mode.
5. Use passwd command to change.
6. Press ctrl+d


NEW QUESTION # 25
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.

Answer:

Explanation:
Answer see in the explanation.
Explanation/Reference:
# fdisk /dev/sda
p
(check Partition table)
n
(create new partition: press e to create extended partition, press p to create the main partition, and the extended partition is further divided into logical partitions) Enter
+2G
t
l
W
partx -a /dev/sda
partprobe
mkswap /dev/sda8
Copy UUID
swapon -a
vim /etc/fstab
UUID=XXXXX swap swap defaults 0 0
(swapon -s)


NEW QUESTION # 26
Part 1 (on Node1 Server)
Task 5 [Controlling Access to Files with ACLs]
Copy the file /etc/fstab to /var/tmp. Configure the following permissions on /var/tmp/fstab.
The file /var/tmp/fstab is owned by root user
The file /var/tmp/fstab is belongs to the root group
The file /var/tmp/fstab should be executable by anyone
The user harry is able to read and write on /var/tmp/fstab
The user natasha can neither read or write on /var/tmp/fstab
All other users (Current or future) have the ability to read /var/tmp/fstab

Answer:

Explanation:
* [root@node1 ~]# cp -p /etc/fstab /var/tmp/
[root@node1 ~]# ls -lrt /etc/fstab
[root@node1 ~]# ls -lrt /var/tmp/fstab
[root@node1 ~]# chmod a+x /var/tmp/fstab
[root@node1 ~]# getfacl /var/tmp/fstab
[root@node1 ~]# setfacl -m u:harry:rw- /var/tmp/fstab
[root@node1 ~]# setfacl -m u:natasha:--- /var/tmp/fstab
[root@node1 ~]# getfacl /var/tmp/fstab
getfacl: Removing leading '/' from absolute path names
# file: var/tmp/fstab
# owner: root
# group: root
user::rwx
user:harry:rw-
user:natasha:---
group::r-x
mask::rwx
other::r-x
* [root@node1 ~]# su - natasha
[natasha@node1 ~]$ cat /var/tmp/fstab
cat: /var/tmp/fstab: Permission denied


NEW QUESTION # 27
Update the kernel from ftp://instructor.example.com/pub/updates.
According the following requirements:
* The updated kernel must exist as default kernel after rebooting the system.
* The original kernel still exists and is available in the system.

Answer:

Explanation:
see explanation below.
Explanation
rpm -ivh kernel-firm...
rpm -ivh kernel...


NEW QUESTION # 28
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.

Answer:

Explanation:
see explanation below.
Explanation
* use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> -- update Example: authconfig --niserver=192.168.0.254 --nisdomain=RHCE --update or system-config-authentication
* Click on Enable NIS
* Type the NIS Domain: RHCE
* Type Server 192.168.0.254 then click on next and ok
* You will get a ok message.
* Create a Directory /rhome/stationx where x is your station number.
* vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60
* vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
* Service autofs restart
* Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On
/etc/auto.master file we specified the mount point the configuration file for mount point.


NEW QUESTION # 29
CORRECT TEXT
Configure the system synchronous as 172.24.40.10.

Answer:

Explanation:
Graphical Interfaces:
System-->Administration-->Date & Time
OR
# system-config-date


NEW QUESTION # 30
Configure autofs to make sure after login successfully, it has the home directory autofs, which is shared as
/rhome/ldapuser40 at the ip: 172.24.40.10. and it also requires that, other ldap users can use the home directory normally.

Answer:

Explanation:
see explanation below.
Explanation
# chkconfig autofs on
# cd /etc/
# vim /etc/auto.master
/rhome /etc/auto.ldap
# cp auto.misc auto.ldap
# vim auto.ladp
ldapuser40 -rw,soft,intr 172.24.40.10:/rhome/ldapuser40
* -rw,soft,intr 172.16.40.10:/rhome/&
# service autofs stop
# server autofs start
# showmount -e 172.24.40.10
# su - ladpuser40


NEW QUESTION # 31
A recently installed application writes log data to /opt/app/log/info.log. If Filebeat is already installed and
set up for communication with a remote Logstash, what has to be done in order to submit the log data of the
new application to Logstash?

  • A. Configure logrotate to execute filebeat -I /opt/app/log/info.log 0after each rotation of /opt/
    app/log/info.log.
  • B. Replace /opt/app/log/info.logby a symbolic link to /dev/filebeatand restart the new application.
  • C. Add a new cron job that invokes filebeat -i /opt/app/log/info.logperiodically.
  • D. Add an additional input channel with the option source => "/opt/app/log/info.log"to the
    Logstash configuration.
  • E. Add the log file to the pathoption within the logprospector in the Filebeat configuration and restart
    Filebeat.

Answer: B


NEW QUESTION # 32
Part 1 (on Node1 Server)
Task 2 [Installing and Updating Software Packages]
Configure your system to use this location as a default repository:
http://utility.domain15.example.com/BaseOS
http://utility.domain15.example.com/AppStream
Also configure your GPG key to use this location
http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release

Answer:

Explanation:
* [root@node1 ~]# vim /etc/yum.repos.d/redhat.repo
[BaseOS]
name=BaseOS
baseurl=http://utility.domain15.example.com/BaseOS
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[AppStream]
name=AppStream
baseurl=http://utility.domain15.example.com/AppStream
enabled=1
gpgcheck=1
gpgkey=http://utility.domain15.example.com/RPM-GPG-KEY-redhat-release
[root@node1 ~]# yum clean all
[root@node1 ~]# yum repolist
[root@node1 ~]# yum list all


NEW QUESTION # 33
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).

Answer:

Explanation:
if=/dev/zero of=/swapfile bs=1M count=600 mkswap /swapfile
/etc/fstab:
/swapfile swap swap defaults 0 0 mount -a


NEW QUESTION # 34
CORRECT TEXT
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile.

Answer:

Explanation:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile


NEW QUESTION # 35
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.

Answer:

Explanation:
see explanation below.
Explanation
1. chmod g+s /data
2. Verify using: ls -ld /data
Permission should be like this: drwxrws--- 2 root sysadmin 4096 Mar 16 18:08 /data If SGID bit is set on directory then who every users creates the files on directory group owner automatically the owner of parent directory. To set the SGID bit: chmod g+s directory To Remove the SGID bit: chmod g-s directory


NEW QUESTION # 36
Add a swap partition.
Adding an extra 500M swap partition to your system, this swap partition should mount automatically when the system starts up. Don't remove and modify the existing swap partitions on your system.

Answer:

Explanation:
see explanation below.
Explanation
fdisk -cu /dev/vda// in the way of expanding the partition, don't make main partition partx -a /dev/vda mkswap /dev/vdax swapon /dev/vdax swapon -s vi /etc/fstab
/dev/vdaxswapswapdefaults0 0
mount -a


NEW QUESTION # 37
Configure a task: plan to run echo "file" command at 14:23 every day.

Answer:

Explanation:
Answer see in the explanation.
Explanation/Reference:
(a) Created as administrator
# crontab -u natasha -e
23 14 * * * /bin/echo "file"
(b)Created as natasha
# su - natasha
$ crontab -e
23 14 * * * /bin/echo "file"


NEW QUESTION # 38
SIMULATION
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: Configure the client:
Yum -y install chrony
Vim /etc/chrony.conf
Add: server classroom.example.com iburst
Start: systemctl enable chronyd
systemctl restart chronyd
Validate: timedatectl status


NEW QUESTION # 39
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.

Answer:

Explanation:
see explanation below.
Explanation
# 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


NEW QUESTION # 40
CORRECT TEXT
Change the logical volume capacity named vo from 190M to 300M. and the size of the floating range should set between 280 and 320. (This logical volume has been mounted in advance.)

Answer:

Explanation:
# vgdisplay
(Check the capacity of vg, if the capacity is not enough, need to create pv , vgextend , lvextend)
# lvdisplay (Check lv)
# lvextend -L +110M /dev/vg2/lv2
# resize2fs /dev/vg2/lv2
mount -a
(Verify)
------------------------------------------------------------------------------- (Decrease lvm)
# umount /media
# fsck -f /dev/vg2/lv2
# resize2fs -f /dev/vg2/lv2 100M
# lvreduce -L 100M /dev/vg2/lv2
# mount -a
# lvdisplay (Verify)
OR
# e2fsck -f /dev/vg1/lvm02
# resize2fs -f /dev/vg1/lvm02
# mount /dev/vg1/lvm01 /mnt
# lvreduce -L 1G -n /dev/vg1/lvm02
# lvdisplay (Verify)


NEW QUESTION # 41
SIMULATION
In the system, mounted the iso image /root/examine.iso to/mnt/iso directory. And enable automatically mount (permanent mount) after restart system.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
/etc/fstab:
/root/examine.iso /mnt/iso iso9660 loop 0 0 mount -a
mount | grep examine


NEW QUESTION # 42
Part 1 (on Node1 Server)
Task 13 [Archiving and Transferring Files & SELinux]
Create a backup file named /root/backup.tar.bz2. The backup file should contain the content of /usr/local and should be zipped with bzip2 compression format.
Furthermore, ensure SELinux is in enforcing mode. If it is not, change SELinux to enforcing mode.

Answer:

Explanation:
* [root@node1 ~]# tar cvf /root/backup.tar /usr/local/
tar: Removing leading `/' from member names
/usr/local/
/usr/local/bin/
/usr/local/etc/
[root@node1 ~]# ls
backup.tar
[root@node1 ~]# file backup.tar
backup.tar: POSIX tar archive (GNU)
[root@node1 ~]# bzip2 backup.tar
[root@node1 ~]# ls
backup.tar.bz2
[root@node1 ~]# file backup.tar.bz2
backup.tar.bz2: bzip2 compressed data, block size = 900k
*
[root@node1 ~]# sestatus
SELinux status: enabled
[root@node1 ~]# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted
[root@node1 ~]# reboot
### For Checking ###
[root@node1 ~]# sestatus
SELinux status: enabled


NEW QUESTION # 43
Which of the following sections must exist in a Packer template?

  • A. variables
  • B. provisioners
  • C. images
  • D. builders
  • E. post-processsors

Answer: B

Explanation:
Explanation/Reference:


NEW QUESTION # 44
Part 2 (on Node2 Server)
Task 4 [Managing Logical Volumes]
Resize the logical volume, lvrz and reduce filesystem to 4600 MiB. Make sure the the filesystem contents remain intact with mount point /datarz (Note: partitions are seldom exactly the size requested, so anything within the range of 4200MiB to 4900MiB is acceptable)

Answer:

Explanation:
* [root@node2 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdb 252:16 0 5G 0 disk
└─vdb1 252:17 0 4.2G 0 part
└─vgrz-lvrz 253:2 0 4.1G 0 lvm /datarz
vdc 252:32 0 5G 0 disk
└─vdc1 252:33 0 4.4G 0 part
└─datavg-datalv 253:3 0 3.9G 0 lvm /data
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
[root@node2 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
lvrz vgrz -wi-ao---- 4.10g
[root@node2 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
vgrz 1 1 0 wz--n- <4.15g 48.00m
[root@node2 ~]# parted /dev/vdb print
Number Start End Size Type File system Flags
1 1049kB 4456MB 4455MB primary lvm
* [root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.0G 17M 3.8G 1% /datarz
[root@node2 ~]# parted /dev/vdb mkpart primary 4456MiB 5100MiB
[root@node2 ~]# parted /dev/vdb set 2 lvm on
[root@node2 ~]# udevadm settle
[root@node2 ~]# pvcreate /dev/vdb2
Physical volume "/dev/vdb2" successfully created.
* [root@node2 ~]# vgextend vgrz /dev/vdb2
Volume group "vgrz" successfully extended
[root@node2 ~]# lvextend -r -L 4600M /dev/vgrz/lvrz
Size of logical volume vgrz/lvrz changed from 4.10 GiB (1050 extents) to 4.49 GiB (1150 extents).
Logical volume vgrz/lvrz successfully resized.
[root@node2 ~]# resize2fs /dev/vgrz/lvrz
[root@node2 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vgrz-lvrz ext4 4.4G 17M 4.2G 1% /datarz


NEW QUESTION # 45
SIMULATION
SELinux must run in force mode.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: /etc/sysconfig/selinux
SELINUX=enforcing


NEW QUESTION # 46
Configure autofs.
Configure the autofs automatically mount to the home directory of LDAP, as required:
server.domain11.example.com use NFS to share the home to your system. This file system contains a pre configured home directory of user ldapuserX.
Home directory of ldapuserX is:
server.domain11.example.com /home/guests/ldapuser
Home directory of ldapuserX should automatically mount to the ldapuserX of the local /home/guests Home directory's write permissions must be available for users ldapuser1's password is password

Answer:

Explanation:
yum install -y autofs
mkdir /home/rehome
/etc/auto.master
/home/rehome/etc/auto.ldap
Keep then exit
cp /etc/auto.misc /etc/auto.ldap
/etc/auto.ldap
ldapuserX -fstype=nfs,rw server.domain11.example.com:/home/guests/
Keep then exit
systemctl start autofs
systemctl enable autofs
su - ldapuserX// test
If the above solutions cannot create files or the command prompt is -bash-4.2$, it maybe exist multi-level directory, this needs to change the server.domain11.example.com:/home/guests/ to server.domain11.example.com:/home/guests/ldapuserX. What is multi-level directory? It means there is a directory of ldapuserX under the /home/guests/ldapuserX in the questions. This directory is the real directory.


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

Answer:

Explanation:
see explanation below.
Explanation
# which echo
# crontab -e
23 14 * * * /bin/echo hello
# crontab -l (Verify)


NEW QUESTION # 48
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.

Answer:

Explanation:
see explanation below.
Explanation
* vi /etc/resolv.conf
nameserver 172.24.254.254
* host server1.example.com
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.


NEW QUESTION # 49
......


The EX200 exam tests the candidate's ability to perform essential system administration tasks in a Red Hat Enterprise Linux environment. EX200 exam is conducted in a live, real-world environment, making it a practical and hands-on assessment of the candidate's skills. EX200 exam is designed to test the candidate's ability to configure, manage, and troubleshoot various aspects of a Linux system, including file systems and partitioning, user and group administration, network configuration, and system security.

 

Use Free EX200 Exam Questions that Stimulates Actual EXAM : https://actualtorrent.pdfdumps.com/EX200-valid-exam.html