Best Preparations of EX200 Exam 2024 RHCSA Unlimited 136 Questions [Q26-Q46]

Share

Best Preparations of EX200 Exam 2024 RHCSA Unlimited 136 Questions

Focus on EX200 All-in-One Exam Guide For Quick Preparation.

NEW QUESTION # 26
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical volume named lv0 in this volume group, set size is 20 PE, make it as ext3 file system, and mounted automatically under data.

Answer:

Explanation:
see explanation below.
Explanation
fdisk /dev/vda
pvcreate /dev/vda3
vgcreate -s 16M vg0 /dev/vda3
lvcreate -n lv0 -l 20 vg0
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir /data
/etc/fstab:
/dev/mapper/vg0-lv0 /data ext3 defaults 0 0
mount -a
mount | grep data


NEW QUESTION # 27
SIMULATION
Binding to an external validation server.
System server.domain11.example.com provides a LDAP validation service, your system should bind to this service as required:
Base DN of validation service is dc=example,dc=com
LDAP is used for providing account information and validation information Connecting and using the certification of http://server.domain11.example.com/pub/EXAMPLE-CA-CERT to encrypt After the correct configuration, ldapuser1 can log into your system, it does not have HOME directory until you finish autofs questions, ldapuser1 password is password.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: yum -y install sssd authconfig-gtk krb5-workstation authconfig-gtk // open the graphical interface Modify user account database to ldap, fill up DN and LDAP SERVER as questions required, use TLS to encrypt connections making tick, write http://server.domain11.example.com/pub/EXAMPLE-CA-CERT to download ca, authentication method choose ldap password.
You can test if the ldapuser is added by the following command:
Id ldapuser1
Note: user password doesn't not need to set


NEW QUESTION # 28
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 # 29
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 # 30
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:
Answer see in the explanation.
Explanation/Reference:
# 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 # 31
SIMULATION
Configure iptables, there are two domains in the network, the address of local domain is 172.24.0.0/16 other domain is 172.25.0.0/16, now refuse domain 172.25.0.0/16 to access the server.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
iptables -F
service iptables save
iptables -A INPUT -s 172.25.0.0/16 -j REJECT
service iptables save
service iptables restart


NEW QUESTION # 32
Search files.
Find out files owned by jack, and copy them to directory /root/findresults

Answer:

Explanation:
mkdir/root/findfiles
find / -user jack -exec cp -a {} /root/findfiles/ \; ls /root/findresults


NEW QUESTION # 33
CORRECT TEXT
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat

Answer:

Explanation:
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat


NEW QUESTION # 34
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 # 35
Part 1 (on Node1 Server)
Task 9 [Managing Files from the Command Line]
Search the string nologin in the /etc/passwd file and save the output in /root/strings

Answer:

Explanation:
* [root@node1 ~]# cat /etc/passwd | grep nologin > /root/strings
[root@node1 ~]# cat /root/strings
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin


NEW QUESTION # 36
Please open the ip_forward, and take effect permanently.

Answer:

Explanation:
vim /etc/sysctl.conf net.ipv4.ip_forward = 1
sysctl -w (takes effect immediately)
If no "sysctl.conf" option, use these commands:
sysctl -a |grep net.ipv4
sysctl -P net.ipv4.ip_forward = 1
sysctl -w


NEW QUESTION # 37
Configure the NTP service in your system.

Answer:

Explanation:
see explanation below.
Explanation
system-config-date &


NEW QUESTION # 38
Create a user named alex, and the user id should be 1234, and the password should be alex111.

Answer:

Explanation:
see explanation below.
Explanation
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex


NEW QUESTION # 39
The file index.php, which is being maintained in a git repository, was changed locally and contains an error. If
the error has not been committed to the repository yet, which of the following gitcommands reverts the local
copy of index.phpto the latest committed version in the current branch?

  • A. git checkout - index.php
  • B. git revert - index.php
  • C. git clean - index.php
  • D. git lastver - index.php
  • E. git repair - index.php

Answer: B

Explanation:
Explanation/Reference:
Reference https://git-scm.com/docs/git-revert


NEW QUESTION # 40
One Logical Volume named lv1 is created under vg0. The Initial Size of that Logical Volume is 100MB. Now you required the size 500MB. Make successfully the size of that Logical Volume 500M without losing any data. As well as size should be increased online.

Answer:

Explanation:
see explanation below.
Explanation
The LVM system organizes hard disks into Logical Volume (LV) groups. Essentially, physical hard disk partitions (or possibly RAID arrays) are set up in a bunch of equal sized chunks known as Physical Extents (PE). As there are several other concepts associated with the LVM system, let's start with some basic definitions:
Physical Volume (PV) is the standard partition that you add to the LVM mix. Normally, a physical volume is a standard primary or logical partition. It can also be a RAID array.
Physical Extent (PE) is a chunk of disk space. Every PV is divided into a number of equal sized PEs. Every PE in a LV group is the same size. Different LV groups can have different sized PEs.
Logical Extent (LE) is also a chunk of disk space. Every LE is mapped to a specific PE.
Logical Volume (LV) is composed of a group of LEs. You can mount a file system such as /home and /var on an LV.
Volume Group (VG) is composed of a group of LVs. It is the organizational group for LVM. Most of the commands that you'll use apply to a specific VG.
* Verify the size of Logical Volume: lvdisplay /dev/vg0/lv1
* Verify the Size on mounted directory: df -h or df -h mounted directory name
* Use: lvextend -L+400M /dev/vg0/lv1
* ext2online -d /dev/vg0/lv1 to bring extended size online.
* Again Verify using lvdisplay and df -h command.


NEW QUESTION # 41
What implications does container virtualization have for DevOps? (Choose two answers.)

  • A. Containers require application specific adjustment to the container platform.
  • B. Containers let developers test their software under production conditions.
  • C. Containers complicate the deployment of software and require early deployment tests.
  • D. Containers decouple the packaging of an application from its infrastructure.
  • E. Containers require developers to have detailed knowledge of their IT infrastructure.

Answer: B,D

Explanation:
Explanation/Reference:
Reference http://anandmanisankar.com/posts/container-docker-PaaS-microservices/


NEW QUESTION # 42
There are two different networks 192.168.0.0/24 and 192.168.1.0/24. Where 192.168.0.254 and
192.168.1.254 IP Address are assigned on Server. Verify your network settings by pinging 192.168.1.0/24 Network's Host.

Answer:

Explanation:
see explanation below.
Explanation
* vi /etc/sysconfing/network NETWORKING=yes HOSTNAME=station?.example.com GATEWAY=192.168.0.254 service network restart
2.vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=X.X.X.X
NETMASK=X.X.X.X
GATEWAY=192.168.0.254
ifdown eth0
ifup eth0


NEW QUESTION # 43
CORRECT TEXT
Create a catalog under /home named admins. Its respective group is requested to be the admin
group. The group users could read and write, while other users are not allowed to access it. The
files created by users from the same group should also be the admin group.

Answer:

Explanation:
# cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/


NEW QUESTION # 44
Configure the FTP service in your system, allow remote access to anonymous login and download the program by this service. Service is still running after system rebooting.

Answer:

Explanation:
see explanation below.
Explanation
yum install vsftpd
/etc/init.d/vsftpd start
chkconfig vsftpd on


NEW QUESTION # 45
Create the following users, groups, and group memberships:
A group named adminuser.
A user natasha who belongs to adminuser as a secondary group A user harry who also belongs to adminuser as a secondary group.
A user sarah who does not have access to an interactive shell on the system, and who is not a member of adminuser, natasha, harry, and sarah should all have the password of redhat.

Answer:

Explanation:
groupadd sysmgrs
useradd -G sysmgrs Natasha
We can verify the newly created user by cat /etc/passwd)
# useradd -G sysmgrs harry
# useradd -s /sbin/nologin sarrh
# passwd Natasha
# passwd harry
# passwd sarrah


NEW QUESTION # 46
......

Guaranteed Success with EX200 Dumps: https://www.actualcollection.com/EX200-exam-questions.html

Pass RedHat EX200 Exam – Experts Are Here To Help You: https://drive.google.com/open?id=1kxrUHzB8ZKNhEYnskktndzU0BXyuBjTN