1. You are the system administrator of an Apache server that houses the Web sitelinuxsite.org. This site allows users
with normal accounts to have home pages, and it houses several othermission critical Web sites. A user, joe, has a
home page that requires a change in one of the Apacheconfiguration directives. Joe wants to allow or deny access to
his home page based on a username/passwordcombination. Which of the following is the best way to implement this
change?
A. Allow joe to configure the appropriate .htaccess file.
B. Install the mod_runtime_auth module and allow joe make the
appropriate changes to httpd.conf.
C. Make the appropriate changes to httpd.conf file and restart httpd.
D. Make the appropriate changes to the global .htaccess file and
restart httpd.
Answer: A
2. If a user has already defined a log format called "common," which of the followingdirectives will ALWAYS make
Apache log requests to "/var/log/apache/access_log" using the "common" format?
A. TransferLog /var/log/apache/access_log format=common
B. TransferLog /var/log/apache/access_log common
C. CustomLog /var/log/apache/access_log format=common
D. CustomLog /var/log/apache/access_log common
Answer: D
3. Cookies can be used by Apache to create a click stream log of user activity.However, for the cookies to work,
Apache must be compiled with the _________ module, then the ________directive must be added to the httpd.conf
file.
A. mod_usertrack; CookieTracking on
B. mod_cookies; Cookies on
C. mod _cookietracking; CookieTracking on
D. mod_cookielog; CookieLogging on
E. mod_userlog; CookieLogging on
Answer: A
4. Which of the following is NOT controlled by httpd.conf?
A. Access to the Web server
B. HTML content
B. HTML content
C. The type of information that Apache logs
D. Location of virtual Web sites on the server
E. Allowed content types
Answer: B
5. Ralf, a user, wishes to upgrade his existing version of Apache by including mod_sslas a loadable module.
Assuming that the shared object for mod_ssl is libssl.so, and that mod_ssl is located in "/prefix/modules/," which of
the following must be present in his httpd.conf file?
A. LoadModule mod_ssl modules/libssl.so
B. AddModule mod_ssl modules/libssl.so
C. LoadModule /prefix/modules/libssl.so mod_ssl
D. AddModule /prefix/modules/libssl.so mod_ssl
Answer: A
6. Which of the following scenarios most accurately describes the Apache initialization
sequence?
A. Apache spawns one child process each second until MinSpareServers is satisfied or MaxClients is reached.
B. Apache spawns one child, then two, then four, and up to 32 processes per second until MaxClients is reached or
MinSpareServers is satisfied.
C. Apache spawns one child process then continues to double the number of processes spawned each second
indefinitely until MaxClients is reached or MinSpareServers is satisfied.
D. Apache spawns the needed number of child processes dependent on the number of incoming requests until
MaxClients is reached or MinSpareServers is satisfied. For example, if three requests come in, Apache would spawn
three processes, and so on.
Answer: B
7. Which of the following best explains why Apache Web servers are able to handle multiple requests?
A. In addition to port 80, Apache opens ports 8080, 8000, and others to handle the additional requests.
B. Apache is able to spawn child processes that handle requests before they die.
C. Apache uses the renice service to load balance between different system daemons.
D. Upon reaching a set number of requests, Apache uses a raw socket to adjust a system's bandwidth to handle the
additional requests.
Answer: B
8. Which of the following HTTP headers will direct a browser to www.site.com after waiting five seconds?
A. Rewrite 5; URL=http://www.site.com/
B. Location 5; URL=http://www.site.com/
C. Refresh 5; URL=http://www.site.com/
D. Reload http://www.site.com/ -t 5
E. Direct -t 5 http://www.site.com Roman
Answer: C
9. Which of the following are TRUE concerning directives and Apache? (Choose two.)
A. Directives are commands issued through apachectl.
B. Directives are used to control Apache's runtime configuration.
C. Directives can be used to alter Apache's configuration during runtime.
D. Directives can be used in configuration files other than httpd.conf.
Answer: BD
10. In order for Apache to know that all files with a .cgi extension are CGI scripts,which of the following MUST be
added to the httpd.conf file?
A. EnableMod *.cgi cgi-script
B. AddHandler cgi-script .cgi
C. AddModule cgi-script /*.cgi
D. DocumentType .cgi cgi-script
E. LoadModule cgi-script /*.cgi
Answer: B
11. Liz has completed an Apache installation on her computer. She did not encounter any errors. Which of the
following can she use to see Apache's default index? (Choose two.)
A. http://localserver
B. http://localhost
C. http://index
D. http://192.168.0.0
E. http://127.0.0.1
Answer: BE
12. Which of the following are DISADVANTAGES of compiling a module into a server? (Choose two.)
A. Modules do not use optimum compression, thus reducing the overall efficiency of the Apache build.
B. Modules reduce performance by consuming additional system resources.
C. Modules take up space within the server even if the features are not used.
D. Upgrading a static module requires the server to be recompiled.
E. Modules limit the functionality of Apache by restricting the number of modules that may be loaded into the server.
Answer: CD
13. Apache serves a document according to certain characteristics provided by the requesting browser. These
characteristics of the document are called the document's dimensions. What dimension is used when Apache serves
a request from a browser that has a preference for gzip compressed documents?
A. type
B. encoding
C. compression
D. format
Answer: B
14. Jamie is running Apache 1.3. He wants different pages with similar content on his Web site to be served to best
accommodate each browser that views them. He alters the httpd.conf file and makes the changes below. Which line
still needs to be altered to enable the desired effect?
Options All
AllowOverride Authconfig
Order allow,deny
Allow from all
A. He needs to add "MultiViews On" to the "Options All" line.
B. He needs to change "AllowOverride Authconfig" to "AllowOverride None."
C. He needs to change "Order allow,deny" to "Order deny,allow."
D. He needs to add "localhost" to the "Allow from all" line.
Answer: A
15. Which of the following are TRUE regarding containers in httpd.conf? (Choose two.)
A. Containers consist of a paired set of delimiters.
B. If two containers contradict, the first is applied.
C. Containers may only be applied globally.
D. Containers allow individual virtual hosts to have their ownsettings.
Answer: AD
16. Which of the following fields is NOT a part of the Common Log Format (CLF)?
A. Requesting host
B. Byte length of the request
C. Date of request
D. Time to serve request
E. HTTP status code
Answer: D
17. Which of the following can be used to send a cookie to the http client? (Choose two.)
A. XMLScript
B. Static HTML
C. JavaScript
D. CGI scripts
E. GIFScript
Answer: CD
18. Which of the following modules MUST be compiled into the Apache server?
A. http_core.c
B. apache_so.c
C. charset_so.c
D. tcpip_core.c
Answer: A
19. Consider the file "test.html" below. Which of the following best describes what this
code does?
20. Which of the following can increase Web server performance? (Choose three.)
A. Move all swap space to the same partition as the Web server data.
B. Turn off logging.
C. Place Apache logs on the fastest drive.
D. Add additional RAM to the system.
E. Place Apache logs on the slower drive and the Web data on the faster drive.
Answer: BCD