[2024年01月]更新のRedHat EX200試験練習テスト問題 [Q68-Q93]

Share

[2024年01月]更新のRedHat EX200試験練習テスト問題

更新された認定試験EX200問題集で練習テスト問題


Red Hat EX200認定は、IT業界で非常に高く評価されています。これは、システム管理の分野における候補者の専門知識を示す業界認定であり、世界中の雇用主に広く認められ、尊重されています。この認定は、候補者に競争力を提供し、彼らを他の人々と区別することができます。

 

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

正解:

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


質問 # 69
SIMULATION
Create a backup
Create a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation:
cd /usr/local
tar -jcvf /root/backup.tar.bz2
mkdir /test
tar -jxvf /root/backup.tar.bz2 -C /test// Decompression to check the content is the same as the /usr/loca after If the questions require to use gzip to compress. change -j to -z.


質問 # 70
One Package named zsh is dump on ftp://server1.example.com under /pub/updates directory and your FTP server is 192.168.0.254. Install the package zsh.

正解:

解説:
see explanation below.
Explanation
* rpm -ivh ftp://server1/example.com/pub/updates/zsh-*
or
* Login to ftp server : ftp ftp://server1.example.com using anonymous user.
* Change the directory: cd pub and cd updates
* Download the package: mget zsh-*
* Quit from the ftp prompt : bye
* Install the package
* rpm -ivh zsh-*
* Verify either package is installed or not : rpm -q zsh


質問 # 71
There is a server having 172.24.254.254 and 172.25.254.254. Your System lies on 172.24.0.0/16. Make successfully ping to 172.25.254.254 by Assigning following IP: 172.24.0.x where x is your station number.

正解:

解説:
Use netconfig command
Enter the IP Address as given station number by your examiner: example: 172.24.0.1 Enter Subnet Mask Enter Default Gateway and primary name server press on ok ifdown eth0 ifup eth0 verify using ifconfig In the lab server is playing the role of router, IP forwarding is enabled. Just set the Correct IP and gateway, you can ping to 172.25.254.254.


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

正解:

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


質問 # 73
Configure the system synchronous as 172.24.40.10.

正解:

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


質問 # 74
Create User Account.
Create the following user, group and group membership:
Adminuser group
User natasha, using adminuser as a sub group
User Harry, also using adminuser as a sub group
User sarah, can not access the SHELL which is interactive in the system, and is not a member of adminuser, natasha,harry,sarah password is redhat.

正解:

解説:
groupadd adminuser
useradd natasha -G adminuser
useradd haryy -G adminuser
useradd sarah -s /sbin/nologin
Passwd user name // to modify password or echo redhat | passwd --stdin user name id natasha // to view user group.


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

正解:

解説:
mkdir -p /common/admin
chgrp admin /common/admin
chmod 2770 /common/admin


質問 # 76
Upgrade the kernel, start the new kernel by default. kernel download from this address:
ftp://server1.domain10.example.com/pub/update/new.kernel

正解:

解説:
Download the new kernel file and then install it.
[root@desktop8 Desktop]# ls
kernel-2.6.32-71.7.1.el6.x86_64.rpm
kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm
[root@desktop8 Desktop]# rpm -ivh kernel-*
Preparing... ###########################################
[100%]
1:kernel-firmware
########################################### [ 50%]
2:kernel
########################################### [100%]
Verify the grub.conf file, whether use the new kernel as the default boot. [root@desktop8 Desktop]# cat /boot/grub/grub.conf default=0 title Red Hat Enterprise Linux Server (2.6.32-71.7.1.el6.x86_64) root (hd0,0) kernel /vmlinuz-2.6.32-71.7.1.el6.x86_64 ro root=/dev/mapper/vol0-root rd_LVM_LV=vol0/root rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us crashkernel=auto rhgb quiet initrd /initramfs-2.6.32-71.7.1.el6.x86_64.img


質問 # 77
Who ever creates the files/directories on a data group owner should automatically be in the same group owner as data.

正解:

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


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


質問 # 79
/data Directory is shared from the server1.example.com server. Mount the shared directory that:
a. when user try to access, automatically should mount
b. when user doesn't use mounted directory should unmount automatically after 50 seconds.
c. shared directory should mount on /mnt/data on your machine.

正解:

解説:
see explanation below.
Explanation
1. vi /etc/auto.master
/mnt /etc /auto.misc --timeout=50
* vi /etc/auto.misc
* data -rw,soft,intr server1.example.com:/data
* service autofs restart
* chkconfig autofs on
When you mount the other filesystem, you should unmount the mounted filesystem, Automount feature of linux helps to mount at access time and after certain seconds, when user unaccess the mounted directory, automatically unmount the filesystem.
/etc/auto.master is the master configuration file for autofs service. When you start the service, it reads the mount point as defined in /etc/auto.master.


質問 # 80
Create a user alex with a userid of 3400. The password for this user should be redhat.

正解:

解説:
useradd -u 3400 alex
passwd alex
su -alex


質問 # 81
One Logical Volume is created named as myvol under vo volume group and is mounted. The Initial Size of that Logical Volume is 400MB. Make successfully that the size of Logical Volume 200MB without losing any data. The size of logical volume 200MB to 210MB will be acceptable.

正解:

解説:
see explanation below.
Explanation
* First check the size of Logical Volume: lvdisplay /dev/vo/myvol
* Make sure that the filesystem is in a consistent state before reducing:
# fsck -f /dev/vo/myvol
* Now reduce the filesystem by 200MB.
# resize2fs /dev/vo/myvol 200M
* It is now possible to reduce the logical volume. #lvreduce /dev/vo/myvol -L 200M
* Verify the Size of Logical Volume: lvdisplay /dev/vo/myvol
* Verify that the size comes in online or not: df -h


質問 # 82
A
YUM repository has been provided at http://server.domain11.example.com/pub/x86_64/Server.
Configure your system to use this location as a default repository.

正解:

解説:
see explanation below.
Explanation
vim/etc/yum.repos/base.repo
[base]
name=base
baseurl
http://server.domain11.example.com/pub/x86_64/Server
gpgcheck=0
enable=1
Save and Exit
Use yum list for validation, the configuration is correct if list the package information. If the Yum configuration is not correct then maybe cannot answer the following questions.


質問 # 83
SIMULATION
Make on /archive directory that only the user owner and group owner member can fully access.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation:
chmod 770 /archive
Verify using : ls -ld /archive Preview should be like:
drwxrwx--- 2 root sysuser 4096 Mar 16 18:08 /archive
To change the permission on directory we use the chmod command. According to the question that only the owner user (root) and group member (sysuser) can fully access the directory so: chmod 770 /archive


質問 # 84
Part 1 (on Node1 Server)
Task 16 [Running Containers]
Configure your host journal to store all journal across reboot
Copy all journal files from /var/log/journal/ and put them in the /home/shangrila/container-logserver Create and mount /home/shangrila/container-logserver as a persistent storage to the container as /var/log/ when container start

正解:

解説:
* [shangrila@node1 ~]$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
d5ffe018a53c registry.domain15.example.com:5000/rhel8/rsyslog:latest /bin/rsyslog.sh 5 seconds ago Up 4 seconds ago logserver
[shangrila@node1 ~]$ podman stats logserver
Error: stats is not supported in rootless mode without cgroups v2
[shangrila@node1 ~]$ podman stop logserver
d5ffe018a53ca7eb075bf560d1f30822ab6fe51eba58fd1a8f370eda79806496
[shangrila@node1 ~]$ podman rm logserver
Error: no container with name or ID logserver found: no such container
[shangrila@node1 ~]$ mkdir -p container-journal/
* [shangrila@node1 ~]$ sudo systemctl restart systemd-journald
[sudo] password for shangrila:
[shangrila@node1 ~]$ sudo cp -av /var/log/journal/* container-journal/
[shangrila@node1 ~]$ sudo cp -av /var/log/journal/* container-journal/
[shangrila@node1 ~]$ sudo chown -R shangrila container-journal/
[shangrila@node1 ~]$ podman run -d --name logserver -v /home/shangrila/container-journal/:/var/log/journal:Z registry.domain15.example.com:5000/rhel8/rsyslog
[shangrila@node1 ~]$ podman ps
[shangrila@node1 ~]$ loginctl enable-linger
[shangrila@node1 ~]$ loginctl show-user shangrila|grep -i linger
Linger=yes
* [shangrila@node1 ~]$ podman stop logserver
[shangrila@node1 ~]$ podman rm logserver
[shangrila@node1 ~]$ systemctl --user daemon-reload
[shangrila@node1 ~]$ systemctl --user enable --now container-logserver
[shangrila@node1 ~]$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
3903e1d09170 registry.domain15.example.com:5000/rhel8/rsyslog:latest /bin/rsyslog.sh 4 seconds ago Up 4 seconds ago logserver
[shangrila@node1 ~]$ systemctl --user stop container-logserver.service
* [shangrila@node1 ~]$ sudo reboot
[shangrila@node1 ~]$ podman ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7e6cd59c506a registry.domain15.example.com:5000/rhel8/rsyslog:latest /bin/rsyslog.sh 10 seconds ago Up 9 seconds ago logserver


質問 # 85
SIMULATION
SELinux must be running in the Enforcing mode.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation:
getenforce // Check the current mode of SELinux // SELinux runs in enforcing mode // Check getenforce 1 getenforce vim /etc/selinux/config selinux=enforcing // To temporarily enable SELinux
:wg
sestatus


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

正解:

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


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


質問 # 88
Please open the ip_forward, and take effect permanently.

正解:

解説:
vim /etc/sysctl.conf net.ipv4.ip_forward = 1
sysctl -w (takes effect immediately)
If no "sysctl.conf" option, use these commands:
sysctl -a |grep net.ipv4
sysctl -P net.ipv4.ip_forward = 1
sysctl -w


質問 # 89
CORRECT TEXT
Create a volume group,and set 8M as a extends. Divided a volume group containing 50 extends on volume group lv (lvshare), make it as ext4 file system, and mounted automatically under /mnt/data. And the size of the floating range should set between 380M and 400M.

正解:

解説:
# fdisk
# partprobe
# pvcreate /dev/vda6
# vgcreate -s 8M vg1 /dev/vda6 -s
# lvcreate -n lvshare -l 50 vg1 -l
# mkfs.ext4 /dev/vg1/lvshare
# mkdir -p /mnt/data
# vim /etc/fstab
/dev/vg1/lvshare /mnt/data ext4 defaults 0 0
# mount -a
# df -h


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

正解:

解説:
see explanation below.
Explanation
Download the file to /tmp first
grep [abcde] /tmp/testfile > /mnt/answer


質問 # 91
Make on data that only the user owner and group owner member can fully access.

正解:

解説:
chmod 770 /data
Verify using : ls -ld /data Preview should be like:
drwxrwx--- 2 root sysadmin 4096 Mar 16 18:08 /data
To change the permission on directory we use the chmod command.
According to the question that only the owner user (root) and group member (sysadmin) can fully access the directory so: chmod 770 /data


質問 # 92
SIMULATION
Search files.
Find out files owned by jack, and copy them to directory /root/findresults

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation: mkdir/root/findfiles
find / -user jack -exec cp -a {} /root/findfiles/ \; ls /root/findresults


質問 # 93
......

更新された検証済みのEX200問題集と解答で合格保証もしくは全額返金:https://www.jpntest.com/shiken/EX200-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡