EX200 Exam Practice Questions prepared by RedHat Professionals [Q22-Q37]

Share

EX200 Exam Practice Questions prepared by RedHat Professionals

Use Valid New EX200 Questions - Top choice Help You Gain Success


The Red Hat EX200 certification exam is a performance-based exam that tests the candidate's ability to perform real-world tasks on RHEL systems. EX200 exam consists of practical exercises that require the candidate to perform various administrative tasks, such as user and group management, file system management, and network configuration. EX200 exam is conducted in a simulated environment that closely resembles a real-world RHEL system.


RedHat EX200 exam is a performance-based test that evaluates candidates on their ability to perform real-world tasks in a simulated environment. EX200 exam is 2.5 hours long and consists of 20-25 hands-on lab tasks. Candidates must complete these tasks within the given time frame to pass the exam and earn the RHCSA certification.

 

NEW QUESTION # 22
Configure the verification mode of your host account and the password as LDAP. And it can login successfully through ldapuser40. The password is set as "password".
And the certificate 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.

Answer:

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


NEW QUESTION # 23
CORRECT TEXT
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.

Answer:

Explanation:
# cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
# ls -l
-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab


NEW QUESTION # 24
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP Forwarding.
1. echo "1" >/proc/sys/net/ipv4/ip_forward
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1

Answer:

Explanation:
see explanation below.
Explanation
/proc is the virtual filesystem, containing the information about the running kernel.
To change the parameter of running kernel you should modify on /proc. From Next reboot the system, kernel will take the value from /etc/sysctl.conf.


NEW QUESTION # 25
Configure the system synchronous as 172.24.40.10.

Answer:

Explanation:
Answer see in the explanation.
Explanation/Reference:
Graphical Interfaces:
System-->Administration-->Date & Time
OR
# system-config-date


NEW QUESTION # 26
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 # 27
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.

Answer:

Explanation:
chmod g+s /archive
Verify using: ls -ld /archive Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
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 # 28
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 # 29
Which of the following gitcommands is used to manage files in a repository? (Choose two correct answers.)

  • A. git mv
  • B. git rm
  • C. git copy
  • D. git move
  • E. git cp

Answer: A,B


NEW QUESTION # 30
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 # 31
Which of the following statements are true about Jenkins? (Choose two correct answers.)

  • A. Jenkins can delegate tasks to slave nodes.
  • B. Jenkins includes a series of integrated testing suites.
  • C. Jenkins' functionality is determined by plugins.
  • D. Jenkins is specific to Java based applications.
  • E. Jenkins only works on local files and cannot use SCM repositories.

Answer: A,B


NEW QUESTION # 32
Which of the following mechanisms are used for service discovery in a container environment? (Choose two
correct answers.)

  • A. The container platform mounts the sockets for all available services into the container's file systems.
  • B. The container platform offers a command like docker service discoverwhich should be run within a
    container.
  • C. The container platform sets environment variables containing service information within the containers.
  • D. The container platforms maintains DNS records which point to containers offering a specific service.
  • E. The container platform lists localhost ports assigned to containers in each container's /etc/servicesfile.

Answer: C,D


NEW QUESTION # 33
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 # 34
Part 1 (on Node1 Server)
Task 1 [Managing Networking]
Please create new network connection with existing interface (enp1s0) using provided values:
IPv4: 172.25.X.10/255.255.255.0 (where X is your domain number: Domain15) Gateway: 172.25.X.2 DNS server: 172.25.X.2 Add the following secondary IP addresses statically to your current running connection. Do this in a way that does not compromise your existing settings:
IPv4: 10.0.0.5/24 and set the hostname node1.domain15.example.com

Answer:

Explanation:
* [root@node1 ~]# nmcli connection show
[root@node1 ~]# nmcli connection add con-name static ifname enp1s0 type ethernet ipv4.addresses 172.25.15.10/24 ipv4.gateway 172.25.15.2 ipv4.dns 172.25.15.2
[root@node1 ~]# nmcli connection modify static ipv4.method manual connection.autoconnect yes
[root@node1 ~]# nmcli connection modify static +ipv4.addresses 10.0.0.5/24
[root@node1 ~]# nmcli connection up static
[root@node1 ~]# nmcli connection show
[root@node1 ~]# hostnamectl set-hostname node1.domain15.example.com
[root@node1 ~]# hostnamectl status
[root@node1 ~]# nmcli connection down static
* [root@node1 ~]# nmcli connection up static
[root@node1 ~]# ip addr show
[root@node1 ~]# reboot
### For checking ###
[root@node1 ~]# ip addr show
[root@node1 ~]# netstat -nr
[root@node1 ~]# cat /etc/resolv.conf


NEW QUESTION # 35
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 # 36
Configure Container as a Service
As the user "wallah," configure a systemd service for the container:
- Container name: ascii2pdf
- Use the image named pdf created earlier.
- Service name: container-ascii2pdf
- Automatically start the service on system reboot without manual intervention.
- Configure the service to automatically mount /opt/file to /dir1 and /opt/progress to /dir2 in the container upon startup.

Answer:

Explanation:
# Note: Perform the following operations by SSHing into localhost as the user "wallah"
[root@node1 ~]# ssh wallah@localhost
# Prepare the relevant mapping directories
[wallah@node1 ~]$ sudo mkdir /opt/{file,progress}
[wallah@node1 ~]$ sudo chown wallah:wallah /opt/{file,progress}
# Start the container and map directories
# :Z changes the SELinux security context of the directory to allow container access.
[wallah@node1 ~]$ podman run -d --name ascii2pdf -v /opt/file:/dir1:Z -v /opt/progress:/dir2:Z pdf
[wallah@node1 ~]$ podman ps -a
# Create systemd service file
[wallah@node1 ~]$ mkdir -p ~/.config/systemd/user
[wallah@node1 ~]$ cd ~/.config/systemd/user/
[wallah@node1 ~]$ podman generate systemd -n ascii2pdf -f --new
[wallah@node1 user]$ ll
total 4
-rw-r--r--. 1 wallah wallah 770 Dec 13 01:07 container-ascii2pdf.service
# Stop and remove the existing ascii2pdf container
[wallah@node1 ~]$ podman stop ascii2pdf
[wallah@node1 ~]$ podman rm ascii2pdf
[wallah@node1 ~]$ podman ps -a
# Enable and start the container-ascii2pdf service
[wallah@node1 ~]$ systemctl --user daemon-reload
[wallah@node1 ~]$ systemctl --user enable --now container-ascii2pdf
# Check container status
[wallah@node1 ~]$ systemctl --user status container-ascii2pdf
[wallah@node1 ~]$ podman ps
# On node1, switch to the root user to perform the following operations
# Ensure that the services for the wallah user start automatically at system boot
[root@node1 ~]# loginctl enable-linger
[root@node1 ~]# loginctl show-user wallah
# Check to ensure the container starts on boot (mandatory operation)
[root@node1 ~]# reboot
[root@node1 ~]# ssh wallah@node1
[wallah@node1 ~]# podman ps


NEW QUESTION # 37
......

EX200 Exam Practice Materials Collection: https://www.latestcram.com/EX200-exam-cram-questions.html

Get Latest and 100% Accurate EX200 Exam Questions: https://drive.google.com/open?id=1Kq_s2Nkux2qEEhuGrxGILTuqyjJuQRi6