The following RHCSA MCQs have been compiled by our experts through research, in order to test your knowledge of the subject of RHCSA. We encourage you to answer these 30 multiple-choice questions to assess your proficiency.
Please continue by scrolling down.
A. By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
B. The /proc directory. The /proc/sys directory is the place where you actually tune kernel parameters.
C. DNS uses port 53.
D. Enforcing during installation
A. Kickstart installations to work
B. The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
C. The smbstatus command shows you currently mounted Samba resources.
D. The /etc/fstab file.
A. The /var/lib/nfs/etab file is used to keep track of currently exported resources.
B. The tcpdump command is used to monitor network connections on different interfaces.
C. The three utilities are: route - ping - and nslookup.
D. A large warning message appears indicating that the key doesn't match the host you are connecting to. You have to remove the key/host pair from the known_hosts file to proceed.
A. You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
B. When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
C. The rndc utility provides a method for managing the DNS server remotely and securely.
D. Semanage boolean -l
A. The vsftpd package is used to install an FTP server.
B. You have the flexibility to resize and add new volumes on the fly. With basic partitions - any time that you want to make a change - you need to destroy the partition and create it again.
C. This command reboots virtual guest Client04.
D. The grep -v ^# /etc/vsftpd/vsftpd.conf command shows you all the options currently being used with the FTP server.
A. By entering the GRUB boot menu - you can choose the a option to append something to the kernel command-line options.
B. The NFS service uses TCP port 2049 by default.
C. When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
D. After you connect to a hypervisor - you can use virsh list —all to list all virtual guests.
A. You add your action to the end of the /home/user01/.bashrc file.
B. The smbstatus command shows you currently mounted Samba resources.
C. Useradd -c
D. The NFS service uses TCP port 2049 by default.
A. Physical volumes - volume groups - and logical volumes.
B. LUKS encryption
C. The tcpdump command is used to monitor network connections on different interfaces.
D. Getsebool
A. RAID 0 (Striping) - RAID 1 (Mirror) - and RAID 5 (Striping with parity).
B. Load balancing and redundancy benefits
C. A virtual host is a way of hosting multiple sites using a single IP address.
D. The three utilities are: route - ping - and nslookup.
A. Via the command line
B. User's home directory in the /etc/skel directory
C. The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
D. The virsh command is used to manage virtual guests.
A. Kickstart installations to work
B. The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
C. Use the route command with the add option to create a static route.
D. Apache uses port 80 for HTTP and port 443 for HTTPS.
A. Chkconfig xinetd --list
B. The mount command lists all currently mounted file systems.
C. Chcon
D. Apache uses port 80 for HTTP and port 443 for HTTPS.
A. The rndc utility provides a method for managing the DNS server remotely and securely.
B. Generates errors under Red Hat Enterprise Linux 6
C. The five directories are BUILD - RPMS - SOURCES - SPECS - and SRPMS.
D. The SMTP service runs on TCP port 110.
A. The install.log.syslog file contains messages that are generated during the installation. If you run into trouble during the installation - this is a good place to start.
B. When the system starts up again - the cron service will run any jobs that were missed while the system was off. On Red Hat Enterprise Linux 5 - the anacron service handles this functionality.
C. The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
D. The user_list file can be used to limit which users have access to the FTP server.
A. The four types of DNS servers are master - slave - caching-only - and forwarding.
B. You can use the sudo command to run a command with elevated privileges provided you have the rights in the /etc/sudoers file.
C. The nfsstat command can be used to view NFS statistics.
D. The /etc/hosts file is a local lookup file used to map IP addresses to hostnames if a DNS server isn't available.
A. The ping command can be used to verify connectivity to another host.
B. The file system where quotas will be implemented must be mounted with the usrquota and grpquota options before quotas will work properly.
C. You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
D. The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
A. The rndc utility provides a method for managing the DNS server remotely and securely.
B. The NFS service uses TCP port 2049 by default.
C. Setsebool -P nfs_export_all_rw=1
D. Support for TCP Wrappers
A. By using centralized authentication - you don't need to re-create or maintain multiple accounts across every system in your organization.
B. The lftp command can be used on a client to test FTP server connections.
C. You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
D. The TFTP server uses UDP port 69.
A. This command sets the eth1 interface to have a static IP address of 172.168.1.100 with a netmask of 255.255.255.0.
B. Lvdisplay
C. Getsebool -a | grep http
D. You can use the -q option to query an installed package. Combining grep and the -qa options - you can search among all installed packages on the system.
A. You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
B. If you are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
C. For Apache to run a secure site - the mod_ssl package is required to be installed.
D. Use the yum groupinstall command to install multiple packages in a single group at once.
A. The file system where ACLs will be implemented must be mounted with the acl option before ACLs will work properly.
B. Chkconfig xinetd --list
C. Network address translation (NAT) maintains a table that allows the use of multiple internal IP addresses to a multiple public IP address (called address translation). It can also be used for one-to-one or one-to-many relationships as well.
D. You can use the remove or erase options with yum to remove a package.
A. Atq
B. Enforcing during installation
C. VNC is used to control a remote desktop session.
D. The /etc/sysctl.conf file maintains a list of custom kernel parameters that should be applied during system boot.
A. The -t nfs option is used with the mount command to mount NFS resources.
B. A web proxy can provide multiple benefits - including security - web page caching for faster load times - and load balancing.
C. Load balancing and redundancy benefits
D. Network installations can be performed using the HTTP - FTP - and NFS protocols.
A. If you are a hosting company or want to run multiple websites/applications from a single IP address - you can use virtual hosts to accomplish this.
B. Service dhcpd configtest
C. An A record translates translated hostnames to IP addresses - and a PTR record works the other way around.
D. Entering rescue mode and repairing the problem.
A. Mkfs.ext4
B. The xinetd daemon is used to control and/or run multiple system services. One example is a TFTP server.
C. A swap is scratch space on your file system used as virtual memory. A swap can be created as a partition or a device file.
D. A soft limit acts like an alarm - signaling you when you are reaching your limit. If you don't specify a grace period - the soft limit is the max. A hard limit is required only when a grace period exists. It is the max limit you can hit before your g
A. Lvdisplay
B. Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
C. The /var/liv/dhcpd/dhcpd.leases file contains all clients IP address currently in use.
D. Enforcing during installation
A. The rndc-confgen command generates an rndc.conf file for the rndc utility.
B. Use the route command with the add option to create a static route.
C. Service sshd statuts
D. VNC is used to control a remote desktop session.
A. You can use the remove or erase options with yum to remove a package.
B. This is actually a trick question because the answer could go either way. In this chapter - we discussed only software RAID setups - in which case the answer is no. If - however - you were using a hardware RAID 5 - the answer would be yes.
C. You must ensure that the /boot/grub/grub.conf file has the new entry for your newly updated kernel to be able to boot into it.
D. Mkfs.ext4
A. Run on any port you'd like (provided that port is available)
B. Use the top command to view CPU and memory usage.
C. The superblock is a structure that contains metadata of the file system. If this becomes corrupt - you are in trouble.
D. Kickstart installations to work
A. Use the chkconfig command to enable or disable services during the boot process. The on option enables the service and off disables it.
B. Use the ps command to view processes and their CPU usage.
C. Getsebool -a | grep http
D. Service sshd status