[2024年08月04日]EX200問題集完全版問題、試験学習ガイド [Q35-Q51]

Share

[2024年08月04日]EX200問題集完全版問題、試験学習ガイド

RHCSA無料認定試験材料GoShikenからの136問題


Red Hat EX200認定試験は、候補者がRHELシステムで複雑な管理タスクを実行する能力を実証する必要がある挑戦的な試験です。この試験は、理論的概念を記憶する能力ではなく、候補者の実践的なスキルと知識をテストするように設計されています。成功した候補者は、雇用主によって高く評価されている生産環境でRHELシステムを管理および管理する能力を実証することができます。

 

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


質問 # 36
Download the document from ftp://instructor.example.com/pub/testfile, find all lines containing [abcde] and redirect to /MNT/answer document, then rearrange the order according the original content.

正解:

解説:
Download the file to /tmp first
grep [abcde] /tmp/testfile > /mnt/answer


質問 # 37
Which configuration option in the Ansible inventory is issued control privilege escalation of the remote user?

  • A. priv_user
  • B. sudo
  • C. super
  • D. become
  • E. elevate

正解:D

解説:
Explanation/Reference:
Reference https://docs.ansible.com/ansible/2.6/user_guide/become.html


質問 # 38
Configure a HTTP server, which can be accessed through http://station.domain40.example.com.
Please download the released page from http://ip/dir/example.html.

正解:

解説:
# yum install -y httpd
# chkconfig httpd on
# cd /var/www/html
# wget http://ip/dir/example.html
# cp example.com index.html
# vim /etc/httpd/conf/httpd.conf
NameVirtualHost 192.168.0.254:80
<VirtualHost 192.168.0.254:80>
DocumentRoot /var/www/html/
ServerName station.domain40.example.com
</VirtualHost>


質問 # 39
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.

正解:

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


質問 # 40
Your System is going to use as a Router for two networks. One Network is 192.168.0.0/24 and Another Network is 192.168.1.0/24. Both network's IP address has assigned. How will you forward the packets from one network to another network?

正解:

解説:
echo "1" >/proc/sys/net/ipv4/ip_forward
vi /etc/sysctl.conf
net.ipv4.ip_forward = 1
If you want to use the Linux System as a Router to make communication between different networks, you need enable the IP forwarding. To enable on running session just set value 1 to
/proc/sys/net/ipv4/ip_forward. As well as automatically turn on the IP forwarding features on next boot set on /etc/sysctl.conf file.


質問 # 41
SIMULATION
Configure NTP.
Configure NTP service, Synchronize the server time, NTP server: classroom.example.com

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation: Configure the client:
Yum -y install chrony
Vim /etc/chrony.conf
Add: server classroom.example.com iburst
Start: systemctl enable chronyd
systemctl restart chronyd
Validate: timedatectl status


質問 # 42
SIMULATION
Create a logical volume
Create a new logical volume as required:
Name the logical volume as database, belongs to datastore of the volume group, size is 50 PE.
Expansion size of each volume in volume group datastore is 16MB.
Use ext3 to format this new logical volume, this logical volume should automatically mount to /mnt/ database

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation: fdisk -cu /dev/vda// Create a 1G partition, modified when needed partx -a /dev/vda pvcreate /dev/vdax vgcreate datastore /dev/vdax -s 16M lvcreate- l 50 -n database datastore mkfs.ext3 /dev/datastore/database mkdir /mnt/database mount /dev/datastore/database /mnt/database/ df -Th vi /etc/fstab
/dev/datastore /database /mnt/database/ ext3 defaults 0 0 mount -a
Restart and check all the questions requirements.


質問 # 43
Configure your NFS services. Share the directory by the NFS Shared services.

正解:

解説:
/etc/init.d/rpcbind start
/etc/init.d/nfslock start
/etc/init.d/nfs start
chkconfig rpcbind on
chkconfig nfslock on
chkconfig nfs on
showmount -e localhost


質問 # 44
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
(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.


質問 # 45
Add user: user1, set uid=601
Password: redhat
The user's login shell should be non-interactive.

正解:

解説:
see explanation below.
Explanation
# useradd -u 601 -s /sbin/nologin user1
# passwd user1
redhat


質問 # 46
CORRECT TEXT
Add 3 users: harry, natasha, tom.
The requirements: The Additional group of the two users: harry, Natasha is the admin group. The
user: tom's login shell should be non-interactive.

正解:

解説:
# useradd -G admin harry
# useradd -G admin natasha
# useradd -s /sbin/nologin tom
# id harry;id Natasha (Show additional group)
# cat /etc/passwd
(Show the login shell)
OR
# system-config-users


質問 # 47
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

正解:

解説:
see explanation below.
Explanation
# 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)


質問 # 48
The user authentication has been provided by ldap domain in 192.168.0.254. According the following requirements to get ldapuser.
-LdapuserX must be able to login your system, X is your hostname number. But the ldapuser's home directory cannot be mounted, until you realize automatically mount by autofs server.
- All ldap user's password is "password".

正解:

解説:
system-config-authentication &


質問 # 49
SIMULATION
Open kmcrl value of 5 , and can verify in /proc/ cmdline

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation:
# vim /boot/grub/grub.conf
kernel/vmlinuz-2.6.32-71.el6.x86_64 ro root=/dev/mapper/GLSvg-GLSrootrd_LVM_LV=GLSvg/GLSroot rd_LVM_LV=GLSvg/GLSswaprd_NO_LUKSrd_NO_MDrd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet kmcrl=5 Restart to take effect and verification:
# cat /proc/cmdline
ro root=/dev/mapper/GLSvg-GLSroot rd_LVM_LV=GLSvg/GLSroot rd_LVM_LV=GLSvg/GLSswap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet kmcrl=5


質問 # 50
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.

正解:

解説:
Use fdisk /dev/hda ->To create new partition.
Type n-> For New partition
It will ask for Logical or Primary Partitions. Press l for logical.
It will ask for the Starting Cylinder: Use the Default by pressing Enter Key.
Type the Size: +100M ->You can Specify either Last cylinder of Size here.
Press P to verify the partitions lists and remember the partitions name. Default System ID is 83 that means Linux Native.
Type t to change the System ID of partition.
Type Partition Number
Type 82 that means Linux Swap.
Press w to write on partitions table.
Either Reboot or use partprobe command.
mkswap /dev/hda? ->To create Swap File system on partition.
swapon /dev/hda? ->To enable the Swap space from partition.
free -m ->Verify Either Swap is enabled or not.
vi /etc/fstab/dev/hda? swap swap defaults 0 0
Reboot the System and verify that swap is automatically enabled or not.


質問 # 51
......

EX200試験の問題集簡単まとめ:https://www.goshiken.com/RedHat/EX200-mondaishu.html

リアルEX200は100% カバー率リアル試験問題を使おう:https://drive.google.com/open?id=1GitlUyrw7-3_v82xTEPkQgq_DPIMb8Sx