MCQs > IT & Programming > Apache MCQs > Basic Apache MCQs

Basic Apache MCQ

1. Which of the following situations would prevent an HTTP response from being cached by the httpd server?

Answer

Correct Answer: The response includes a "Vary:" header containing the match-all "*"

Note: This Question is unanswered, help us to find answer for this one

2. Which of the following describes how the mod_cache_disk module ensures that multiple URLS do not collide with one another?

Answer

Correct Answer: It creates a 22 character hash of the URL being requested and which is turned into a filename prefix to store the data.

Note: This Question is unanswered, help us to find answer for this one

3. Which of the following is not a built-in handler in the standard distribution?

Answer

Correct Answer: filter-info

Note: This Question is unanswered, help us to find answer for this one

4. <Directory />AllowOverride None</Directory> has what effect on the server

Answer

Correct Answer: It prevents the use of .htaccess files in all directories apart from those specifically enabled.

Note: This Question is unanswered, help us to find answer for this one

5. Which apache directive contains the less server response header details?

Answer

Correct Answer: ServerTokens Prod

Note: This Question is unanswered, help us to find answer for this one

6. What is an environment variable that is a part of Apache SSL?

Answer

Correct Answer: HTTPS_CIPHER

Note: This Question is unanswered, help us to find answer for this one

7. Given the following directive "<IfDefine ClosedForNow> ", which of the following is true?

Answer

Correct Answer: The httpd server may have been started with httpd -DClosedForNow.

Note: This Question is unanswered, help us to find answer for this one

8. Which of the following is not a sufficient solution to limit the security risks of Server Side Includes (SSI)?

Answer

Correct Answer: Ensure that all SSI files are SSL enabled.

Note: This Question is unanswered, help us to find answer for this one

9. Why is it significant that the SetEnv directive runs late during request processing?

Answer

Correct Answer: Because directives such as SetEnvIf and RewriteCond will not see the variables set with SetEnv

Note: This Question is unanswered, help us to find answer for this one

10. Which of the following is not an essential subdirectory of a web site?

Answer

Correct Answer: cgi-bin

Note: This Question is unanswered, help us to find answer for this one

11. Httpd is a modular server. By default, a base set of modules is included in the server at:

Answer

Correct Answer: Compile time

Note: This Question is unanswered, help us to find answer for this one

12. The directive Alias can be used for:

Answer

Correct Answer: Rationalizing directories spread throughout the system/the storage of documents in other directories

Note: This Question is unanswered, help us to find answer for this one

13. Which of the following is true regarding Apache server and te <VirtualHost> directive?

Answer

Correct Answer: None of these

Note: This Question is unanswered, help us to find answer for this one

14. What is the result of using the directive: XBitHack ON ?

Answer

Correct Answer: XBitHack tells Apache to parse files for SSI directives if they have the execute bit set

Note: This Question is unanswered, help us to find answer for this one

15. What is the drawback for using the <IfModule> directive?

Answer

Correct Answer: it can suppress useful error messages about missing modules.

Note: This Question is unanswered, help us to find answer for this one

16. Which of the following is not a result of using .htaccess files?

Answer

Correct Answer: 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''.

Note: This Question is unanswered, help us to find answer for this one

17. What is the result of Options +Includes?

Answer

Correct Answer: It tells Apache that you want to permit files to be parsed for SSI directives

Note: This Question is unanswered, help us to find answer for this one

18. What security risk arises when users have write access to directories where Apache writes its logs?

Answer

Correct Answer: Someone can gain access to the uid that the server is started as, which is normally root.

Note: This Question is unanswered, help us to find answer for this one

19. The UserDir directive:

Answer

Correct Answer: Specifies a directory underneath the user's home directory where web files are located

Note: This Question is unanswered, help us to find answer for this one

20. Which of the following is an effect of using DSO's?

Answer

Correct Answer: It increases the server startup time.

Note: This Question is unanswered, help us to find answer for this one

21. You can tell Apache to parse any file with a particular file extension, such as .shtml, with the following directives: AddType text/html .shtml AddOutputFilter INCLUDES .shtml. What is the disadvantage to this approach?

Answer

Correct Answer: 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

Note: This Question is unanswered, help us to find answer for this one

22. The directive RewriteLog does what?

Answer

Correct Answer: Sends logging to the specified Filename

Note: This Question is unanswered, help us to find answer for this one

23. Which of the following is not a freeware database manager?

Answer

Correct Answer: DJANGO

Note: This Question is unanswered, help us to find answer for this one

24. Which of the follow directives cannot be overridden in a .htaccess file?

Answer

Correct Answer: LogFormat

Note: This Question is unanswered, help us to find answer for this one

25. Which of the following is a module compiled separately from the Apache httpd binary and can be loaded on-demand?

Answer

Correct Answer: DSO

Note: This Question is unanswered, help us to find answer for this one

26. Which of the following are characteristics of IP-based Virtual Hosting?

Answer

Correct Answer: Any of these

Note: This Question is unanswered, help us to find answer for this one

27. What character may be used as the last character on a line in a configuration file to indicate that the directive continues onto the next line?

Answer

Correct Answer: "\"

Note: This Question is unanswered, help us to find answer for this one

28. What directive must be used to set the order of the Allow and Deny commands?

Answer

Correct Answer: Order

Note: This Question is unanswered, help us to find answer for this one

29. Which directive provides mapping from a URI to a directory - usually a directory outside of your DocumentRoot?

Answer

Correct Answer: Alias

Note: This Question is unanswered, help us to find answer for this one

30. Why can't Apache logs be rotated by moving or deleting existing logs while the server is running?

Answer

Correct Answer: 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.

Note: This Question is unanswered, help us to find answer for this one

31. What does the DirectoryIndex command do?

Answer

Correct Answer: Specifies a list of resources to look for when the client requests an index of the directory name

Note: This Question is unanswered, help us to find answer for this one

32. Of the following, which is the most effective tool to mitigate Denial of Service attacks?

Answer

Correct Answer: a firewall

Note: This Question is unanswered, help us to find answer for this one

33. Which of the following must be true for the "Require local" directive to allows access to the server?

Answer

Correct Answer: The client address matches 127.0.0.0/8.

Note: This Question is unanswered, help us to find answer for this one

34. A beta test site should:

Answer

Correct Answer: Be separate and identical to the real site

Note: This Question is unanswered, help us to find answer for this one

35. Which should always be used as the path separator in Apache httpd configuration files, even for Windows?

Answer

Correct Answer: "/"

Note: This Question is unanswered, help us to find answer for this one

36. The function of AllowOverride directive is

Answer

Correct Answer: Tells Apache to process or not the .htaccess file and what kind of directives are allowed in it

Note: This Question is unanswered, help us to find answer for this one

37. If you are in a hosting situation where you only have .htaccess files to work with, you may need use which of the following modules?

Answer

Correct Answer: mod_rewrite

Note: This Question is unanswered, help us to find answer for this one

38. What can be done to make a server with AuthType Basic more secure?

Answer

Correct Answer: Include the mod_ssl module

Note: This Question is unanswered, help us to find answer for this one

39. What does the directive <VirtualHost> do?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

40. mod_rewrite provides a way to modify incoming URL requests, dynamically, based on which of the following criteria?

Answer

Correct Answer: regular expression rules

Note: This Question is unanswered, help us to find answer for this one

41. What does the Trace method do?

Answer

Correct Answer: An HTTP request method that returns a diagnostic trace of actions it takes

Note: This Question is unanswered, help us to find answer for this one

42. Who is the default user that has permission to the ServerRoot Directories?

Answer

Correct Answer: The root user

Note: This Question is unanswered, help us to find answer for this one

43. True or False? The files and directories underneath the DocumentRoot make up the basic document tree which will be visible from the web.

Answer

Correct Answer: True

Note: This Question is unanswered, help us to find answer for this one

44. Which of the following is true about the Apache HTTP Server?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

45. Why is it important to set up a proxy?

Answer

Correct Answer: Better performance/improved security

Note: This Question is unanswered, help us to find answer for this one

46. The Apache binary under Unix is called:

Answer

Correct Answer: httpd

Note: This Question is unanswered, help us to find answer for this one

47. What character(s) in a configuration file is used to indicate a comment?

Answer

Correct Answer: "#"

Note: This Question is unanswered, help us to find answer for this one

48. The AllowOverride directive works only in which of the following sections?

Answer

Correct Answer: <Directory>

Note: This Question is unanswered, help us to find answer for this one

49. The Apache HTTP Server ("httpd") is a project of which of the following groups:

Answer

Correct Answer: The Apache Software Foundation.

Note: This Question is unanswered, help us to find answer for this one

50. What is a good reason to log user activity?

Answer

Correct Answer: All of these

Note: This Question is unanswered, help us to find answer for this one

51. True or false: Apache can only be run on Windows.

Answer

Correct Answer: False

Note: This Question is unanswered, help us to find answer for this one

52. What does TCP/IP stand for?

Answer

Correct Answer: Transmission Control Protocol/Internet Protocol

Note: This Question is unanswered, help us to find answer for this one

53. The DocumentRoot directive is set in which of the following configuration files?

Answer

Correct Answer: httpd.conf

Note: This Question is unanswered, help us to find answer for this one

54. With SSI, it is possible to configure output format of which of the following?

Answer

Correct Answer: All of the above

Note: This Question is unanswered, help us to find answer for this one

55. Which of the following is considered the main Apache configuration file?

Answer

Correct Answer: httpd.conf

Note: This Question is unanswered, help us to find answer for this one

56. What is MIME?

Answer

Correct Answer: A web standard used to to determine the type of a file from its extension

Note: This Question is unanswered, help us to find answer for this one

57. What purpose does the mod_status module serve?

Answer

Correct Answer: It allows the server to display a web page containing statistics about the web server's current state, including worker processes and active connections.

Note: This Question is unanswered, help us to find answer for this one

58. The authorization providers implemented by mod_authz_host serve what purpose?

Answer

Correct Answer: They control access to particular parts of the server based on the client hostname or IP address.

Note: This Question is unanswered, help us to find answer for this one

59. Apache is?

Answer

Correct Answer: Web Server Software

Note: This Question is unanswered, help us to find answer for this one