Red Hat Certified Systems Administrator (EX200) - RHEL7
Exam (Latest Update) Questions and Verified Answers|
100% Correct| Grade A+
What directive in /etc/default/grub would you modify to specify the command line options to pass to
the kernel at boot time? - ANSWER-GRUB_CMDLINE_LINUX
What directive in /etc/default/grub would you modify or add to disable showing system recovery entries
in the GRUB2 submenu? - ANSWER-GRUB_DISABLE_RECOVERY=true
What would you append to the end of the default Linux kernel entry in order to boot to the
"emergency" Systemd target, and what key combination would you press to proceed with booting? -
ANSWER-systemd.unit=emergency.target
Ctrl-X
What would you append to the end of the default Linux kernel entry in order to boot to the "Rescue"
Systemd target, which is equivalent to runlevel 1 (single user mode)? - ANSWER-
systemd.unit=rescue.target
What utility could you use to copy a public key for the current user to a remote host? - ANSWER-ssh-
copy-id
True or false, you must specify the "acl" mount option when you desire to use ACL's on an XFS
filesystem? - ANSWER-False, XFS supports ACL's by default
What command would you execute to display info for the "virtualization" package group? - ANSWER-
yum groupinfo virtualization
What two commands could you execute to display what mode SELinux is currently in? - ANSWER-
sestatus and getenforce
What file contains firewall rules / configurations? - ANSWER-/etc/sysconfig/iptables
,What directive would you set in /etc/sysctl.conf to permanently enable IPv4 forwarding? - ANSWER-
net.ipv4.ip_forward=1
What command would you execute to implement any changes made to /etc/sysctl.conf without having
to reboot? - ANSWER-sysctl -p
What command would you execute to mount the CentOS6.iso to the directory /mnt/centos? - ANSWER-
mount -o loop CentOS6.iso /mnt/centos
What command would you execute to recursively change the SELinux security context of the
/tmp/like/a/ninja directory to match that of the /tmp/like directory? - ANSWER-chcon -R --
reference=/tmp/like /tmp/like/a/ninja
What is the root directory that vsFTP serves files out of? - ANSWER-/var/ftp/pub
What command would you execute to recursively change the SELinux security context of the
/etc/testy/bet_me directory to user_home_dir? - ANSWER-chcon -R -t user_home_dir
/etc/testy/bet_me
What are the seven packages needed for a functional KVM installation? - ANSWER-libvirt, libvirt-client,
qemu-kvm, python-virtinst, virt-manager, virt-top, virt-viewer
What two modules should be loaded for kvm to function properly on an AMD system? - ANSWER-kvm
and kvm-amd
What command would you execute to load the kvm module? - ANSWER-modprobe kvm
What directory contains KVM virtual machine images? - ANSWER-/var/lib/libvirt/images
What file contains all default SELinux contexts for various directories and files when the targeted
SELinux type is used? - ANSWER-/etc/selinux/targeted/contexts/files/file_contexts
,What command would you execute to run the KVM virtual machine manager? - ANSWER-virt-manager
What directory contains xml files that define various attributes of KVM virtual machines? - ANSWER-
/etc/libvirt/qemu
What command would you execute to manually modify the corresponding .xml file for the hostname
risky.business.com? - ANSWER-virsh edit risky.business.com
What command would you execute to create a KVM virtual machine from the command line? -
ANSWER-virt-install --prompt
What command would you execute to immediately halt the KVM virtual machine named
please.keep.me? - ANSWER-virsh destroy please.keep.me
What command would you execute to create a KVM virtual machine with the following attributes : (A)
the name please.keep.com, (B) 2G of RAM, (C) a 20G virtual disk bearing the same name as the
hostname in the default virtual images location, (D) Specify ftp://192.168.1.100/pub/install as the install
file location, and (E) Specify ftp://192.168.1.100/pub/ks/kick_me.cfg as the Kickstart file to use? -
ANSWER-virt-install -n please.keep.com -r 2048 --disk
path=/var/lib/libvirt/images/please.keep.com.img,size=20 -l ftp://192.168.1.100/pub/inst -x
"ks=ftp://192.168.1.100/ks/kick_me.cfg"
What command would you execute to drop into a shell for managing KVM virtual machines? - ANSWER-
virsh
What command would you execute to list all KVM virtual machines? - ANSWER-virsh list --all
What command would you execute to start the KVM virtual machine named start.me.up? - ANSWER-
virsh start start.me.up
What command would you execute to list the local KVM hypervisor's abilities? - ANSWER-virsh
capabilities
, What command would you execute to configure the KVM virtual machine no.pull.string to automatically
startup at system boot of the hypervisor? - ANSWER-virsh autostart no.pull.string
What command would you execute to gracefully shut down the KVM virtual machine put.to.sleep? -
ANSWER-virsh shutdown put.to.sleep
What directory is a symbolic link placed in when you configure a KVM virtual machine to autostart at
system boot? - ANSWER-/etc/libvirt/qemu/autostart
What command would you execute to disable autostart of the KVM virtual machine no.mo.autostart? -
ANSWER-virsh autostart --disable no.mo.autostart
What command would you execute to interactively clone a KVM virtual machine? - ANSWER-virt-clone --
prompt
What command would you execute to launch the graphical Kickstart Configurator and load the
/root/anaconda-ks.cfg file? - ANSWER-system-config-kickstart /root/anaconda-ks.cfg
What steps would you perform at the main Red Hat Enterprise Linux installation menu to reference a
kickstart file named "kickapoo.cfg" on the first partition of the third SCSI hard drive? - ANSWER-1) Press
<tab> at the menu selection "Install Or Upgrade An Existing System" 2) Add the directive
"ks=hd:sdc1:/kickapoo.cfg" to the end of the line
What steps would you perform at the main Red Hat Enterprise Linux installation menu to reference a
kickstart file named "just_for_kicks.cfg" on a CD-ROM? - ANSWER-1) Press <tab> at the menu selection
"Install Or Upgrade An Existing System" 2) Add the directive "ks=cdrom:/just_for_kicks.cfg" to the end of
the line
What directive would you add to a Kickstart configuration file to specify use of the NFS server
192.168.1.99 and the directory /install as the source of installation files? - ANSWER-nfs --
server=192.168.1.99 --dir=/install
Exam (Latest Update) Questions and Verified Answers|
100% Correct| Grade A+
What directive in /etc/default/grub would you modify to specify the command line options to pass to
the kernel at boot time? - ANSWER-GRUB_CMDLINE_LINUX
What directive in /etc/default/grub would you modify or add to disable showing system recovery entries
in the GRUB2 submenu? - ANSWER-GRUB_DISABLE_RECOVERY=true
What would you append to the end of the default Linux kernel entry in order to boot to the
"emergency" Systemd target, and what key combination would you press to proceed with booting? -
ANSWER-systemd.unit=emergency.target
Ctrl-X
What would you append to the end of the default Linux kernel entry in order to boot to the "Rescue"
Systemd target, which is equivalent to runlevel 1 (single user mode)? - ANSWER-
systemd.unit=rescue.target
What utility could you use to copy a public key for the current user to a remote host? - ANSWER-ssh-
copy-id
True or false, you must specify the "acl" mount option when you desire to use ACL's on an XFS
filesystem? - ANSWER-False, XFS supports ACL's by default
What command would you execute to display info for the "virtualization" package group? - ANSWER-
yum groupinfo virtualization
What two commands could you execute to display what mode SELinux is currently in? - ANSWER-
sestatus and getenforce
What file contains firewall rules / configurations? - ANSWER-/etc/sysconfig/iptables
,What directive would you set in /etc/sysctl.conf to permanently enable IPv4 forwarding? - ANSWER-
net.ipv4.ip_forward=1
What command would you execute to implement any changes made to /etc/sysctl.conf without having
to reboot? - ANSWER-sysctl -p
What command would you execute to mount the CentOS6.iso to the directory /mnt/centos? - ANSWER-
mount -o loop CentOS6.iso /mnt/centos
What command would you execute to recursively change the SELinux security context of the
/tmp/like/a/ninja directory to match that of the /tmp/like directory? - ANSWER-chcon -R --
reference=/tmp/like /tmp/like/a/ninja
What is the root directory that vsFTP serves files out of? - ANSWER-/var/ftp/pub
What command would you execute to recursively change the SELinux security context of the
/etc/testy/bet_me directory to user_home_dir? - ANSWER-chcon -R -t user_home_dir
/etc/testy/bet_me
What are the seven packages needed for a functional KVM installation? - ANSWER-libvirt, libvirt-client,
qemu-kvm, python-virtinst, virt-manager, virt-top, virt-viewer
What two modules should be loaded for kvm to function properly on an AMD system? - ANSWER-kvm
and kvm-amd
What command would you execute to load the kvm module? - ANSWER-modprobe kvm
What directory contains KVM virtual machine images? - ANSWER-/var/lib/libvirt/images
What file contains all default SELinux contexts for various directories and files when the targeted
SELinux type is used? - ANSWER-/etc/selinux/targeted/contexts/files/file_contexts
,What command would you execute to run the KVM virtual machine manager? - ANSWER-virt-manager
What directory contains xml files that define various attributes of KVM virtual machines? - ANSWER-
/etc/libvirt/qemu
What command would you execute to manually modify the corresponding .xml file for the hostname
risky.business.com? - ANSWER-virsh edit risky.business.com
What command would you execute to create a KVM virtual machine from the command line? -
ANSWER-virt-install --prompt
What command would you execute to immediately halt the KVM virtual machine named
please.keep.me? - ANSWER-virsh destroy please.keep.me
What command would you execute to create a KVM virtual machine with the following attributes : (A)
the name please.keep.com, (B) 2G of RAM, (C) a 20G virtual disk bearing the same name as the
hostname in the default virtual images location, (D) Specify ftp://192.168.1.100/pub/install as the install
file location, and (E) Specify ftp://192.168.1.100/pub/ks/kick_me.cfg as the Kickstart file to use? -
ANSWER-virt-install -n please.keep.com -r 2048 --disk
path=/var/lib/libvirt/images/please.keep.com.img,size=20 -l ftp://192.168.1.100/pub/inst -x
"ks=ftp://192.168.1.100/ks/kick_me.cfg"
What command would you execute to drop into a shell for managing KVM virtual machines? - ANSWER-
virsh
What command would you execute to list all KVM virtual machines? - ANSWER-virsh list --all
What command would you execute to start the KVM virtual machine named start.me.up? - ANSWER-
virsh start start.me.up
What command would you execute to list the local KVM hypervisor's abilities? - ANSWER-virsh
capabilities
, What command would you execute to configure the KVM virtual machine no.pull.string to automatically
startup at system boot of the hypervisor? - ANSWER-virsh autostart no.pull.string
What command would you execute to gracefully shut down the KVM virtual machine put.to.sleep? -
ANSWER-virsh shutdown put.to.sleep
What directory is a symbolic link placed in when you configure a KVM virtual machine to autostart at
system boot? - ANSWER-/etc/libvirt/qemu/autostart
What command would you execute to disable autostart of the KVM virtual machine no.mo.autostart? -
ANSWER-virsh autostart --disable no.mo.autostart
What command would you execute to interactively clone a KVM virtual machine? - ANSWER-virt-clone --
prompt
What command would you execute to launch the graphical Kickstart Configurator and load the
/root/anaconda-ks.cfg file? - ANSWER-system-config-kickstart /root/anaconda-ks.cfg
What steps would you perform at the main Red Hat Enterprise Linux installation menu to reference a
kickstart file named "kickapoo.cfg" on the first partition of the third SCSI hard drive? - ANSWER-1) Press
<tab> at the menu selection "Install Or Upgrade An Existing System" 2) Add the directive
"ks=hd:sdc1:/kickapoo.cfg" to the end of the line
What steps would you perform at the main Red Hat Enterprise Linux installation menu to reference a
kickstart file named "just_for_kicks.cfg" on a CD-ROM? - ANSWER-1) Press <tab> at the menu selection
"Install Or Upgrade An Existing System" 2) Add the directive "ks=cdrom:/just_for_kicks.cfg" to the end of
the line
What directive would you add to a Kickstart configuration file to specify use of the NFS server
192.168.1.99 and the directory /install as the source of installation files? - ANSWER-nfs --
server=192.168.1.99 --dir=/install