Get RedHat EX200 Dumps Questions Study Exam Guide Dec 16, 2023 [Q13-Q35]

Share

Get RedHat EX200 Dumps Questions Study Exam Guide Dec 16, 2023

EX200 Premium Exam Engine - Download Free PDF Questions


The RHCSA exam is a valuable certification for system administrators who work with Red Hat Enterprise Linux systems. Red Hat Certified System Administrator - RHCSA certification demonstrates the candidate's ability to perform essential system administration tasks and is recognized by employers as a valuable credential. Additionally, the certification is a prerequisite for more advanced certifications, such as the Red Hat Certified Engineer (RHCE) certification.

 

NEW QUESTION # 13
Please open the ip_forward, and take effect permanently.

Answer:

Explanation:
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


NEW QUESTION # 14
CORRECT TEXT
Copy /etc/fstab to /var/tmp name admin, the user1 could read, write and modify it, while user2 without any permission.

Answer:

Explanation:
# cp /etc/fstab /var/tmp/
# chgrp admin /var/tmp/fstab
# setfacl -m u:user1:rwx /var/tmp/fstab
# setfacl -m u:user2:--- /var/tmp/fstab
# ls -l
-rw-rw-r--+ 1 root admin 685 Nov 10 15:29 /var/tmp/fstab


NEW QUESTION # 15
Which of the following statements are true about Jenkins? (Choose two correct answers.)

  • A. Jenkins only works on local files and cannot use SCM repositories.
  • B. Jenkins can delegate tasks to slave nodes.
  • C. Jenkins is specific to Java based applications.
  • D. Jenkins' functionality is determined by plugins.
  • E. Jenkins includes a series of integrated testing suites.

Answer: B,E


NEW QUESTION # 16
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.

Answer:

Explanation:
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.


NEW QUESTION # 17
SIMULATION
There are two different networks, 192.168.0.0/24 and 192.168.1.0/24. Your System is in 192.168.0.0/24 Network. One RHEL6 Installed System is going to use as a Router. All required configuration is already done on Linux Server. Where 192.168.0.254 and 192.168.1.254 IP Address are assigned on that Server.
How will make successfully ping to 192.168.1.0/24 Network's Host?

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation:
vi /etc/sysconfig/network GATEWAY=192.168.0.254
OR
vi /etc/sysconf/network-scripts/ifcfg-eth0 DEVICE=eth0
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.0.?
NETMASK=255.255.255.0
GATEWAY=192.168.0.254
service network restart
Gateway defines the way to exit the packets. According to question System working as a router for two networks have IP Address 192.168.0.254 and 192.168.1.254.


NEW QUESTION # 18
Configure the permissions of /var/tmp/fstab
Copy the file /etc/fstab to /var/tmp/fstab. Configure the permissions of /var/tmp/fstab so that:
the file /var/tmp/fstab is owned by the root user.
the file /var/tmp/fstab belongs to the group root.
the file /var/tmp/fstab should not be executable by anyone.
the user natasha is able to read and write /var/tmp/fstab.
the user harry can neither write nor read /var/tmp/fstab.
all other users (current or future) have the ability to read /var/tmp/fstab.

Answer:

Explanation:
see explanation below.
Explanation
* cp -a /etc/fstab /var/tmp
* cd /var/tmp
* ls -l
* getfacl /var/tmp/fstab
* chmod ugo-x /var/tmp/fstab
[ No need to do this, there won't be execute permission for the file by default]
# setfacl -m u:natasha:rw /var/tmp/fstab # setfacl -m u:harry:0 /var/tmp/fstab(zero)
[Read permission will be there for all the users, by default. Check it using ls -l /var/tmp/fstab] Verify by
[ ls -la /var/tmp/fstab]


NEW QUESTION # 19
Copy /etc/fstab document to /var/TMP directory. According the following requirements to configure the permission of this document.
* The owner of this document must be root.
* This document belongs to root group.
* User mary have read and write permissions for this document.
* User alice have read and execute permissions for this document.
* Create user named bob, set uid is 1000. Bob have read and write permissions for this document.
* All users has read permission for this document in the system.

Answer:

Explanation:
see explanation below.
Explanation
cp /etc/fstab /var/tmp
chown root:root /var/tmp/fstab
chmod a-x /var/tmp/fstab
setfacl -m u:mary:rw /var/tmp/fstab
setfacl -m u:alice:rx /var/tmp/fstab
useradd -u 1000 bob


NEW QUESTION # 20
User mary must configure a task.
Requirement: The local time at 14:23 every day echo "Hello World.".

Answer:

Explanation:
crontab -u mary -e
23 14 * * * echo "Hello World."


NEW QUESTION # 21
Part 2 (on Node2 Server)
Task 1 [Controlling the Boot Process]
Interrupt the boot process and reset the root password. Change it to kexdrams to gain access to the system

Answer:

Explanation:
* 1. Reboot the server pressing by Ctrl+Alt+Del
2. When the boot-loader menu appears, press the cursor keys to highlight the default boot-loader entry
3. Press e to edit the current entry.
4. Use the cursor keys to navigate to the line that starts with linux.
5. Press End to move the cursor to the end of the line.
6. Append rd.break to the end of the line.
7. Press Ctrl+x to boot using the modified configuration.
8. At the switch_root prompt
* switch_root:/# mount -o remount,rw /sysroot
switch_root:/# chroot /sysroot
sh-4.4# echo kexdrams | passwd --stdin root
Changing password for user root.
passwd: all authentication tokens updated successfully.
sh-4.4# touch /.autorelabel
sh-4.4# exit; exit
* Type exit twice to continue booting your system as usual.


NEW QUESTION # 22
Which of the following Ansible tasks copies the file example.txtto a manage system?
- rsync:

  • A. src: example.txt
    dest: /tmp/example.txt
    - cp:
  • B. source: example.txt
    dst: /tmp/example.txt
    - transfer:
  • C. src: example.txt
    dest: /tmp/example.txt
  • D. src: example.txt
    dest: /tmp/example.txt
    - retrieve:
  • E. src: example.txt
    dst: /tmp/example.txt
    - copy:

Answer: D


NEW QUESTION # 23
Part 1 (on Node1 Server)
Task 1 [Managing Networking]
Please create new network connection with existing interface (enp1s0) using provided values:
IPv4: 172.25.X.10/255.255.255.0 (where X is your domain number: Domain15) Gateway: 172.25.X.2 DNS server: 172.25.X.2 Add the following secondary IP addresses statically to your current running connection. Do this in a way that does not compromise your existing settings:
IPv4: 10.0.0.5/24 and set the hostname node1.domain15.example.com

Answer:

Explanation:
* [root@node1 ~]# nmcli connection show
[root@node1 ~]# nmcli connection add con-name static ifname enp1s0 type ethernet ipv4.addresses 172.25.15.10/24 ipv4.gateway 172.25.15.2 ipv4.dns 172.25.15.2
[root@node1 ~]# nmcli connection modify static ipv4.method manual connection.autoconnect yes
[root@node1 ~]# nmcli connection modify static +ipv4.addresses 10.0.0.5/24
[root@node1 ~]# nmcli connection up static
[root@node1 ~]# nmcli connection show
[root@node1 ~]# hostnamectl set-hostname node1.domain15.example.com
[root@node1 ~]# hostnamectl status
[root@node1 ~]# nmcli connection down static
* [root@node1 ~]# nmcli connection up static
[root@node1 ~]# ip addr show
[root@node1 ~]# reboot
### For checking ###
[root@node1 ~]# ip addr show
[root@node1 ~]# netstat -nr
[root@node1 ~]# cat /etc/resolv.conf


NEW QUESTION # 24
Who ever creates the files/directories on archive group owner should be automatically should be the same group owner of archive.

Answer:

Explanation:
chmod g+s /archive
Verify using: ls -ld /archive Permission should be like:
drwxrws--- 2 root sysuser 4096 Mar 16 18:08 /archive
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


NEW QUESTION # 25
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:
see explanation below.
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 # 26
Which of the following commands lists the cookbooks available on a Chef server?

  • A. knife cookbook list
  • B. chef-client cookbook list
  • C. chef-solo cookbook list
  • D. kitchen cookbook list
  • E. chef-server cookbook list

Answer: E


NEW QUESTION # 27
CORRECT TEXT
Configure the system synchronous as 172.24.40.10.

Answer:

Explanation:
Graphical Interfaces:
System-->Administration-->Date & Time
OR
# system-config-date


NEW QUESTION # 28
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 # 29
Part 2 (on Node2 Server)
Task 5 [Managing Logical Volumes]
Add an additional swap partition of 656 MiB to your system. The swap partition should automatically mount when your system boots Do not remove or otherwise alter any existing swap partition on your system

Answer:

Explanation:
* [root@node2 ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vdc 252:32 0 5G 0 disk
└─vdc1 252:33 0 4.1G 0 part
└─datavg-datalv 253:3 0 3.9G 0 lvm /data
vdd 252:48 0 5G 0 disk
vde 252:64 0 10G 0 disk
[root@node2 ~]# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 2097148 1548 -2
[root@node2 ~]# free -m
total used free shared buff/cache available
Mem: 1816 1078 104 13 633 573
Swap: 2047 1 2046
[root@node2 ~]# parted /dev/vdc print
Number Start End Size Type File system Flags
1 1049kB 4404MB 4403MB primary lvm
* [root@node2 ~]# parted /dev/vdc mkpart primary linux-swap 4404MiB 5060MiB
[root@node2 ~]# mkswap /dev/vdc2
Setting up swapspace version 1, size = 656 MiB (687861760 bytes)
no label, UUID=9faf818f-f070-4416-82b2-21a41988a9a7
[root@node2 ~]# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 2097148 1804 -2
[root@node2 ~]# swapon /dev/vdc2
* [root@node2 ~]# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 2097148 1804 -2
/dev/vdc2 partition 671740 0 -3
[root@node2 ~]# blkid
/dev/vdc2: UUID="9faf818f-f070-4416-82b2-21a41988a9a7" TYPE="swap" PARTUUID="0f22a35f-02"
[root@node2 ~]# vim /etc/fstab
UUID=9faf818f-f070-4416-82b2-21a41988a9a7 swap swap defaults 0 0
[root@node2 ~]# reboot
[root@node2 ~]# swapon -s
Filename Type Size Used Priority
/dev/dm-1 partition 2097148 1804 -2
/dev/vdc2 partition 671740 0 -3


NEW QUESTION # 30
Configure
your web services, download from http://instructor.example.com/pub/serverX.html And the services must be still running after system rebooting.

Answer:

Explanation:
see explanation below.
Explanation
cd /var/www/html
wget
http://instructor.example.com/pub/serverX.html mv serverX.html index.html /etc/init.d/httpd restart chkconfig httpd on


NEW QUESTION # 31
Update the kernel from ftp://instructor.example.com/pub/updates.
According the following requirements:
* The updated kernel must exist as default kernel after rebooting the system.
* The original kernel still exists and is available in the system.

Answer:

Explanation:
see explanation below.
Explanation
rpm -ivh kernel-firm...
rpm -ivh kernel...


NEW QUESTION # 32
Your System is configured in 192.168.0.0/24 Network and your nameserver is 192.168.0.254. Make successfully resolve to server1.example.com.

Answer:

Explanation:
nameserver is specified in question,
1. Vi /etc/resolv.conf
nameserver 192.168.0.254
2. host server1.example.com


NEW QUESTION # 33
How does Prometheus gather information about monitored hosts and services?

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

Answer: E

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


NEW QUESTION # 34
SIMULATION
Create a volume group, and set the size is 500M, the size of single PE is 16M. Create logical volume named lv0 in this volume group, set size is 20 PE, make it as ext3 file system, and mounted automatically under data.

Answer:

Explanation:
See explanation below.
Explanation/Reference:
Explanation: fdisk /dev/vda
pvcreate /dev/vda3
vgcreate -s 16M vg0 /dev/vda3
lvcreate -n lv0 -l 20 vg0
mkfs.ext3 /dev/mapper/vg0-lv0
mkdir /data
/etc/fstab:
/dev/mapper/vg0-lv0 /data ext3 defaults 0 0
mount -a
mount | grep data


NEW QUESTION # 35
......

Free EX200 Exam Braindumps RedHat  Pratice Exam: https://www.exams4sures.com/RedHat/EX200-practice-exam-dumps.html

Instant Download EX200 Free Updated Test Dumps: https://drive.google.com/open?id=1rAKHdEMFq6Xz53VpTlt7TwPsczMioPP0