
RedHat EX200 Daily Practice Exam New 2023 Updated 136 Questions
Use Valid EX200 Exam - Actual Exam Question & Answer
RedHat EX200 certification exam is a highly sought-after certification for individuals who are looking to establish themselves as professional system administrators. Red Hat Certified System Administrator - RHCSA certification exam is designed to assess a candidate's ability to perform essential tasks related to Red Hat Enterprise Linux (RHEL) system administration. Successful completion of the exam requires a deep understanding of system administration concepts, practical skills, and knowledge of RHEL operating system.
NEW QUESTION # 54
Configure your NFS services. Share the directory by the NFS Shared services.
Answer:
Explanation:
/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
NEW QUESTION # 55
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:
Explanation:
# cat /etc/testfile | while read line;
do
echo $line | grep abcde | tee -a /tmp/testfile
done
OR
grep `abcde' /etc/testfile > /tmp/testfile
NEW QUESTION # 56
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
Answer:
Explanation:
* [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
NEW QUESTION # 57
Your System is going use as a router for 172.24.0.0/16 and 172.25.0.0/16. Enable the IP Forwarding.
1. echo "1" >/proc/sys/net/ipv4/ip_forward
2. vi /etc/sysctl.conf net.ipv4.ip_forward=1
Answer:
Explanation:
/proc is the virtual filesystem, containing the information about the running kernel.
To change the parameter of running kernel you should modify on /proc. From Next reboot the system, kernel will take the value from /etc/sysctl.conf.
NEW QUESTION # 58
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?
Answer:
Explanation:
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.
NEW QUESTION # 59
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.
Answer:
Explanation:
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
NEW QUESTION # 60
A YUM source has been provided in the
http://instructor.example.com/pub/rhel6/dvd
Configure your system and can be used normally.
Answer:
Explanation:
see explanation below.
Explanation
* /etc/yum.repos.d/base.repo
[base]
name=base
baseurl=http://instructor.example.com/pub/rhel6/dvd
gpgcheck=0
yum list
NEW QUESTION # 61
Create a backup
Create a backup file named /root/backup.tar.bz2, contains the content of /usr/local, tar must use bzip2 to compress.
Answer:
Explanation:
see explanation below.
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.
NEW QUESTION # 62
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 images generated previously by template.jsonstill use the most recent
source images. - D. The command verifies that the file template.jsonis a syntactically correct and complete Packer
template. - E. The command verifies that all existing artifacts generated by template.jsonhave their original
checksums.
Answer: D
Explanation:
Explanation/Reference:
Reference https://www.packer.io/docs/commands/validate.html
NEW QUESTION # 63
Find the files owned by harry, and copy it to catalog: /opt/dir
Answer:
Explanation:
# cd /opt/
# mkdir dir
# find / -user harry -exec cp -rfp {} /opt/dir/ \;
NEW QUESTION # 64
Make a swap partition having 100MB. Make Automatically Usable at System Boot Time.
Answer:
Explanation:
see explanation below.
* 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.
NEW QUESTION # 65
Which security issues exist for most publicly available Vagrant boxes? (Choose three correct answers.)
- A. They accept SSH logins from the user vagrantwith the password vagrant.
- B. Their whole file system, including configuration files, is writable by any user, including vagrant.
- C. They accept SSH logins from the user vagrantwith a publicly available SSH key pair.
- D. The vagrant user can use sudoto obtain root privileges without additional authentication.
- E. They export their file system via NFS with full write permissions without any additional restrictions.
Answer: A,C,D
Explanation:
Explanation/Reference:
Reference https://www.vagrantup.com/docs/boxes/base.html
NEW QUESTION # 66
Which of the log messages below matches the following Logstash grok filter?
grok {
match => ["message", "%{SYSLOGBASE} new node %{IPORHOST:node}" ]
}
- A. Jun 30 00:36:49 headnode:
new node 198.51.100.103 at clustermanager:12353 - B. %{SYSLOG-FROM:headnode clustermanager[12353]} new node 198.51.100.103
- C. Jun 30 00:36:49 headnode clustermanager[12353]: new node 198.51.100.103
- D. clustermanager[12353]: Jun 30 00:36:49 headnode new node 198.51.100.103
- E. Jun 30 00:36:49 headnode clustermanager[198.51.100.103]: new node
Answer: E
NEW QUESTION # 67
Which Ansible modules can be used to change the contents of a file? (Choose three correct answers.)
- A. replace
- B. lineinfile
- C. insert
- D. patch
- E. modify
Answer: A,B,D
NEW QUESTION # 68
Create a user alex with a userid of 3400. The password for this user should be redhat.
Answer:
Explanation:
useradd -u 3400 alex
passwd alex
su -alex
NEW QUESTION # 69
Upgrading the kernel as 2.6.36.7.1, and configure the system to Start the default kernel, keep the old kernel available.
Answer:
Explanation:
Answer see in the explanation.
Explanation/Reference:
# 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
NEW QUESTION # 70
......
The Red Hat Certified System Administrator (RHCSA) certification exam is a performance-based exam that tests the skills and knowledge required to manage and administer Red Hat Enterprise Linux systems. Red Hat Certified System Administrator - RHCSA certification is highly valued by employers and is recognized globally. The RHCSA certification is an entry-level certification that is a prerequisite for advanced certifications such as the Red Hat Certified Engineer (RHCE) certification. The RHCSA certification is designed to validate the candidate's ability to perform basic system administration tasks in a Red Hat Enterprise Linux environment.
Test Engine to Practice EX200 Test Questions: https://www.examslabs.com/RedHat/RHCSA/best-EX200-exam-dumps.html
EX200 Real Exam Questions Test Engine Dumps Training With 136 Questions: https://drive.google.com/open?id=1btOU5Fp8kS8bb6ijFqRhwxcany5xCENl