
Updated Sep-2021 Test Engine or PDF for the RedHat EX200 test to help you quickly prepare for the RedHat exam!
Full EX200 Practice Test and 110 unique questions with explanations waiting just for you, get it now!
NEW QUESTION 54
Configure
your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.
Answer:
Explanation:
see explanation below.
Explanation
cd /var/www/html
wget
http://instructor.example.com/pub/serverX.html mv serverX.html index.html /etc/init.d/httpd restart chkconfig httpd on
NEW QUESTION 55
A service should be provided to arbitrary clients on the Internet using HTTPS. Any standard client on the
Internet should be able to consume the service without further configuration. Which of the following
approaches can be used to implement these requirements? (Choose three correct answers.)
- A. Use a certificate issuing service to request certificates during each server deployment.
- B. Install a wildcard certificate and the respective private key on all the backend servers.
- C. Generate a self-signed certificates during the deployment of each backend server.
- D. Use a load balancer that decrypts incoming requests and passes them on in plain HTTP.
- E. Configure the web servers to not use a server certificate when serving HTTPS.
Answer: A,C,D
NEW QUESTION 56
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 57
Add admin group and set gid=600
Answer:
Explanation:
Answer see in the explanation.
Explanation/Reference:
# groupadd -g 600 admin
NEW QUESTION 58
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat
Answer:
Explanation:
see explanation below.
Explanation
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
NEW QUESTION 59
SIMULATION
According the following requirements, configure autofs service and automatically mount to user's home directory in the ldap domain.
- Instructor.example.com (192.168.0.254) has shared /home/guests/ldapuserX home directory to your system by over NFS export, X is your hostname number.
- LdapuserX's home directory is exist in the instructor.example.com: /home/ guests/ldapuserX
- LdapuserX's home directory must be able to automatically mount to /home/ guests/ldapuserX in your system.
- Home directory have write permissions for the corresponding user.
However, you can log on to the ldapuser1 - ldapuser99 users after verification. But you can only get your corresponding ldapuser users. If your system's hostname is server1.example.com, you can only get ldapuser1's home directory.
Answer:
Explanation:
See explanation below.
Explanation/Reference:
Explanation: mkdir -p /home/guests
cat /etc/auto.master:
/home/guests /etc/auto.ldap
cat /etc/auto.ldap:
ldapuser1 -rw instructor.example.com:/home/guests/ldapuser1
automatically mount all the user's home directory #* -rw instructor.example.com:/home/guests/&
NEW QUESTION 60
A Dockerfilecontains the statements:
COPY data/ /data/
VOLUME /data
What happens when the resulting container is started without any additional volume configuration? (Choose
two correct answers.)
- A. Existing files from /data/ in the image are copied to the new volume.
- B. Changes to files within /data/ affect the Docker image and all other containers derived from it.
- C. Files existing in /data/ in the image are not available in the running container.
- D. An error is raised because /data/ already contains data when the volume is mounted.
- E. A new volume is created and mounted to /data/ within the new container.
Answer: A,E
NEW QUESTION 61
According the following requirements to create a local directory /common/admin.
* This directory has admin group.
* This directory has read, write and execute permissions for all admin group members.
* Other groups and users don't have any permissions.
* All the documents or directories created in the/common/admin are automatically inherit the admin group.
Answer:
Explanation:
see explanation below.
Explanation
mkdir -p /common/admin
chgrp admin /common/admin
chmod 2770 /common/admin
NEW QUESTION 62
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:
see explanation below.
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 63
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
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 64
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 65
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 lastver - index.php
- B. git clean - index.php
- C. git repair - index.php
- D. git revert - index.php
- E. git checkout - index.php
Answer: D
Explanation:
Explanation/Reference:
Reference https://git-scm.com/docs/git-revert
NEW QUESTION 66
CORRECT TEXT
Download ftp://192.168.0.254/pub/boot.iso to /root, and mounted automatically under /media/cdrom and which take effect automatically at boot-start.
Answer:
Explanation:
# cd /root; wget ftp://192.168.0.254/pub/boot.iso
# mkdir -p /media/cdrom
# vim /etc/fstab
/root/boot.iso /media/cdrom iso9660 defaults,loop 0 0
# mount -a
mount [-t vfstype] [-o options] device dir
NEW QUESTION 67
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.
Answer:
Explanation:
see explanation below.
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 68
Create a user named alex, and the user id should be 1234, and the password should be alex111.
Answer:
Explanation:
Answer see in the explanation.
Explanation/Reference:
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex
NEW QUESTION 69
Install a FTP server, and request to anonymous download from /var/ftp/pub catalog. (it needs you to configure yum direct to the already existing file server. )
Answer:
Explanation:
Answer see in the explanation.
Explanation/Reference:
# cd /etc/yum.repos.d
# vim local.repo
[local]
name=local.repo
baseurl=file:///mnt
enabled=1
gpgcheck=0
# yum makecache
# yum install -y vsftpd
# service vsftpd restart
# chkconfig vsftpd on
# chkconfig --list vsftpd
# vim /etc/vsftpd/vsftpd.conf
anonymous_enable=YES
NEW QUESTION 70
Find the files owned by harry, and copy it to catalog: /opt/dir
Answer:
Explanation:
see explanation below.
Explanation
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
NEW QUESTION 71
......
Get Latest EX200 Dumps Exam Questions: https://drive.google.com/open?id=1qalx2bKIrj_qRyoXMlEVwmYTcjLbyEbs
Full EX200 Practice Test and 110 unique questions with explanations waiting just for you, get it now: https://www.passexamdumps.com/EX200-valid-exam-dumps.html
