Test
Rhq
Crea una cuenta gratis para terminar este test
Guarda tu progreso y consulta tu resultado final.
¿Ya tienes cuenta? Inicia sesión
Preguntas del test (200)
1You want to install a test environment to practice for the RHCSA/RHCE exams. Which of the following distributions should you avoid?
- AThe most recent Fedora version
- BCentOS 7
- CScientific Linux 7
- DRHEL 7
2Which of the following features is not just available in RHEL but also in CentOS?
- AHardware certification
- BSoftware certification
- CThe right to make support calls
- DSoftware updates
3Why should you install the server with a GUI installation pattern?
- ATo prepare for RHCSA/RHCE, you need some tools that run in a GUI only.
- BThe minimal installation is incomplete.
- CIf you do not install a GUI immediately, it is very hard to add it later.
- DThe Server with GUI is the default installation that is recommended by Red Hat.
4Which is the default file system that is used in RHEL 7?
- AExt3
- BExt4
- CXFS
- DBtrfs
5Which feature is supported in Ext4 but not in XFS?
- AShrinking the file system
- BSnapshots
- CFile system quota
- DA maximum size that goes beyond 2TB
6Which of the following is not a reason why Fedora should be avoided?
- AFedora contains features that may or may not be available in future RHEL releases.
- BFedora distributions show a much later state of development than RHEL.
- CFedora software is not stable.
- DSoftware in Fedora may differ from the same software in RHEL.
7Which of the following options is not available from the Installation Summary screen?
- ADate & Time
- BKeyboard
- CLanguage Support
- DTroubleshoot an Existing Installation
8After setting the root password you want to use, you cannot proceed in the installation. What is the most likely cause that you cannot move on?
- AThe password is unsecure, and unsecure passwords are not accepted.
- BThe password does not meet requirements in the password policy.
- CYou also need to create a user.
- DIf an unsecure password is used, you need to click Done twice.
9Which statement about the system language is not true?
- AYou can change the system language from the Installation Summary screen.
- BYou can change the system language directly after booting from the installation media.
- CWhen setting the installation language, you can also select a keyboard layout.
- DAfter installation, you cannot change the language settings.
10When installing a server that uses LVM logical volumes, you’ll get at least three storage volumes (partitions or LVM). Which of the following is not part of them?
- A/boot
- B/home
- C/
- Dswap
11Which of the following enables you to redirect standard output as well as errors to a file?
- A1&2> file
- B2>&1 file
- C>1&2 file
- D1>2& file
12You are looking for a variable that is set in a bash login shell for all users. Which of the following files is the most likely location where this variable is set? (Choose two.)
- A/etc/profile
- B/etc/bashrc
- C~/.bash_profile
- D~/.bashrc
13A user has created a script with the name myscript. He tries to run it using the command myscript, but it is not started. The user has verified that the script permissions are set as executable. Which of the following is the most likely explanation?
- AAn internal command is preventing the startup of the script.
- BUsers are not allowed to run scripts.
- CThe directory that contains the script is not in the PATH.
- DThe script does not have appropriate permissions.
14You need the output of the command ls to be used as input for the less command. Which of the following examples will do that for you?
- Als > less
- Bls >> less
- Cls >| less
- Dls | less
15A user wants to remove his complete history. Which of the following approaches would do that?
- ARemove the ~/.bash_history file and type history -c.
- BType history -c.
- CRemove the ~/.bash_history file.
- DType history -c and close the current shell.
16Which of the following is not a valid method to repeat a command from history?
- AUse Ctrl+R and start typing a part of the command.
- BUse ! followed by the first letters in the command.
- CUse ! followed by the number of the command as listed in history.
- DUse Ctrl+X followed by the number in history.
17For which of the following items can bash completion be used?
- ACommands
- BFiles
- CVariables
- DAll of the above
18Which of the following commands enables you to replace every occurrence of old with new in a text file that is opened with vi?
- A:%s/old/new/g
- B:%r/old/new/
- C:s/old/new/g
- Dr:/old/new
19Which approach works best if during the login process you want to show a message to all users who have just logged in to a shell session on your server?
- APut the message in /etc/issue.
- BPut the message in /etc/motd.
- CPut the message in /etc/profile.
- DPut the message in /etc/bashrc.
20You are using man -k user, but you get the message “nothing appropriate.” Which of the following solutions is most likely to fix this for you?
- AType updatedb to update the man database.
- BType makewhatis to update the man database.
- CType mandb to update the man database.
- DUse man -K, not man -k.
21Under which directory would you expect to find nonessential program files?
- A/boot
- B/bin
- C/sbin
- D/usr
22Under which directory would you expect to find log files?
- A/proc
- B/run
- C/var
- D/usr
23Which of the following directories would typically not be mounted on its own dedicated device?
- A/etc
- B/boot
- C/home
- D/usr
24Which of the following commands would give the most accurate overview of mounted disk devices (without showing much information about mounted system devices as well)?
- Amount
- Bmount -a
- Cdf -T
- Ddu -h
25Which command enables you to show all files in the current directory so that the newest files are listed last?
- Als -lRt
- Bls -lrt
- Cls -alrt
- Dls -alr
26Which command enables you to copy hidden files as well as regular files from /home/$USER to the current directory?
- Acp -a /home/$USER .
- Bcp -a /home/$USER/* .
- Ccp -a /home/$USER/. .
- Dcp -a home/$USER. .
27Which command enables you to rename the file myfile to mynewfile?
- Amv myfile mynewfile
- Brm myfile mynewfile
- Crn myfile mynewfile
- Dren myfile mynewfile
28Which statement about hard links is not true?
- AHard links cannot be created to directories.
- BHard links cannot refer to files on other devices.
- CThe inode keeps a hard link counter.
- DIf the original hard link is removed, all other hard links become invalid.
29Which command creates a symbolic link to the directory /home in the directory /tmp?
- Aln /tmp /home
- Bln /home /tmp
- Cln -s /home /tmp
- Dln -s /tmp /home
30Which option enables you to add one single file to a tar archive?
- A-a
- B-A
- C-r
- D-u
31Which command was developed to show only the first 10 lines in a text file?
- Ahead
- Btop
- Cfirst
- Dcat
32Which command enables you to count the number of words in a text file?
- Acount
- Blist
- Cls -l
- Dwc
33Which key on your keyboard do you use in less to go to the last line of the current text file?
- AEnd
- BPageDown
- Cq
- DG
34Which option is missing from the following command, assuming that you want to filter the first field out of the /etc/passwd file and assuming that the character that is used as the field delimiter is a:? cut .... : -f 1 /etc/passwd
- A-d
- B-c
- C-t
- D-x
35Which option is missing if you want to sort the third column of the output of the command ps aux?
ps aux | sort ...- A-k3
- B-s3
- C-k f 3
- D-f 3
36Which of the following lines would only show lines in the file /etc/passwd that start with the text anna?
- Agrep anna /etc/passwd
- Bgrep -v anna /etc/passwd
- Cgrep $anna /etc/passwd
- Dgrep ^anna /etc/passwd
37Which regular expression do you use to make the previous character optional?
- A?
- B.
- C*
- D&
38Which regular expression is used as a wildcard to refer to any single character?
- A?
- B.
- C*
- D&
39Which command prints the fourth field of a line in the /etc/passwd file if the text user occurs in that line?
- Aawk ‘/user/ { print $4 }’ /etc/passwd
- Bawk -d : ‘/user/ { print $4 }’ /etc/passwd
- Cawk -F : ‘/user/ $4 ‘ /etc/passwd
- Dawk -F : ‘/user/ { print $4 }’ /etc/passwd
40Which option would you use with grep to show only lines that do not contain the regular expression that was used?
- A-x
- B-v
- C-u
- D-q
41Which is the correct word for the description here? “Used to refer to the physical screen you are currently looking at as a user?”
- ATerminal
- BConsole
- CShell
- DInterface
42Which is the correct word for the description here? “The environment from which a shell is used where users can enter their commands”
- ATerminal
- BConsole
- CShell
- DInterface
43Which is the correct word for the description here? “The environment that offers a command line on which users type the commands they want to be using”
- ATerminal
- BConsole
- CShell
- DInterface
44Which device file is associated with the virtual console that is opened after using the Alt+F6 key sequence?
- A/dev/console6
- B/dev/tty6
- C/dev/vty6
- D/dev/pts/6
45Which of the following methods will open a pseudo terminal device?
- ALog in using an SSH session
- BUse Alt+F2 to open a new nongraphical login
- CRight-click the graphical desktop and select Open in Terminal
- DEnter your username and password on a nongraphical console
46Sometimes a server reboot may be necessary. Which of the following is not typically one of them?
- ATo recover from serious problems such as server hangs and kernel panics
- BTo apply kernel updates
- CTo apply changes to kernel modules that are used and because of that cannot be reloaded easily
- DTo apply changes to the network configuration
47Which of the following is true about remote access to Linux servers from a Windows environment?
- AOpen a shell terminal on Windows and type ssh. The ssh command is available as a default part of the Windows operating system.
- BConfigure Remote Access on Windows if you want to access Linux servers running the sshd process.
- CInstall the PuTTY program on Windows to access sshd services on Linux from Windows.
- DYou cannot remotely access Linux machines from Windows.
48What is the name of the file in which the public key fingerprint of the SSH servers you have connected to in the past are stored?
- A/etc/ssh/remote_hosts
- B/etc/ssh/known_hosts
- C~/.ssh/remote_hosts
- D~/.ssh/known_hosts
49To allow graphical applications to be used through an SSH session, you can set a parameter in the /etc/ssh/ssh_config file.
Using this parameter makes it unnecessary to use the -X command-line option each time an SSH session is initiated. Which of the following parameters should be used?- AHost *
- BTunnelX11 yes
- CForwardX11 yes
- DXclient yes
50Which of the following statements about key-based SSH authentication is true?
- AAfter creating the key pair, you need to copy the private key to the remote server.
- BUse scp to copy the public key to the remote server.
- CUse ssh-copy-id to copy the public key to the remote server.
- DUse ssh-keygen on the server to generate a key pair that matches the client keys.
51Which statement about privileged users (root) is true?
- AA privileged user is a user who has access to a Linux system.
- BA privileged user with no access permissions can do nothing at all.
- CPrivileged users are not restricted in any way.
- DOn every server, at least one privileged user must be manually created while installing the server.
52On a default installation of a RHEL 7 server, which group does the user typically need to be a member of to be able to use sudo to run all administration commands?
- Aadmin
- Broot
- Csys
- Dwheel
53There are different ways that users can run tasks with root permissions. Which of the following is not one of them?
- Asudo
- Brunas
- Csu
- DPolicyKit
54Which of the following is used to store the hash of the user’s encrypted password?
- A/etc/passwd
- B/etc/shadow
- C/etc/users
- D/etc/secure
55Which configuration file should you change to set the default location for all new user home directories?
- A/etc/login.defaults
- B/etc/login.defs
- C/etc/default/useradd
- D/etc/default/login.defs
56Which command enables you to get information about password properties such as password expiry?
- Achage -l
- Busermod --show
- Cpasswd -l
- Dchage --show
57Which of the following files is not processed when a user starts a login shell?
- A/etc/profile
- B/etc/.profile
- C~/.bashrc
- D~/.bash_profile
58Which of the following is not a property of a typical LDAP server?
- AIt is hierarchical.
- BIt is replicated.
- CIt is secure by default.
- DIt is distributed.
59Which of the following is not a valid tool in RHEL7 to configure LDAP authentication?
- Asystem-config-authentication
- Bauthconfig
- Cauthconfig-tui
- Dauthconfig-gtk
60When setting up authentication against an LDAP server, you need to specify different items. Which of the following is not part of them?
- ABase DN
- BLDAP URI
- CTLS certificate
- DAdministrator name
61A user who is a member of several groups wants to change default group ownership for all newly created files and set it to the group sales. Which command would do that?
- Achgrp sales
- Bsetgid sales
- Cnewgrp sales
- Dsetgroup sales
62Which command enables you to find all files on a system that are owned by user linda?
- Afind / -user linda
- Bfind / -uid linda
- Cls -l | grep linda
- Dls -R | find linda
63Which of the following commands does not set group ownership to the group sales for the file myfile?
- Achgrp sales myfile
- Bchown .sales myfile
- Cchgrp myfile sales
- Dchown :sales myfile
64Which of the following would be used to allow read and write permissions to the user and group owners and no permissions at all to anyone else?
- Achown 007 filename
- Bchmod 077 filename
- Cchmod 660 filename
- Dchmod 770 filename
65Which command enables you to set the SGID permission on a directory?
- Achmod u+s /dir
- Bchmod g-s /dir
- Cchmod g+s /dir
- Dchmod 1770 /dir
66You are trying to use the setfacl command to set ACLs on the directory /data, but you are getting an “operation not supported” message. Which of the following is the most likely explanation?
- AThe setfacl command is not installed on your computer.
- BYou are making an error typing the command.
- CThe user or group to which you want to grant ACLs does not exist.
- DThe file system lacks ACL support.
67Which of the following commands grants rw permissions for the group sales to all new files that will be created in the /data directory and all of its subdirectories?
- Asetfacl -m d:g:sales:rw /data
- Bsetfacl -m d:g:sales:rwx /data
- Csetfacl -R -m g:sales:rwx /data
- Dsetfacl -R -m g:sales:rw /data
68Which command enables you to make sure that others have no access to any new files that will be created in the /data directory, assuming that you want others to have read permissions on all other files?
- Asetfacl -m d:o::- /data
- Bsetfacl -m o::- /data
- Cumask 027 /data
- Dumask 027
69Which of the following umask settings meets the following requirements:
■ Grants all permissions to the owner of the file.
■ Grants read permissions to the group owner of the file.
■ Grants no permissions to others.- A740
- B750
- C027
- D047
70Which command enables you to check all attributes that are currently set on myfile.
- Als --attr myfile
- Bgetattr myfile
- Clsattr myfile
- Dlistattr myfile
71Which of the following IP addresses belong to the same network?
I. 192.168.4.17/26
II. 192.168.4.94/26
II. 192.168.4.97/26
V. 192.168.4.120/26- AI and II
- BII and III
- CIII and IV
- DII, III, and IV
72Which of the following is not a private IP address?
- Aa. 10.10.10.10
- Bb. 169.254.11.23
- Cc. 172.19.18.17
- Dd. 192.168.192.192
73Which of the following would be the default network interface name on a RHEL 7 system?
- Ap6p1
- Beth0
- Ceno1677783
- De0
74Which command shows the recommended way to display information about the network interface as well as its IP configuration?
- Aifconfig -all
- Bipconfig
- Cip link show
- Dip addr show
75Which statement about NetworkManager is not true?
- AIt is safe to disable NetworkManager and work with the network service instead.
- BNetworkManager manages network connections that are applied to network interfaces.
- CNetworkManager has a text based user interface with the name nmtui.
- DNetworkManager is the default service to manage networking in RHEL 7.
76Which man page contains excellent examples on nmcli usage?
- Anmcli
- Bnmcli-examples
- Cnm-config
- Dnm-tools
77Which of the following is the name of the text user interface to specify network connection properties?
- Asystem-config-network
- Bsystem-config-networkmanager
- Cnmtui
- Dnmcli
78Which of the following commands shows correct syntax to set a fixed IP address to a connection using nmcli?
- Anmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
- Bnmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ipv4 10.0.0.10/24 gwv4 10.0.0.1
- Cnmcli con add con-name “static” ifname eth0 type ethernet ipv4 10.0.0.10/24 gw4 10.0.0.1
- Dnmcli con add con-name “static” ifname eth0 autoconnect no type ethernet ip4 10.0.0.10/24 gw4 10.0.0.1
79Which of the following is not a recommended way to specify which DNS servers to use?
- AEdit /etc/resolv.conf
- BSet the DNS options in /etc/sysconfig/network-scripts/ifcfg-<ID>
- CSet the DNS server names using nmcli
- DUse nmtui to set the DNS server names
80In which configuration file would you set the hostname?
- A/etc/sysconfig/network
- B/etc/sysconfig/hostname
- C/etc/hostname
- D/etc/defaults/hostname
81Which of the following is not generally considered a type of process?
- AA shell job
- BA cron job
- CA daemon
- DA thread
82Which of the following can be used to move a job to the background?
- AType &
- BType Ctrl+Z, followed by bg
- CType Ctrl+D, followed by bg
- DType Ctrl+Z, followed by &
83Which keystroke enables you to cancel a current interactive shell job?
- ACtrl+C
- BCtrl+D
- CCtrl+Z
- DCtrl+Break
84Which of the following statements are true about threads?
- AThreads cannot be managed individually by an administrator.
- BMultithreaded processes can make the working of processes more efficient.
- CThreads can be used only on supported platforms.
- DUsing multiple processes is more efficient, in general, than using multiple threads.
85Which of the following commands is most appropriate if you’re looking for detailed information about the command and how it was started?
- Aps ef
- Bps aux
- Cps
- Dps fax
86Of the following nice values, which will increase the priority of the selected process?
- A100
- B20
- C-19
- D-100
87Which of the following shows correct syntax to change the priority for the current process with PID 1234?
- Anice -n 5 1234
- Brenice 5 1234
- Crenice 5 -p 1234
- Dnice 5 -p 1234
88Which of the following commands cannot be used to send signals to processes?
- Akill
- Bmkill
- Cpkill
- Dkillall
89Which signal would you send to a process if you want to force it to stop, even if that means potential loss of data that the process is currently working with?
- ASIGKILL
- BSIGSTOP
- CSIGTERM
- DSIGHUP
90Which of the following commands would you use from top to change the priority of a process?
- Ar
- Bn
- Cc
- Dk
91Which statement about KVM virtualization is not true?
- AKVM is implemented through the Linux kernel.
- BIf you shut down the virt-manager utility, all virtual machines that are running within it will shut down as well.
- CKVM virtualization is not installed by default.
- DTo configure a server as a KVM virtualization platform, you need a 64-bit operating system platform.
92Which process must be running to manage KVM virtual machines?
- Akvmd
- Blibvirtd
- Cqemu
- Dvirt-manager
93How do you enable hardware virtualization support?
- AEnable it in your servers BIOS
- BLoad the kvm module
- CStart the libvirtd service
- DAdd virt=kvm at the kernel boot line in GRUB 2
94How can you check whether hardware virtualization support is enabled on your servers CPU?
- Acat /proc/kvm
- Bcat /proc/cpu
- Ccat /proc/cpuinfo
- Dlscpu
95What command enables you to load kernel KVM support?
- Amodprobe kvm
- Binsmod kmv
- Clsmod kvm
- Dmodload kv
96In which directory are virtual machine disk files stored by default?
- A/etc/libvirt/images
- B/var/lib/libvirt/fileystems
- C/var/lib/libvirt/images
- D/var/lib/qemu/images
97What will be the (default) name of the configuration file that is used by the virtual machine vm1?
- A/etc/kvm/vm1.xml
- B/etc/libvirt/vm1.xml
- C/etc/libvirt/kvm/vm1.xml
- D/etc/libvirt/qemu/vm1.xml
98Which approach would you use to enable a virtual machine for automatic starting while booting?
- AOn the virtual machine properties, select the automatic boot option in Virtual Machine Manager.
- BUse systemctl enable followed by the name of the virtual machine.
- CFrom the Virtual Machine Manager Boot Options interface, under Autostart, select the Start Virtual Machine on Host Boot Up option.
- DAdd the virtual machine name as a boot option to GRUB on the hypervisor host.
99From a command-line interface, which command enables you to list all virtual machines that are available, including VMs that haven’t been started?
- Avirsh list
- Bvirsh --list
- Cvirsh list --all
- Dvirsh list all
100You want to stop a virtual machine in the fastest way possible. Which command enables you to do this?
- Avirsh shutdown vmname
- Bvirsh shutdown --now vmname
- Cvirsh poweroff vmname
- Dvirsh destroy vmname
101Which of the following is not a mandatory component in a .repo file that is used to indicate which repositories should be used?
- A[label]
- Bname=
- Cbaseurl=
- Dgpgcheck=
102Which installation source is used on RHEL if a server is not registered with RHN?
- AThe installation medium
- BNothing
- CThe base RHN repository, without updates
- DYou have full access to RHN repositories, but the software you are using is just not supported.
103Which of the following should be used in the repo file to refer to a repository that is in the directory /repo on the local file system?
- Afile=/repo
- Bbaseurl=file://repo
- Cbaseurl=file:///repo
- Dfile=http:///repo
104Which of the following is true about GPG-based repository security?
- AIf packages in the repository have been signed, you need to copy the GPG key to the correct location.
- BGPG package signing is mandatory.
- CGPG package signatures prevent packages in a repository from being changed.
- DGPG package signing is recommended on Internet repositories, but not required on local repositories that are for internal use only.
105Which command enables you to search the package that contains the file semanage?
- Ayum search semanage
- Byum search all semanage
- Cyum provides semanage
- Dyum whatprovides */semanage
106Which command enables you to show all installed packages using the yum command?
- Ayum show
- Byum show all
- Cyum list
- Dyum list all
107Which command enables you to find out the yum ID number that is needed to roll back a command that was issued with yum?
- Ayum show all
- Byum show recent
- Cyum show history
- Dyum history
108Which command should you use to install an RPM file that has been downloaded to your computer?
- Ayum install
- Byum localinstall
- Crpm -ivh
- Drpm -Uvh
109Which command enables you to find the RPM a specific file belongs to?
- Arpm -ql /bin/file
- Brpm -qlf /bin/file
- Crpm -qf /bin/file
- Drom -qa /bin/file
110Which command enables you to analyze whether there are scripts in an RPM package file that you have just downloaded?
- Arpm -qs packagename.rpm
- Brpm -qps packagename.rpm
- Crpm -qp --scripts packagename.rpm
- Drpm -q --scripts packagename.rpm
111Which of the following commands enables you to check the current status of the crond service?
- Aservice crond status
- Bsystemctl status crond
- C/usr/sbin/crond --status
- Dchkconfig crond --show
112Which of the following would run a cron task Sunday at 11 a.m.?
- A* 11 7 * *
- B0 11 * 7 *
- C0 11 * * 7
- D11 0 * 7 *
113 Which of the following launches a job every five minutes from Monday through Friday?
- A*/5 * * * 1-5
- B*/5 * 1-5 * *
- C0/5 * * * 1-5
- D0/5 * 1-5 * *
114How do you create a cron job for a specific user?
- ALog in as that user and type crontab -e to open the cron editor.
- BOpen the crontab file in the user home directory and add what you want to add.
- CAs root, type crontab -e username.
- DAs root, type crontab -u username –e.
115Which directory is mainly used by cron files that are installed automatically through RPM?
- A/etc/crond.d
- B/etc/cron.d
- C/var/cron
- D/var/spool/cron
116Which of the following is not a recommended way to specify jobs that should be executed with cron?
- AModify /etc/crontab.
- BPut the jobs in separate scripts in /etc/cron.d.
- CUse crontab -e to create user specific cron jobs.
- DPut scripts in /etc/cron.{hourly|daily|weekly|monthly} for automatic execution.
117Which service takes care of executing cron jobs in /etc/cron.hourly, cron.daily, cron.weekly, and cron.monthly?
- Acron
- Bcrontab
- Catd
- Danacron
118Which of the statements about cron security is true?
- ABy default, all users are allowed to schedule tasks through cron because the /etc/cron.allow file has the keyword all in it.
- BIf the cron.deny file exists, a cron.allow file must be created also and list users who are allowed to schedule tasks through cron.
- CFor every user, a matching entry must exist in either the cron.allow file, or in the cron.deny file.
- DIf the cron.allow file exists, a user must be listed in it to be able to schedule jobs through cron.
119After entering commands in the at shell, which command enables you to close the at shell?
- ACtrl+V
- BCtrl+D
- Cexit
- D:wq
120Which command enables you to see current at jobs scheduled for execution?
- Aatrm
- Batls
- Catq
- Dat
121Which of the following statements about journald is not true?
- Ajournald logs kernel messages.
- Bjournald writes to the journal, which by default does not persist between boots.
- Cjournald is a replacement of rsyslogd.
- DTo read files from the journal, the journalctl command is used.
122Which log would you read to find messages related to authentication errors?
- A/var/log/messages
- B/var/log/lastlog
- C/var/log/audit/audit.log
- D/var/log/secure
123Which log would you read to find information that relates to SELinux events?
- A/var/log/messages
- B/var/log/lastlog
- C/var/log/audit/audit.log
- D/var/log/secure
124What is the name of the rsyslogd configuration file?
- A/etc/rsyslog.conf
- B/etc/sysconfig/rsyslogd.conf
- C/etc/sysconfig/rsyslog.conf
- D/etc/rsyslog.d/rsyslogd.conf
125You need to change the startup behavior of the rsyslogd service. Which of the following describes the recommended approach to do so?
- AInclude the startup parameter in the main rsyslog configuration file
- BCreate a snap-in file in the directory /etc/rsyslog.d and specify the required parameters in there.
- CChange the systemd unit file in /usr/lib/systemd/system to include the required startup parameter.
- DUse the SYSLOGD_OPTIONS line in the file /etc/sysconfig/rsyslog and include the startup parameter here.
126In the rsyslog.conf file, which of the following destinations refers to a specific rsyslogd module?
- A-/var/log/maillog
- B/var/log/messages
- C:omusrmsg:*
- D*
127Which facility is the best solution if you want to configure Apache to log messages through rsyslog?
- Adaemon
- Bapache
- Csyslog
- Dlocal0-7
128You want to maximize the file size of a log file to 10MB. Where do you configure this?
- ACreate a file in /etc/logrotate.d and specify the maximal size in that file.
- BPut the maximal size in the logrotate cron job.
- CConfigure the destination with the maximal size option.
- DThis cannot be done.
129Which directory is used to store the journald journal?
- A/var/log/journal
- B/var/run/journal
- C/run/log
- D/run/log/journal
130What do you need to do to make the journald journal persistent?
- ACreate the directory /var/log/journal, set appropriate permissions and reboot your machine.
- BOpen /etc/sysconfig/journal and set the PERSISTENT option to yes.
- COpen the /etc/systemd/journald.conf file and set the PERSISTENT option to yes.
- DCreate the /var/log/journal file and set appropriate permissions.
131Which of the following is not an advantage of using a GUID partition table over using an MBR partition table?
- AAccess time to a directory is quicker
- BA total amount of 8 ZiB can be addressed by a partition.
- CWith GUID partitions, a backup copy of the partition table is created automatically.
- DThere can be up to 128 partitions in total.
132You want to create a partition with a size of 10245 bytes. What size should it be?
- A1 PB
- B1 PiB
- C1 EB
- D1 EiB
133Which partition type is commonly used to create a Linux partition?
- A81
- B82
- C83
- D8e
134What is the default disk device name you would expect to see in KVM virtual machines?
- A/dev/sda
- B/dev/hda
- C/dev/vda
- D/dev/xvda
135Which of the following statements is not true?
- ADo not ever use gdisk on an MBR disk.
- Bfdisk offers support to manage GPT partitions as well, but it is not stable as of yet.
- CDepending on your needs, you can create MBR and GPT partitions on the same disk.
- DIf your server boots from EFI, you must use GPT partitions.
136Which of the following file systems is used as the default in RHEL7?
- AExt4
- BXFS
- Cbtrfs
- DExt3
137Which command enables you to find current UUIDs set to the file systems on your server?
- Amount
- Bdf -h
- Clsblk
- Dblkid
138What would you put in the device column of /etc/fstab to mount a file system based on its unique ID 42f419c4-633f-4ed7-b161-519a4dadd3da?
- A42f419c4-633f-4ed7-b161-519a4dadd3da
- B/dev/42f419c4-633f-4ed7-b161-519a4dadd3da
- CID=42f419c4-633f-4ed7-b161-519a4dadd3da
- DUUID=42f419c4-633f-4ed7-b161-519a4dadd3da
139Which of the following /etc/fstab lines would perform a file system check on the file system, but only after the root file system has been checked successfully?
- A/dev/sda1 /data xfs defaults 1 1
- B/dev/sda1 /dat xfs defaults 1 2
- C/dev/sda1 /data xfs defaults 1 4
- D/dev/sda1 /data xfs defaults 0 2
140Which mount option would you use in /etc/fstab to specify that the file system can only be mounted once the network is available?
- Anetwork
- B_netdev
- C_network
- Dnetdev
141Which of the following is not a standard component in an LVM setup?
- ALogical volume
- BFile system
- CVolume group
- DPhysical volume
142Which of the following is not an LVM feature?
- AVolume resizing
- BHot replacement of failing disk
- CCopy on write
- DSnapshots
143Which partition type do you need on a GPT partition to mark it with the LVM partition type?
- A83
- B8e
- C8300
- D8e00
144Which of the following commands shows correctly how to create a logical volume that uses 50% of available disk space in the volume group?
- Avgadd -n lvdata -l +50%FREE vgdata
- Blvcreate lvdata -l 50%FREE vgdata
- Clvcreate -n lvdata -l 50%FREE vgdata
- Dlvadd -n lvdata -l 50% FREE /dev/vgdata
145Which command shows an overview of available physical volumes?
- Apvshow
- Bpvdisplay
- Cpvs
- Dpvlist
146Which of the following statements about physical volumes is/are true?
- APartitions should be flagged as LVM partition before assigning them as a physical volume.
- BRaw disks can be flagged as a physical volume.
- CPhysical volumes can only be created on the Ext4 or XFS file system.
- DPhysical volumes cannot be created on LUNs.
147Which of the following shows correct syntax for creating a volume group?
- Avgcreate /dev/vgdata sda1
- Bvgcreate sda1 /dev/vgdata
- Cvgcreate vgdata /dev/sda1
- Dvgcreate vgdata sda1
148Which of the following commands would set the extent size that is used when creating a logical volume to a default of 4 MiB?
- Apvcreate -s 4M /dev/sda4
- Bvgcreate -s 4M vgdata /dev/sda4
- Clvcreate -s 4M -L 200M -n lvdata vgdata
- Dlvcreate -x 4M -L 200M -n lvdata vgdata
149Which of the following is not a likely correct name for the logical volume lvdata that was created in the volume group vgdata?
- A/dev/vgdata-lvdata
- B/dev/vgdata/lvdata
- C/dev/dm-1
- D/dev/mapper/vgdata-lvdata
150Which of the following commands resizes the logical volume /dev/vgdata/ lvdata as well as the file system that is used on top of it, and adds 1GB to the existing volume size?
- Alvresize -l +1G -r /dev/vgdata/lvdata
- Blvresize -L +1G -r /dev/vgdata/lvdata
- Clvresize -L 1G -r /dev/vgdata/lvdata
- Dlvresize -l 1G -f /dev/vgdata/lvdata
151What causes a tainted kernel?
- AA kernel driver that is not available as open source driver
- BA driver that was developed for a different operating system but has been ported to Linux
- CA driver that has failed.
- DAn unsupported driver.
152What is the name of the command that shows kernel events since booting?
- Alogger
- Bdmesg
- Cklogd
- Djournald
153Which command enables you to find the actual version of the kernel that is used?
- Auname -r
- Buname -v
- Cprocinfo -k
- Dprocinfo -l
154Which command shows the current version of RHEL you are using?
- Auname -r
- Bcat /proc/rhel-version
- Ccat /etc/redhat-release
- Duname -k
155 What is the name of the process that helps the kernel initializing hardware devices properly?
- Asystemd-udevd
- Bhwinit
- Cudev
- Dudevd
156Where does your system find the default rules that are used for initializing new hardware devices?
- A/etc/udev/rules.d
- B/usr/lib/udev/rules.d
- C/usr/lib/udev.d/rules
- D/etc/udev.d/rules
157Which command should you use to unload a kernel module, including all of its dependencies?
- Armmod
- Binsmod -r
- Cmodprobe -r
- Dmodprobe
158Which command enables you to see whether the appropriate kernel modules have been loaded for hardware in your server?
- Alsmod
- Bmodprobe -l
- Clspci -k
- Dlspci
159Where do you specify a kernel module parameter to make it persistent?
- A/etc/modules.conf
- B/etc/modprobe.conf
- C/etc/modprobe.d/somefilename
- D/usr/lib/modprobe.d/somefilename
160Which statements about updating the kernel is not true?
- AThe yum update kernel command will install a new kernel and not update it.
- BThe yum install kernel command will install a new kernel and keep the old kernel.
- CThe kernel package should be set as a yum protected package to ensure that after an update the old kernel is still available.
- DAfter you have installed a new kernel version, you must run the grub2-mkconfig command to modify the GRUB 2 boot menu so that is shows the old kernel and the newly installed kernel.
161Which command installs the software packages that are needed to configure an Apache web server?
- Ayum install httpd
- Byum install web-server
- Cyum install apache
- Dyum install apache2
162What is the name of the main Apache configuration file?
- A/etc/httpd/conf/httpd.conf
- B/etc/httpd/httpd.conf
- C/etc/apache2/apache.conf
- D/etc/httpd/default-server.conf
163Which parameter in the Apache configuration file is used to specify where Apache will serve its documents from?
- AServerRoot
- BServerDocuments
- CDocumentRoot
- DDocumentIndex
164Which parameter in the main Apache configuration file defines the location where the Apache process looks for its configuration files?
- AServerRoot
- BServerDocuments
- CDocumentRoot
- DDocumentIndex
165Which directory contains the main Apache configuration file?
- A/etc/httpd
- B/etc/htttpd/conf
- C/etc/httpd/conf.d
- D/etc/httpd/conf.modules.d
166Which directory contains the configuration files for the different Apache modules?
- A/etc/httpd
- B/etc/htttpd/conf
- C/etc/httpd/conf.d
- D/etc/httpd/conf.modules.d
167Which directory is used to drop configuration files that are installed from RPMs?
- A/etc/httpd
- B/etc/htttpd/conf
- C/etc/httpd/conf.d
- D/etc/httpd/conf.modules.d
168Which virtual host type allows you to run multiple virtual hosts on the same IP address?
- ANameBased
- BIPBased
- CConfigurationBased
- DDefault
169Which line is used to start the definition of a virtual host that listens on port 80 of all IP addresses on the current server?
- A<VirtualHost *:80>
- B<VirtualHost *>
- C<NameHost *:80
- D<NameHost *>
170Which of the following statements about virtual hosts is not true?
- AWhen virtual hosts are offered through an httpd process, the default configuration no longer works.
- BThe names of virtual hosts must be resolvable through /etc/hosts or DNS.
- CTo use virtual hosts, the mod_virt package must be installed.
- DVirtual host configurations can be specified in httpd.conf.
171Which command shows all service unit files on your system that are currently loaded?
- Asystemctl --type=service
- Bsystemctl --type=service --all
- Csystemctl --list-services
- Dsystemctl --show-units | grep services
172Which statement about systemd wants is not true?
- AYou can create wants by using the systemctl enable command.
- BThe target to which a specific want applies is agnostic of the associated wants.
- CWants are always administered in the /usr/lib/systemd/system directory.
- DEach service knows to which target its wants should be added.
173What is the best solution to avoid conflicts between incompatible units?
- ANothing, the unit files have defined for themselves which units they are not compatible with.
- BDisable the service using systemctl disable.
- CUnmask the service using systemctl unmask.
- DMask the service using systemctl mask.
174Which of the following is not a valid status for systemd services?
- ARunning(active)
- BRunning(exited)
- CRunning(waiting)
- DRunning(dead)
175To allow targets to be isolated, you need a specific statement in the target unit file. Which of the following describes that statement?
- AAllowIsolate
- BIsolate
- CSetIsolate
- DIsolated
176Which of the following is not a valid systemd unit type?
- Aservice
- Budev
- Cmount
- Dsocket
177You want to find out which other systemd units have dependencies to this specific unit. Which command would you use?
- Asystemd list-dependencies --reverse
- Bsystemctl list-dependencies --reverse
- Csystemctl status my.unit --show-deps
- Dsystemd status my.unit --show-deps -r
178What is the name of the file where you should apply changes to the GRUB 2 configuration?
- A/boot/grub/menu.lst
- B/boot/grub2/grub.cfg
- C/etc/sysconfig/grub
- D/etc/default/grub
179After applying changes to the GRUB 2 configuration, you need to write those changes. Which of the following commands will do that for you?
- Agrub2 -o /boot/grub/grub.cfg
- Bgrub2-mkconfig > /boot/grub2/grub.cfg
- Cgrub2 > /boot/grub2/grub.cfg
- Dgrub2-install > /boot/grub2/grub.cfg
180Which of the following is not a valid command while working with units in systemctl?
- Asystemctl unit start
- Bsystemctl status -l unit
- Csystemctl mask unit
- Dsystemctl disable unit
181Which of the following comes first in the Red Hat Enterprise Linux 7 boot procedure?
- ASystemd
- BKernel
- CGRUB 2
- DInitramfs
182You have just entered a kernel argument on the GRUB 2 boot prompt. Which key(s) enables you to start with this boot argument?
- AZZ
- BCtrl+X
- CEsc
- DEnter
183Your initramfs seems faulty and cannot initialize the LVM volumes on your disk. Which configuration file should you check for options that are used?
- A/etc/dracut.d/dracut.conf
- B/etc/dracut.conf
- C/etc/sysconfig/dracut
- D/etc/mkinitrd.conf
184You do not have the root password and want to reset it. Which kernel argument offers the recommended way to reset it?
- Ainit=/bin/bash
- Binit=/bin/sh
- Csystemd.unit=emergency.target
- Drd.break
185You want to see exactly what is happening on system boot. Which two boot options should you remove from the GRUB 2 boot prompt? (Choose two.)
- Arhgb
- Blogo
- Cquiet
- Dsilent
186You want to enter the most minimal troubleshooting mode where as few services as possible are loaded. Which boot argument should you use?
- Asystemd.unit=break.target
- Bsystemd.unit=emergency.target
- Csystemd.unit=rescue.target
- D1
187Which of the following situations can be resolved only by using a rescue disk?
- AThe kernel stops loading.
- BThe initramfs stops loading.
- CYou never get to a GRUB 2 boot prompt.
- DYou are prompted to enter the root password for maintenance mode.
188You have entered a troubleshooting mode, and disk access is read-only. What should you do?
- ARestart the troubleshooting mode and pass the rw boot option to the kernel.
- BUse the rd.break boot argument to manually start into the initramfs mode.
- CUse mount -o remount,rw /.
- DUse mount /.
189Your server shows a blinking cursor only while booting. No GRUB 2 menu is available. What is the first step in troubleshooting this issue?
- AFrom a rescue disk, try the boot from local disk option.
- BStart a rescue environment and reinstall GRUB.
- CStart a rescue environment and re-create the initramfs.
- DUse the rd.break boot argument.
190When recovering access to a virtual machine, you need to make the storage devices in the image file available. Which of the following commands would do that, assuming that the name of the image file is /home/user/lab1.img?
- Apartx -ax /home/user/lab1.img
- Bkpartx -ax /home/user/lab1.img
- Ckpartx -av /home/user/lab1.img
- Dpartx -av /home/user/lab1.img.
191Which of the following installation server types is not supported?
- ANFS
- BCIFS
- CHTTP
- DFTP
192What can you use if you want a minimal boot image to be available to the servers you want to install, but you do not want to provide that through a network PXE server?
- AUse the boot.iso image that is provided by Red Hat at RHN.
- BUse the installation disk.
- CCopy the bootloader to the server you want to install before starting the installation.
- DCopy the boot image on the HTTP installation server.
193Which service needs to be enabled to provide TFTP services?
- Atftp
- Btftpd
- Chttpd
- Dxinetd
194In which file do you specify the name of the PXE boot image that needs to be handed out to installable clients?
- A/etc/ftpt.conf
- B/etc/xinetd.d/tftp
- C/etc/dhcpd.conf
- D/etc/pxe.conf
195In which file do you specify the name of the TFTP server root directory?
- A/etc/ftpt.conf
- B/etc/xinetd.d/tftp
- C/etc/dhcpd.conf
- D/etc/pxe.conf
196Which RPM package contains the boot loader that is used in a PXE environment to provide all available boot options to the clients?
- Asyslinux
- Blilo
- Cgrub
- Dgrub2
197Which boot argument must be used on the GRUB 2 boot prompt that is provided from the installation DVD to refer to a Kickstart file?
- Ainstall=
- Bks=
- Ckickstart=
- Danaconda=
198What is the name of the default Kickstart file that is created after installing an RHEL server?
- A/root/kickstart.cfg
- B/root/anaconda.cfg
- C/root/anaconda-ks.cfg
- D/root/anaconda-kickstart.cfg
199What is the name of the utility that provides a menu-driven interface to create Kickstart files?
- Akickstart-config
- Bsystem-config-kickstart
- Cconfig-kickstart
- Dsystem-config-install
200Which of the following cannot be specified using system-config-kickstart?
- ALVM logical volumes
- BIndividual RPM packages
- CFirewalld services
- DAll of the above
Información
- Descripción
- 1 RH Test sobre Rhq, creado por Antonio M el 06/02/2017.
- Autor
- Antonio M
- Idioma
- Español
- Visitas
- 1
- Etiquetas
- Valoración
- Aún sin valoraciones Valora este test