RedHat EX200問題集で100%カバー率リアル試験問題(更新された136問あります) [Q39-Q61]

Share

RedHat EX200問題集で100%カバー率リアル試験問題(更新された136問あります)

リアルEX200問題集でリアルRedHat問題集PDF

質問 # 39
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. Changes to files within /data/ affect the Docker image and all other containers derived from it.
  • B. Files existing in /data/ in the image are not available in the running container.
  • 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. A new volume is created and mounted to /data/ within the new container.

正解:C、E


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

正解:

解説:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile


質問 # 41
Configure a user account.
Create a user iaruid is 3400. Password is redhat

正解:

解説:
see explanation below.
Explanation
useradd -u 3400 iar
passwd iar


質問 # 42
Which of the following statements is true about load balancers?

  • A. Load balancer require access to private keys in order to be able to forward HTTPS traffic.
  • B. Load balancers cannot use connection content, such as HTTP cookies, to route traffic.
  • C. Load balancer help to improve the availability and scalability of a service.
  • D. Load balancers are a security risk because they obfuscate the origin of connections.
  • E. Load balancers are a single point of failure because they cannot be deployed redundantly.

正解:C


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


質問 # 44
How is cloud-init integrated with a managed system image?

  • A. cloud-init provides the cloud-init-workercommand which has to be invoked periodically within the
    running instance.
  • B. cloud-init provides its own startup mechanism which replaces the instance's original init system, such as
    systemd.
  • C. cloud-init provides systemd units which must be included in several stages of the booting process of the
    instance.
  • D. cloud-init provides the cloud-init-daemonservice which is launched during startup and keeps the
    instance in sync with the desired configuration.
  • E. cloud-init provides a Linux kernel module that must be included and loaded in the instance's initramfs.

正解:E


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

正解:

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


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


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


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


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


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


質問 # 52
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 dat a. The size of logical volume 200MB to 210MB will be acceptable.

正解:

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


質問 # 53
Part 1 (on Node1 Server)
Task 4 [Controlling Access to Files]
Create collaborative directory /mnt/shares with the following characteristics:
Group ownership of /mnt/shares should be sharegrp.
The directory should be readable, writable and accessible to member of sharegrp but not to any other user. (It is understood that root has access to all files and directories on the system) Files created in /mnt/shares automatically have group ownership set to the sharegrp group.

正解:

解説:
* [root@node1 ~]# mkdir -p /mnt/shares
[root@node1 ~]# ls -lrt /mnt/
[root@node1 ~]# chgrp sharegrp /mnt/shares/
[root@node1 ~]# chmod 2770 /mnt/shares/
[root@node1 ~]# ls -lrt /mnt/
### For Checking ###
[root@node1 ~]# su - harry
[harry@node1 ~]$ cd /mnt/shares/
[harry@node1 shares]$ touch harry
[harry@node1 shares]$ logout
[root@node1 ~]# su - natasha
[natasha@node1 ~]$ cd /mnt/shares/
[natasha@node1 shares]$ touch natasha
[natasha@node1 shares]$ ls -lrt
-rw-rw-r--. 1 harry sharegrp 0 Mar 21 06:03 harry
-rw-rw-r--. 1 natasha sharegrp 0 Mar 21 06:03 natasha


質問 # 54
Create a 512M partition, make it as ext4 file system, mounted automatically under /mnt/data and which take effect automatically at boot-start.

正解:

解説:
Answer see in the explanation.
Explanation/Reference:
# fdisk /dev/vda
n
+512M
w
# partprobe /dev/vda
# mkfs -t ext4 /dev/vda5
# mkdir -p /data
# vim /etc/fstab
/dev/vda5 /data ext4 defaults 0 0
# mount -a


質問 # 55
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)


質問 # 56
How does Prometheus gather information about monitored hosts and services?

  • A. It runs scripts on the Prometheus server which perform tests and return various metrics.
  • B. It queries a relational database for metrics written to the database by monitored applications.
  • C. It opens a webhook where monitored applications have to submit various metrics.
  • D. It implements the ICMP and SNMP protocols to ping and query remote services.
  • E. It uses HTTP to retrieve JSON encoded metrics from the monitored objects.

正解:A

解説:
Explanation/Reference:
Reference https://dzone.com/articles/monitoring-with-prometheus


質問 # 57
SIMULATION
Configure the FTP service in your system, allow remote access to anonymous login and download the program by this service. Service is still running after system rebooting.

正解:

解説:
See explanation below.
Explanation/Reference:
Explanation: yum install vsftpd
/etc/init.d/vsftpd start
chkconfig vsftpd on


質問 # 58
One Domain RHCE is configured in your lab, your domain server is server1.example.com. nisuser2001, nisuser2002, nisuser2003 user are created on your server 192.168.0.254:/rhome/stationx/nisuser2001. Make sure that when NIS user login in your system automatically mount the home directory. Home directory is separately shared on server /rhome/stationx/ where x is your Station number.

正解:

解説:
use the authconfig --nisserver=<NIS SERVER> --nisdomain=<NIS DOMAIN> -- update Example: authconfig --niserver=192.168.0.254 --nisdomain=RHCE --update or system-config-authentication Click on Enable NIS Type the NIS Domain: RHCE Type Server 192.168.0.254 then click on next and ok You will get a ok message.
Create a Directory /rhome/stationx where x is your station number.
vi /etc/auto.master and write at the end of file /rhome/stationx /etc/auto.home --timeout=60 vi /etc/auto.home and write
* -rw,soft,intr 192.168.0.254:/rhome/stationx/&
Note: please specify your station number in the place of x.
Service autofs restart
Login as the nisuser2001 or nisuser2002 on another terminal will be Success. According to question, RHCE domain is already configured. We have to make a client of RHCE domain and automatically mount the home directory on your system. To make a member of domain, we use the authconfig with option or system-config authentication command. There a are lots of authentication server i.e NIS, LDAB, SMB etc. NIS is a RPC related Services, no need to configure the DNS, we should specify the NIS server address.
Here Automount feature is available. When user tried to login, home directory will automatically mount. The automount service used the /etc/auto.master file. On
/etc/auto.master file we specified the mount point the configuration file for mount point.


質問 # 59
Create a catalog under /home named admins. Its respective group is requested to be the admin group. The group users could read and write, while other users are not allowed to access it. The files created by users from the same group should also be the admin group.

正解:

解説:
# cd /home/
# mkdir admins /
# chown .admin admins/
# chmod 770 admins/
# chmod g+s admins/


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


質問 # 61
......

実際にあるPassTest EX200問題集PDFで100%合格率 保証付き:https://www.passtest.jp/RedHat/EX200-shiken.html

無料RedHat EX200試験問題と解答:https://drive.google.com/open?id=14HM0-C-Ku6vUGHzGRqWEZClK1xLam0yC