
EX200 Self-Study Guide for Becoming an Red Hat Certified System Administrator - RHCSA Expert
EX200 Study Guide Realistic Verified EX200 Dumps
To prepare for the RedHat EX200 certification exam, candidates must have a solid understanding of RedHat Enterprise Linux system administration. They should also have hands-on experience in configuring and managing Linux systems. There are various resources available to help candidates prepare for the exam, such as study guides, practice exams, and training courses. By passing the RedHat EX200 exam, candidates can demonstrate their expertise in Linux system administration and enhance their career prospects in the IT industry.
The Red Hat Certified System Administrator - RHCSA certification exam is designed to test the candidate's ability to perform essential system administration tasks in a real-world environment. Successful completion of the exam validates the candidate's skills and knowledge in RHEL system administration, making them a valuable asset to any organization. Red Hat Certified System Administrator - RHCSA certification is recognized globally and is highly respected within the IT industry, making it an excellent investment for individuals who want to advance their career in system administration.
NEW QUESTION # 71
Configure the permissions of /var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that:
the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root.
the file /var/tmp/fstab should not be executable by anyone.
the user natasha is able to read and write /var/tmp/fstab.
the user harry can neither write nor read /var/tmp/fstab.
all other users (current or future) have the ability to read /var/tmp/fstab.
Answer:
Explanation:
see explanation below.
Explanation
* cp -a /etc/fstab /var/tmp
* cd /var/tmp
* ls -l
* getfacl /var/tmp/fstab
* chmod ugo-x /var/tmp/fstab
[ No need to do this, there won't be execute permission for the file by default]
# setfacl -m u:natasha:rw /var/tmp/fstab # setfacl -m u:harry:0 /var/tmp/fstab(zero)
[Read permission will be there for all the users, by default. Check it using ls -l /var/tmp/fstab] Verify by
[ ls -la /var/tmp/fstab]
NEW QUESTION # 72
SELinux must run in force mode.
Answer:
Explanation:
see explanation below.
Explanation
/etc/sysconfig/selinux
SELINUX=enforcing
NEW QUESTION # 73
Part 1 (on Node1 Server)
Task 4 [Controlling Access to Files]
Create collaborative directory /mnt/shares with the following characteristics:
Group ownership of /mnt/shares should be sharegrp.
The directory should be readable, writable and accessible to member of sharegrp but not to any other user. (It is understood that root has access to all files and directories on the system) Files created in /mnt/shares automatically have group ownership set to the sharegrp group.
Answer:
Explanation:
* [root@node1 ~]# mkdir -p /mnt/shares
[root@node1 ~]# ls -lrt /mnt/
[root@node1 ~]# chgrp sharegrp /mnt/shares/
[root@node1 ~]# chmod 2770 /mnt/shares/
[root@node1 ~]# ls -lrt /mnt/
### For Checking ###
[root@node1 ~]# su - harry
[harry@node1 ~]$ cd /mnt/shares/
[harry@node1 shares]$ touch harry
[harry@node1 shares]$ logout
[root@node1 ~]# su - natasha
[natasha@node1 ~]$ cd /mnt/shares/
[natasha@node1 shares]$ touch natasha
[natasha@node1 shares]$ ls -lrt
-rw-rw-r--. 1 harry sharegrp 0 Mar 21 06:03 harry
-rw-rw-r--. 1 natasha sharegrp 0 Mar 21 06:03 natasha
NEW QUESTION # 74
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:
Answer see in the explanation.
Explanation/Reference:
# 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 # 75
The system ldap.example.com provides an LDAP authentication service.
Your system should bind to this service as follows:
The base DN for the authentication service is dc=domain11, dc=example, dc=com LDAP is used to provide both account information and authentication information. The connection should be encrypted using the certificate at http://host.domain11.example.com/pub/domain11.crt When properly configured, ldapuserX should be able to log into your system, but will not have a home directory until you have completed the autofs requirement. Username: ldapuser11 Password: password
Answer:
Explanation:
see explanation below.
Explanation
* system-config-authentication LDAP user DN=dc=domain11,dc=example,dc=com Server= host.domain11.example.com Certificate
http://host.domain11.example.com/pub/domain11.crt (enter url carefully, there maybe // or ..) LDAP password OK starting sssd
* su -ldapuser11 Display Bash prompt #exit
NEW QUESTION # 76
Which section of the Prometheus configuration defines which nodes are monitored?
- A. listener
- B. rules
- C. scrape_config
- D. nodes
- E. targets
Answer: C
Explanation:
Explanation/Reference: https://prometheus.io/docs/prometheus/latest/getting_star
NEW QUESTION # 77
Create a backup file named /root/backup.tar.bz2, which contains the contents of /usr/local, bar must use the bzip2 compression.
Answer:
Explanation:
cd /usr/local
tar -jcvf /root/backup.tar.bz2*
mkdir /test
tar -jxvf /root/backup.tar.bz2 -C /test/
NEW QUESTION # 78
How does Vagrant run virtual machines?
- A. Vagrant uses so-called provides which control external hypervisors such as VirtualBox.
- B. Vagrant uses a vagrant-specific hypervisor called VagrantVM.
- C. Vagrant has to be run within a running virtual machine which is not controlled by Vagrant.
- D. Vagrant generates virtual machine images but does not provide a mechanism to run them.
- E. Vagrant ships with an embedded version of VirtualBox.
Answer: A
NEW QUESTION # 79
SIMULATION
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:
See explanation below.
Explanation/Reference:
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 # 80
Which of the following commands lists the cookbooks available on a Chef server?
- A. chef-server cookbook list
- B. kitchen cookbook list
- C. knife cookbook list
- D. chef-solo cookbook list
- E. chef-client cookbook list
Answer: A
NEW QUESTION # 81
If a Dockerfilereferences the container's base image without a specific version tag, which tag of that image
is used to create the container?
- A. nightly
- B. default
- C. latest
- D. lts
- E. current
Answer: C
Explanation:
Explanation
Explanation/Reference:
Reference https://docs.docker.com/engine/reference/commandline/build/
NEW QUESTION # 82
Search a String
Find out all the columns that contains the string seismic within /usr/share/dict/words, then copy all these columns to /root/lines.tx in original order, there is no blank line, all columns must be the accurate copy of the original columns.
Answer:
Explanation:
see explanation below.
Explanation
grep seismic /usr/share/dict/words> /root/lines.txt
NEW QUESTION # 83
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.
Answer:
Explanation:
Answer see in the explanation.
Explanation/Reference:
# 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>
NEW QUESTION # 84
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:
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 # 85
Configure a user account.
Create a user iaruid is 3400. Password is redhat
Answer:
Explanation:
see explanation below.
Explanation
useradd -u 3400 iar
passwd iar
NEW QUESTION # 86
How does Prometheus gather information about monitored hosts and services?
- A. It uses HTTP to retrieve JSON encoded metrics from the monitored objects.
- B. It runs scripts on the Prometheus server which perform tests and return various metrics.
- C. It implements the ICMP and SNMP protocols to ping and query remote services.
- D. It opens a webhook where monitored applications have to submit various metrics.
- E. It queries a relational database for metrics written to the database by monitored applications.
Answer: B
Explanation:
Explanation/Reference:
Reference https://dzone.com/articles/monitoring-with-prometheus
NEW QUESTION # 87
SIMULATION
One Logical Volume named /dev/test0/testvolume1 is created. The initial Size of that disk is 100MB now you required more 200MB. Increase the size of Logical Volume, size should be increase on online.
Answer:
Explanation:
See explanation below.
Explanation/Reference:
Explanation:
lvextend -L+200M /dev/test0/testvolume1 Use lvdisplay /dev/test0/testvolume1) ext2online -d /dev/test0/testvolume1 lvextend command is used the increase the size of Logical Volume. Other command lvresize command also here to resize. And to bring increased size on online we use the ext2online command.
NEW QUESTION # 88
Configure your Host Name, IP Address, Gateway and DNS.
Host name: station.domain40.example.com
/etc/sysconfig/network
hostname=abc.com
hostname abc.com
IP Address:172.24.40.40/24
Gateway172.24.40.1
DNS:172.24.40.1
Answer:
Explanation:
# cd /etc/syscofig/network-scripts/
# ls
# vim ifcfg-eth0 (Configure IP Address, Gateway and DNS) IPADDR=172.24.40.40 GATEWAY=172.24.40.1 DNS1=172.24.40.1
# vim /etc/sysconfig/network
(Configure Host Name)
HOSTNAME= station.domain40.example.com
OR
Graphical Interfaces:
System->Preference->Network Connections (Configure IP Address, Gateway and DNS) Vim /etc/sysconfig/network (Configure Host Name)
NEW QUESTION # 89
1. Find all sizes of 10k file or directory under the /etc directory, and copy to /tmp/findfiles directory.
2. Find all the files or directories with Lucy as the owner, and copy to /tmp/findfiles directory.
Answer:
Explanation:
(1)find /etc -size 10k -exec cp {} /tmp/findfiles \;
(2)find / -user lucy -exec cp -a {} /tmp/findfiles \;
Note: If find users and permissions, you need to use cp - a options, to keep file permissions and user attributes etc.
NEW QUESTION # 90
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).
Answer:
Explanation:
see explanation below.
Explanation
* if=/dev/zero of=/swapfile bs=1M count=600 mkswap /swapfile
/etc/fstab:
/swapfile swap swap defaults 0 0 mount -a
NEW QUESTION # 91
Create a Shared Directory.
Create a shared directory /home/admins, make it has the following characteristics:
/home/admins belongs to group adminuser
This directory can be read and written by members of group adminuser Any files created in /home/ admin, group automatically set as adminuser.
Answer:
Explanation:
see explanation below.
Explanation
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
NEW QUESTION # 92
There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL6 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server. How will make successfully ping to 192.168.1.0/24 Network's Host?
Answer:
Explanation:
see explanation below.
Explanation
* vi /etc/sysconfig/network GATEWAY=192.168.0.254
OR
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.?
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
* service network restart
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address 192.168.0.254 and 192.168.1.254.
NEW QUESTION # 93
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 # 94
Configure the permissions of /var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that:
the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root.
the file /var/tmp/fstab should not be executable by anyone.
the user natasha is able to read and write /var/tmp/fstab.
the user harry can neither write nor read /var/tmp/fstab.
all other users (current or future) have the ability to read /var/tmp/fstab.
Answer:
Explanation:
cp -a /etc/fstab /var/tmp
cd /var/tmp
ls -l
getfacl /var/tmp/fstab
chmod ugo-x /var/tmp/fstab
[ No need to do this, there won't be execute permission for the file by default]
# setfacl -m u:natasha:rw /var/tmp/fstab # setfacl -m u:harry:0 /var/tmp/fstab(zero)
[Read permission will be there for all the users, by default. Check it using ls -l /var/tmp/fstab] Verify by
[ ls -la /var/tmp/fstab]
NEW QUESTION # 95
......
RedHat EX200 exam is a comprehensive exam that requires a thorough understanding of various Linux concepts and technologies. EX200 exam is designed to test the candidate's ability to perform various tasks related to Linux system administration in a real-world scenario. Red Hat Certified System Administrator - RHCSA certification is highly valued by employers, and individuals who hold the certification are in high demand in the job market. EX200 exam is challenging, but with the right preparation and practice, candidates can pass the exam and earn the certification.
Valid EX200 Exam Dumps Ensure you a HIGH SCORE: https://protechtraining.actualtestsit.com/RedHat/EX200-exam-prep-dumps.html