[2022年06月09日] 最新EX200試験問題集には高得点で一発合格 [Q52-Q76]

Share

[2022年06月09日] 最新EX200試験問題集には高得点で一発合格

無料提供中EX200ブレーン問題集とEX200リアル試験問題


RedHat EX200 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • Managing Users and Groups
トピック 2
  • Working with Kernel Modules|Registering the System and Attaching Subscriptions

 

質問 52
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

 

質問 53
CORRECT TEXT
Create a 2G swap partition which take effect automatically at boot-start, and it should not affect the original swap partition.

正解:

解説:
# 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
theextended 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)

 

質問 54
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.

正解:

解説:
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

 

質問 55
Configure your Host Name, IP Address, Gateway and DNS.
Host name: dtop5.dn.ws.com
IP Address: 172.28.10.5/4
Gateway: 172.28.10.1
DNS: 172.28.10.1

正解:

解説:
Configure Host Name
vim /etc/sysconfig/network NETWORKING=yes HOSTNAME=dtop5.dn.ws.com GATEWAY=172.28.10.1
2. Configure IP Address, Gateway and DNS
Configure the network by Network Manager:

Note: Please remember to choose two options:
Connect automatically
Available to all users
Click "Apply", save and exit, and restart your network services:
# Service network restart
3. Validate these profiles:
a) Check gateway: # vim / etc / sysconfig / network
NETWORKING=yes
HOSTNAME=dtop5.dn.ws.com
GATEWAY=172.28.10.1
b) Check Host Name: # vim /etc/hosts

c) Check DNS: # vim /etc/resolv.conf
# Generated by NetworkManager
Search dn.ws.com
Nameserver 172.28.10.1
d) Check Gateway: # vim /etc/sysconfig/network-scripts/ifcfg-eth0

 

質問 56
Create a collaborative directory/home/admins with the following characteristics:
Group ownership of /home/admins is adminuser
The directory should be readable, writable, and accessible to members of adminuser, but not to any other user.
(It is understood that root has access to all files and directories on the system.) Files created in /home/admins automatically have group ownership set to the adminuser group

正解:

解説:
see explanation below.
Explanation
mkdir /home/admins
chgrp -R adminuser /home/admins
chmodg+w /home/admins
chmodg+s /home/admins

 

質問 57
Configure /var/tmp/fstab Permission.
Copy the file /etc/fstab to /var/tmp/fstab. Configure var/tmp/fstab permissions as the following:
Owner of the file /var/tmp/fstab is Root, belongs to group root
File /var/tmp/fstab cannot be executed by any user
User natasha can read and write /var/tmp/fstab
User harry cannot read and write /var/tmp/fstab
All other users (present and future) can read var/tmp/fstab.

正解:

解説:
cp /etc/fstab /var/tmp/
/var/tmp/fstab view the owner setfacl -m u:natasha:rw- /var/tmp/fstab setfacl -m u:haryy:--- /var/tmp/fstab Use getfacl /var/tmp/fstab to view permissions

 

質問 58
CORRECT TEXT
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

 

質問 59
Find the rows that contain abcde from file /etc/testfile, and write it to the file/tmp/testfile, and the sequence is requested as the same as /etc/testfile.

正解:

解説:
Answer see in the explanation.
Explanation/Reference:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile

 

質問 60
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.

正解:

解説:
grep seismic /usr/share/dict/words> /root/lines.txt

 

質問 61
What does the command packer validate template.jsondo?

  • A. The command verifies that the latest build of the template can be run without downloading additional
    images or artifacts.
  • B. The command verifies that all source images referenced in template.jsonare available and have valid
    cryptographic signatures.
  • C. The command verifies that the file template.jsonis a syntactically correct and complete Packer
    template.
  • D. The command verifies that all existing artifacts generated by template.jsonhave their original
    checksums.
  • E. The command verifies that images generated previously by template.jsonstill use the most recent
    source images.

正解: C

解説:
Explanation/Reference:
Reference https://www.packer.io/docs/commands/validate.html

 

質問 62
Part 1 (on Node1 Server)
Task 11 [Scheduling Future Tasks]
The user natasha must configure a cron job that runs daily at 14:23 local time and also the same cron job will run after every 2 minutes and executes:
/bin/echo hello

正解:

解説:
* [root@node1 ~]# crontab -l -u natasha
no crontab for natasha
[root@node1 ~]# crontab -e -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
crontab: installing new crontab
[root@node1 ~]# crontab -l -u natasha
23 14 * * * /bin/echo hello
*/2 * * * * /bin/echo 2min
[root@node1 ~]# systemctl status crond.service
* ### For Checking ###
[root@node1 ~]# tail -f /var/log/cron
Mar 23 13:23:48 node1 crontab[10636]: (root) REPLACE (natasha)
Mar 23 13:23:48 node1 crontab[10636]: (root) END EDIT (natasha)
Mar 23 13:23:50 node1 crontab[10638]: (root) LIST (natasha)
Mar 23 13:24:01 node1 crond[1349]: (root) FAILED (loading cron table)
Mar 23 13:24:02 node1 CROND[10673]: (natasha) CMD (/bin/echo 2min)

 

質問 63
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.

正解:

解説:
see explanation below.
Explanation
grep seismic /usr/share/dict/words> /root/lines.txt

 

質問 64
SIMULATION
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.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation: grep seismic /usr/share/dict/words > /root/lines.txt

 

質問 65
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.)

正解:

解説:
# 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

 

質問 66
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).

正解:

解説:
if=/dev/zero of=/swapfile bs=1M count=600 mkswap /swapfile
/etc/fstab:
/swapfile swap swap defaults 0 0 mount -a

 

質問 67
Successfully resolve to server1.example.com where your DNS server is 172.24.254.254.

正解:

解説:
see explanation below.
Explanation
* vi /etc/resolv.conf
nameserver 172.24.254.254
* host server1.example.com
On every clients, DNS server is specified in /etc/resolv.conf. When you request by name it tries to resolv from DNS server.

 

質問 68
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 dat a. As well as size should be increased online.

正解:

解説:
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.

 

質問 69
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.

正解:

解説:
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

 

質問 70
Which of the following mechanisms are used for service discovery in a container environment? (Choose two
correct answers.)

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

正解: B,D

 

質問 71
Configure a default software repository for your system.
One
YUM has already provided to configure your system on http://server.domain11.example.com/pub/ x86_64/Server, and can be used normally.

正解:

解説:
see explanation below.
Explanation
Yum-config-manager
--add-repo=http://content.example.com/rhel7.0/x86-64/dvd" is to generate a file vim content.example.com_rhel7.0_x86_64_dvd.repo, Add a line gpgcheck=0 Yumcleanall Yumrepolist Almost 4305 packages are right, Wrong Yum Configuration will lead to some following questions cannot be worked out.

 

質問 72
Create a swap space, set the size is 600 MB, and make it be mounted automatically after rebooting the system (permanent mount).

正解:

解説:
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

 

質問 73
SIMULATION
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.

正解:

解説:
See explanation below.
Explanation/Reference:
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

 

質問 74
SIMULATION
Resize the logical volume vo and its filesystem to 290 MB. Make sure that the filesystem contents remain intact.
Note: Partitions are seldom exactly the same size requested, so a size within the range of 260 MB to 320 MiB is acceptable.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation:
df -hT
lvextend -L +100M /dev/vg0/vo
lvscan
xfs_growfs /home/ // home is LVM mounted directory
Note: This step is only need to do in our practice environment, you do not need to do in the real exam resize2fs /dev/vg0/vo // Use this comand to update in the real exam df -hT OR e2fsck -f/dev/vg0/vo umount /home resize2fs /dev/vg0/vo required partition capacity such as 100M lvreduce -l 100M /dev/vg0/vo mount /dev/ vg0/vo /home df -Ht

 

質問 75
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.

正解:

解説:
# 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)

 

質問 76
......

EX200合格させる問題集でRedHat24時間で試験合格できます:https://www.goshiken.com/RedHat/EX200-mondaishu.html

RedHat EX200実際の問題とブレーン問題集:https://drive.google.com/open?id=10gtv8b3eAIGSyuf9oJsneiveAlqrL0xf