RedHatは2024年最新のEX200テスト解説(更新されたのは136問があります)
EX200試験問題集を提供していますRedHat問題
質問 # 54
CORRECT TEXT
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.
正解:
解説:
# useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat
質問 # 55
Find the files owned by harry, and copy it to catalog: /opt/dir
正解:
解説:
Answer see in the explanation.
Explanation/Reference:
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
質問 # 56
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.
正解:
解説:
# cat /etc/grub.conf
# cd /boot
# lftp it
# get dr/dom/kernel-xxxx.rpm
# rpm -ivh kernel-xxxx.rpm
# vim /etc/grub.conf
default=0
質問 # 57
SIMULATION
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.
正解:
解説:
See explanation below.
Explanation/Reference:
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.
質問 # 58
Create a user named alex, and the user id should be 1234, and the password should be alex111.
正解:
解説:
see explanation below.
Explanation
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex
質問 # 59
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.
正解:
解説:
see explanation below.
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
質問 # 60
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
正解:
解説:
see explanation below.
Explanation
# 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
8 I
82
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)
質問 # 61
How does Vagrant run virtual machines?
- A. Vagrant has to be run within a running virtual machine which is not controlled by Vagrant.
- B. Vagrant uses a vagrant-specific hypervisor called VagrantVM.
- C. Vagrant ships with an embedded version of VirtualBox.
- D. Vagrant generates virtual machine images but does not provide a mechanism to run them.
- E. Vagrant uses so-called provides which control external hypervisors such as VirtualBox.
正解:E
質問 # 62
Add users: user2, user3.
The Additional group of the two users: user2, user3 is the admin group Password: redhat
正解:
解説:
# useradd -G admin user2
# useradd -G admin user3
# passwd user2
redhat
# passwd user3
redhat
質問 # 63
Some users home directory is shared from your system. Using showmount -e localhost command, the shared directory is not shown. Make access the shared users home directory.
正解:
解説:
see explanation below.
Explanation
* Verify the File whether Shared or not ? : cat /etc/exports
* Start the nfs service: service nfs start
* Start the portmap service: service portmap start
* Make automatically start the nfs service on next reboot: chkconfig nfs on
* Make automatically start the portmap service on next reboot: chkconfig portmap on
* Verify either sharing or not: showmount -e localhost
* Check that default firewall is running on system?
If running flush the iptables using iptables -F and stop the iptables service.
質問 # 64
Copy /etc/fstab document to /var/TMP directory. According the following requirements to configure the permission of this document.
The owner of this document must be root.
This document belongs to root group.
User mary have read and write permissions for this document.
User alice have read and execute permissions for this document.
Create user named bob, set uid is 1000. Bob have read and write permissions for this document.
All users has read permission for this document in the system.
正解:
解説:
cp /etc/fstab /var/tmp
chown root:root /var/tmp/fstab
chmod a-x /var/tmp/fstab
setfacl -m u:mary:rw /var/tmp/fstab
setfacl -m u:alice:rx /var/tmp/fstab
useradd -u 1000 bob
質問 # 65
You have a domain named www.rhce.com associated IP address is 192.100.0.2. Configure the Apache web server by implementing the SSL for encryption communication.
正解:
解説:
vi /etc/httpd/conf.d/ssl.conf <VirtualHost 192.100.0.2> ServerName www.rhce.com DocumentRoot /var/www/rhce DirectoryIndex index.html index.htm ServerAdmin [email protected] SSLEngine on SSLCertificateFile /etc/httpd/conf/ssl.crt/server.crt SSLCertificateKeyFile /etc/httpd/conf/ssl.key/server.key </VirtualHost> cd /etc/httpd/conf
3 make testcert
Create the directory and index page on specified path. (Index page can download from ftp://server1.example.com at exam time) service httpd start|restart chkconfig httpd on Apache can provide encrypted communications using SSL (Secure Socket Layer). To make use of encrypted communication, a client must request to https protocol, which is uses port 443. For HTTPS protocol required the certificate file and key file.
質問 # 66
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.
正解:
解説:
see explanation below.
Explanation
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins
質問 # 67
Configure the NTP service in your system.
正解:
解説:
system-config-date &
質問 # 68
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. A new volume is created and mounted to /data/ within the new container.
- B. Changes to files within /data/ affect the Docker image and all other containers derived from it.
- C. Existing files from /data/ in the image are copied to the new volume.
- D. An error is raised because /data/ already contains data when the volume is mounted.
- E. Files existing in /data/ in the image are not available in the running container.
正解:A、C
質問 # 69
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.
正解:
解説:
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.
質問 # 70
Create a volume group, and set 16M as a extends. And divided a volume group containing 50 extends on volume group lv, make it as ext4 file system, and mounted automatically under /mnt/data.
正解:
解説:
Answer see in the explanation.
Explanation/Reference:
# pvcreate /dev/sda7 /dev/sda8
# vgcreate -s 16M vg1 /dev/sda7 /dev/sda8
# lvcreate -l 50 -n lvm02
# mkfs.ext4 /dev/vg1/lvm02
# blkid /dev/vg1/lv1
# vim /etc/fstab
# mkdir -p /mnt/data
UUID=xxxxxxxx /mnt/data ext4 defaults 0 0
# vim /etc/fstab
# mount -a
# mount
(Verify)
質問 # 71
Locate all the files owned by ira and copy them to the / root/findresults directory.
正解:
解説:
see explanation below.
Explanation
# find / -user ira > /root/findresults (if /root/findfiles is a file)
# mkdir -p /root/findresults
# find / -user ira -exec cp -a {} /root/findresults\; [ if /root/findfiles is a directory] ls /root/findresults
質問 # 72
SIMULATION
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.
正解:
解説:
See explanation below.
Explanation/Reference:
Explanation: # 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
8 I
82
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)
質問 # 73
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
正解:
解説:
* [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
質問 # 74
Notes:
NFS NFS instructor.example.com:/var/ftp/pub/rhel6/dvd
YUM
http://instructor.example.com/pub/rhel6/dvd
正解:
解説:
ldap http//instructor.example.com/pub/EXAMPLE-CA-CERT
Install dialog package.
yum install dialog
質問 # 75
SIMULATION
Configure your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.
正解:
解説:
See explanation below.
Explanation/Reference:
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
質問 # 76
Create a user named alex, and the user id should be 1234, and the password should be alex111.
正解:
解説:
# useradd -u 1234 alex
# passwd alex
alex111
alex111
OR
echo alex111|passwd -stdin alex
質問 # 77
......
EX200認定ガイドPDFは100%カバー率でリアル試験問題:https://www.goshiken.com/RedHat/EX200-mondaishu.html
合格させるEX200レビューガイド、信頼され続けるEX200テストエンジン:https://drive.google.com/open?id=1FZZiE2gZHEJowTdGbXkQ46zdyKIpzxIi