RHCSA MCQs

RHCSA MCQs

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.

1: What port must be opened on the firewall for DNS?

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

2: What file is used to maintain custom parameters for the kernel during system boot?

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.

3: Can you name three utilities that can be used for network or DNS client troubleshooting?

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.

4: What happens to jobs that are scheduled to run while the system is off?

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

5: What command can be used to easily list all the options in the FTP main config file?

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.

6: What port does NFS use by default?

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.

7: If you want a specific action to take place when user01 logs in to the system - which file would you edit?

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.

8: What command can you use to monitor and troubleshoot network connections?

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

9: What is a virtual host?

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.

10: The virt-install package allows you to manage virtual machines _____________. The virt-manager package allows you to manage virtual machines via a GUI interface.

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.

11: How would you go about creating a static route?

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.

12: How can you check the currently mounted file systems?

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.

13: The INPUT chain being used is the default under Red Hat Enterprise Linux 5. This rule...

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.

14: What is the /etc/vsftpd/user_list file used for?

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.

15: There are four types of DNS servers. Name them.

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.

16: What option would you use to query an installed package using the rpm command?

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.

17: How would you disable SELinux protection for NFS - allowing shares to be read/write?

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

18: What client-side command can you use to test your FTP server connection?

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.

19: How would you view all Boolean options for the HTTP service?

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.

20: Are additional packages besides httpd required for a secure website - If so - what are they?

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.

21: What command is used to show all services being controlled by the xinetd daemon?

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.

22: What is VNC?

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.

23: What benefit does a web proxy provide to your network?

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.

24: What command can you use to check the config file of the DHCP server?

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.

25: What command can you use to create a file system?

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

26: Which file shows you all the client IP addresses?

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

27: What does the rdnc-confgen command do?

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.

28: What options with the yum command would you use to remove a package?

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

29: What is the superblock used for?

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

30: How can you verify the status of the SSH service after the system has booted?

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