41.
What specifically is the AllowOverride directive used for?
- A.If set to yes, the contents of a directory can be changed.
- B.This setting is specifically for user home directories. If set to yes, these will be included in the Apache configuration.
- C.If set to yes, the .htaccess file in Apache directories will be considered, which will have a performance price.
- D.Set to yes if you want to allow users to create additional configuration files in directories.
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The .htaccess file can be used to specify directory access. This is a convenient way to configure access restrictions on directories, but it does have a relatively high performance price. |
42.
Which directive do you need if you want to see a list of files in a directory
where the default DirectoryIndex file does not exist?
- A.AllowIndexes
- B.RequireIndex no
- C.AllowFileList
- D.Options Indexes
- Answer & Explanation
- Report
Answer : [D]
Explanation :
Explanation :
The Options Indexes directive shows a list of files in a directory where no index.html file exists. Notice that from a security perspective this is better avoided. All other answers refer to nonexisting options. |
43.
Which directory by default is used for Apache module files to drop additional
configuration files?
- A./etc/httpd/conf.d
- B./etc/httpd/modules.conf.d
- C./etc/modules.d
- D./etc/sysconfig/include
- Answer & Explanation
- Report
Answer : [B]
Explanation :
Explanation :
The /etc/httpd/modules.conf.d directory is used for snap-in configuration files that come from Apache modules. The /etc/httpd/conf.d directory contains generic Apache configuration files, and the other two files are not used by Apache web servers. |
44.
Since RHEL 7, an Apache boolean that was previously enabled is now off
by default. This boolean switches Apache to a more restricted configuration,
where directories need to be configured with specific SELinux context labels
to allow Apache to work. What is the name of this Boolean?
- A.http_restricted
- B.http_confined
- C.httpd_unified
- D.httpd_secure
- Answer & Explanation
- Report
Answer : [C]
Explanation :
Explanation :
The hpptd_unified Boolean applies, when set to off, default security restrictions that make Apache more secure. |
45.
Which utility enables you to generate a TLS certificate and key for setting up
a TLS security Apache web server?
- A.genkey
- B.openssl
- C.createkey
- D.sslkey
- Answer & Explanation
- Report
Answer : [A, B]
Explanation :
Explanation :
The genkey and the openssl utilities can be used to create a public key certificate. Because openssl is difficult because of its many command-line utilities, it is recommended to use the genkey utility. |