These Apache multiple-choice questions and their answers will help you strengthen your grip on the subject of Apache. You can prepare for an upcoming exam or job interview with these 60 Apache MCQs.
So scroll down and start answering.
A. A scripting language
B. A machine language
C. A database language
D. Web Server Software
A. They control access to particular parts of the server based on the client hostname or IP address.
B. They allow administrators to indicate routing information for proxy servers.
C. None of these
D. They control visitor access to parts of the server though it is deprecated in favor of the new mod_access_compat module.
A. It allows the server to display a web page containing statistics about the web server's current state, including worker processes and active connections.
B. If the server has too many File Descriptors open or exceeds certain memory limits(specified by the admininistrator), an entry will be included in the logs.
C. None of these
D. The mod_status module has been deprecated in favor of the new mod_server_info module
A. A network protocol
B. An email standard
C. A web standard used to to determine the type of a file from its extension
D. A web standard for the handling of user credentials
A. httpd.conf
B. .htaccess
C. apache.conf
D. server.conf
A. Format of error messages
B. Format in which file sizes are returned
C. Format in which time isreturned
D. All of the above
A. httpd.conf
B. server.conf
C. apache.conf
A. Transmission Control Protocol/Internet Protocol
B. Textual Control Protocol/Internet Protocol
C. Tracking Control Protocol/Internal Protocol
D. Transmission Control Protocol/Infrastructure Protocol
A. TRUE
B. False
A. All of these
B. Know how ofter content is viewed
C. Know who is repeatedly visiting the site
D. Illuminate marketing problems
A. The Apache Software Foundation.
B. Gnu Free Software Foundation
C. Jakarta Open Source Community
D. the Linux Open Source Community
A. <Files>
B. <Directory>
C. <Proxy>
D. <Location>
A. "//"
B. "!"
C. "\\"
D. "#"
A. htdocs
B. httpd
C. cgi-bin
D. apache.exe
A. Improves the aesthetic of the website
B. It doesn't require the use of a firewall
C. Better performance/improved security
D. Helps clear the cache
A. It comes with an unrestricted license
B. All of these
C. It is actively being developed
D. It is not an Application Server
A. True
B. False
A. A user group
B. All users on the network
C. The root user
D. Anyone with internet access
A. An HTTP request method that returns a diagnostic trace of actions it takes
B. An HTTP request method that asks proxy to relay the content of another host
C. A SSL method that logs errors
D. A SSL method that tracks cookies
A. regular expression rules
B. CGI scripts
C. None of these
D. environment variables
A. Introduces a block of text containing directives to one host
B. All of these
C. Specifies whcih IP address the site is hosting
D. Specifies the port that is in use
A. Nothing can be done because the authentication credentials are always passed openly with Basic authentication
B. Include the mod_ssl module
C. Include the XBitHack directive
D. None of these
A. mod_rewrite
B. None of these
C. mod_alias
D. authn_file_module
A. Allows users to change the default Log format
B. Tells Apache to process or not the .htaccess file and what kind of directives are allowed in it
C. Tells Apache to overwrite the default environment variables
D. Allows users to overwrite exiting server name and port number
A. "/"
B. ","
C. "\"
D. ":"
A. Be the real site
B. Be separate and identical to the real site
C. Be scaled up from the real site
D. Be separate but have differing features from a the real site
A. You are proxying content to your server.
B. The client address matches 127.0.0.0/8.
C. None of these
D. The client and the server address of the connection are different.
A. use of a threaded mpm
B. lowering the KeepAliveTimeout directive
C. lowering the timeout directive
D. a firewall
A. Configures the Index Directory
B. Specifies a list of resources to look for when the client requests an index of the directory name
C. Gives users more control of information sorted
D. Sorts the directory when a client requests an index of a directory
A. Using the mod_logio module, the httpd server CAN actually rotate logs files while running.
B. None of these
C. Chunks of the Apache logs are stored in memory before being written to the file system. Therefore, moving or deleting log files will lead inconsistent logging.
D. The Apache httpd will continue writing to the old log file as long as it holds the file open. Therefore, the files cannot be deleted or moved.
A. CacheRoot
B. Directory
C. Alias
D. AccessFileName
A. Order
B. Bind Address
C. Port
D. None, they are applied by the order in which they appear in your file
A. "/"
B. ":"
C. "\"
D. ";"
A. server has a different IP address/port combination for each IP-based virtual host.
B. The machine hosting the server has several physical network connections
C. The machine hosting the server has several virtual interfaces
D. Any of these
A. Handler
B. DSO
C. SSI
D. Directive
A. LogFormat
B. Allow
C. AuthType
D. DirectoryIndex
A. DJANGO
B. NoSQL
C. Firebird
D. MySQL
A. Enables/Disables the rewriting engine
B. Sends logging to the specified Filename
C. Controls the verbostiy of logging
D. Defines an external mapname file
A. if you wanted to add SSI directives to an existing page, you would have to change the name of that page, and all links to that page, in order to give it a .shtml extension
B. None of these
C. Any change made to the .shtml will require a server restart
D. Every new extension included through the filter requires a new DSO to be compiled into the Apache core.
A. There is no noticeable affect
B. It increases the server startup time.
C. None of these
D. It decreases the server startup time.
A. Specifies a directory under which all files can only be accessed by a specific user
B. Specifies a directory underneath the user's home directory where web files are located
C. Allows a user's home directory to be accessible.
D. None of these
A. None of these
B. Write access to log directories indirectly opens access to the Apache server bin/ directory.
C. Someone can gain access to the uid that the server is started as, which is normally root.
D. Write permissions to the log directory does not pose a significant security risk.
A. It tells Apache that you want to permit files to be parsed for SSI directives
B. It tells Apache to allow system environment variables to override httpd command line variables.
C. None of these
D. It tells Apache that you want to permit remote content into a web page
A. None of these
B. Users can make configuration changes and to access directories for which they wouldn't normally have access, provided the directory is not owned by ''root''.
C. The .htaccess file is loaded every time a document is requested.
D. httpd will look in every directory for .htaccess files
A. it can suppress useful error messages about missing modules.
B. It ignores DSO's
C. None of these
D. It only functions for statically compiled modules.
A. None of these
B. XBitHack tells Apache to parse files for SSI directives if they have the execute bit set
C. XBitHack ON directive allows CGI scripts to load and run text files as if the executable bit were set.
D. XBitHack ON directive allows CGI scripts to run executable scripts on the file system.
A. The Apache HTTP Server should be configured in a way such that it relies on DNS for parsing of the configuration files.
B. When the server is not configured for DNS parsing of config files, the server is more prone to denial and theft of service attacks.
C. All of these
D. None of these
A. Rationalizing directories spread throughout the system/the storage of documents in other directories
B. Assigning directories an Alias
C. Hiding a directory from the user
D. Allows you to run CGI scripts
A. There are no base set of modules because Apache is dynamic.
B. Compile time
C. Runtime
D. None of these
A. htdocs
B. logs
C. cgi-bin
D. conf
A. Because directives such as SetEnvIf and RewriteCond will not see the variables set with SetEnv
B. Because variables set with SetEnv will override variables in the httpd.conf file
C. Because variables set with SetEnv will be ignored by all DSO's.
D. None of these
A. Ensure that all SSI files are SSL enabled.
B. SSI-enabled files should have a separate extension, such as the conventional .shtml
C. Disable the ability to run scripts and programs from SSI pages. To do this replace Includes with IncludesNOEXEC in the Options directive
D. A server administrator can enable suexec
A. The server is has been instructed to temporarily stop accepting requests
B. The httpd server may have been started with httpd -DClosedForNow.
C. None of these
D. The <ClosedForNow> directive has been set in the .htaccess or in a <VirtualHost> segment.
A. MOD_SSL
B. HTTPS_CIPHER
C. HTTPD
D. HTTPS_CLIENT
A. HTTPS
B. Authentication Protocol
C. SSL
D. Challenge/Handshake Protocol
A. ServerSignature Prod
B. ServerSign Major
C. UseCanonicalName Off
D. ServerTokens Prod
E. ServerSignature Minor
A. It informes the server that .htaccess directives in a given directory will not override directives from httpd.conf.
B. It prevents the use of .htaccess files in all directories apart from those specifically enabled.
C. None of these
D. It forces the server to ignore directives specified by the .htaccess files in the given directory.
A. send-as-is
B. type-map
C. filter-info
D. imap-file
A. It creates a 22 character hash of the URL being requested and stores the information in memory. If the cache memory passes the limit set in the .htaccess config file, the data is then stored onto disk.
B. It creates a 22 character hash of the URL being requested. It then stores the cached data in a file using the hash as a filename. a filename prefix to store the data.
C. It creates a 22 character hash of the URL being requested and which is turned into a filename prefix to store the data.
D. None of these
A. The response has an HTTP status code of 300 or 301.
B. The response contains an "Authorization:" header and an "s-maxage", "must-revalidate" or "public" option in the "Cache-Control:" header.
C. None of these
D. The response includes a "Vary:" header containing the match-all "*"