1. Which of the following levels are available in the SSLVerifyClient directive?

Answers:

  1. none
  2. optional
  3. require
  4. optional_no_ca

2. Which are the two types of user authentication options available in the AuthType directive?

Answers:

  1. Basic
  2. MD5
  3. Digest
  4. Encrypt

3. Which protocols are available in the SSLProtocol directive?

Answers:

  1. SSLv2
  2. SSLv3
  3. TLSv1
  4. None of the above

4. Which of the following commands will you use to check the configuration files before starting the Apache server?

Answers:

  1. apachectl -t
  2. apachectl configtest
  3. apachectl -testconfig
  4. None of the above

5. Which of the following commands will you use to apply the changes made in the httpd.conf file without restarting the Apache server (installed through an rpm package) on a RedHat Linux system?

Answers:

  1. service apache apply
  2. service httpd apply
  3. service httpd reload
  4. service apache reload

6. Which of the following directives can we use for redirecting the log information to be received by a program on its standard input?

Answers:

  1. BufferedLog
  2. CustomLog
  3. LogFormat
  4. CookieLog

7. Which of the following directives sets how deeply mod_ssl should verify before deciding that the clients do not have a valid certificate?

Answers:

  1. SSLRequireSSL
  2. SSLVerifyClient
  3. SSLClientDepth
  4. SSLVerifyDepth

8. Which of the following configurations will prevent the proxy server from being used to access the google.com website?

Answers:

  1. <Proxy http://google.com/*> Order deny, allow Deny from all </Proxy>
  2. <Proxy http://google.com/*> Order allow, deny Allow from all </Proxy>
  3. <Proxy http://google.com/*> Order allow, deny Deny from all </Proxy>
  4. None of the above

9. On which of the following platforms can Apache be installed?

Answers:

  1. RedHat Enterprise Linux
  2. Solaris
  3. Windows
  4. Mac OS X
  5. SCO
  6. HPUX
  7. All of the above

10. Which of the following commands will you use on a RedHat Linux system to install the Apache-2.0.4-i386.rpm package?

Answers:

  1. rpm –q apache-2.0.4-i386.rpm
  2. rpm –e apache-2.0.4-i386.rpm
  3. rpm –ivh apache-2.0.4-i386.rpm
  4. None of the above

11. Which of the following commands will you use to run the Apache in the debug mode?

Answers:

  1. httpd -d
  2. httpd -D
  3. httpd -X
  4. httpd debug

12. Which of the following commands will you use to stop an Apache service via command line on a Windows NT based machine?

Answers:

  1. httpd.exe –k stop
  2. httpd.exe –k exit
  3. httpd.exe –k shutdown
  4. httpd.exe –s halt

13. State whether true or false:

The BufferedLogs directive causes the mod_log_config to store several log entries in memory and write them together to the disk, rather than writing them after each request.

Answers:

  1. True
  2. False

14. Which of the following log format strings denotes ‘Remote Host’?

Answers:

  1. %R
  2. %U
  3. %H
  4. %h

15. Which of the following directives will you use to include only all .conf files present in the ‘/usr/local/apache2/conf’ directory where ‘/usr/local/apache2’ is your ServerRoot directory?

Answers:

  1. Include /usr/local/apache2/conf/*.*
  2. Include /usr/local/apache2/conf/*.conf
  3. Include /conf/*.conf
  4. Include conf/*.conf

16. Which of the following directives tells the Apache to parse files for the SSI directives if they have the execute bit set?

Answers:

  1. Options +Includes
  2. XBitHack on
  3. SSI on
  4. ExecuteBit on

17. What is the default value of backlog in the ListenBackLog directive?

Answers:

  1. 255
  2. 256
  3. 511
  4. 512

18. Which of the following is true regarding the DSO list in the config file in Apache v1.3.X?

Answers:

  1. The DSO list must be in correct order
  2. The DSO list can be in any order
  3. The DSO list is not supported in Apache v1.3.X
  4. None of the above

19. Which of the following commands will you use to start the Apache server (installed through an rpm package) on a RedHat Linux system?

Answers:

  1. start apache service
  2. start httpd service
  3. service apache start
  4. service httpd start

20. Which of the following commands will you use to run the Apache as a service on a Windows NT based machine?

Answers:

  1. httpd.exe –n install
  2. httpd.exe –k install
  3. httpd.exe –s install
  4. httpd.exe –i install

21. In a Windows operating system, if the Apache is installed from a precompiled executable, what will be the extension of the module files?

Answers:

  1. .dll
  2. .so
  3. .mod
  4. None of the above

22. State whether true or false:

IPv6 addresses must be surrounded in square brackets in the Listen directive e.g.
Listen [2001:db8::a00:20ff:fea7:ccea]:80

Answers:

  1. True
  2. False

23. Which of the following options are available for the LogLevel directive in the Apache?

Answers:

  1. alert
  2. debug
  3. info
  4. error
  5. All of the above

24. What is the default Apache access for <Directory />?

Answers:

  1. Allow from All
  2. Deny from All
  3. None of the above

25. How will you uninstall the ‘myapache’ service (the name that you gave to the Apache service earlier) on a Windows NT based machine?

Answers:

  1. httpd.exe –u uninstall –k “myapache”
  2. httpd.exe –k uninstall –u “myapache”
  3. httpd.exe –n uninstall –k “myapache”
  4. httpd.exe –k uninstall –n “myapache”

26. Which of the following will you use if you want users on your network (172.16.0.0) to have unrestricted access to a portion of your website but users outside your network to provide a password to access the same portion of your website?

Answers:

  1. Require valid-user Order allow,deny Allow from 172.16 Satisfy All
  2. Require valid-user Order allow,deny Allow from 172.16 Satisfy Any
  3. Require valid-user Order allow,deny Allow from All Satisfy Any
  4. Require valid-user Order allow,deny Deny from All Satisfy All

27. Which of the following modules allows the creation of web space for every user by using the public_html directory created in every user’s home directory?

Answers:

  1. mod_user
  2. mod_public
  3. mod_userdir
  4. mod_vhost

28. In a Windows operating system, which of the following commands will you use to shutdown the Apache gracefully?

Answers:

  1. httpd.exe –g shutdown
  2. httpd.exe –k kill
  3. httpd.exe –k shutdown
  4. None of the above

29. Which of the following commands will you use to remove the Apache -2.0.4-i386.rpm package from a RedHat Linux system?

Answers:

  1. rpm –q apache-2.0.4-i386.rpm
  2. rpm –e apache-2.0.4-i386.rpm
  3. rpm –ivh apache-2.0.4-i386.rpm
  4. None of the above

30. What does the depth of 1 mean in the SSLVerifyDepth directive?

Answers:

  1. Only self signed client certificates are accepted.
  2. The client certificate can be signed by the client himself/herself or has to be signed by a CA who is personally known to the server.
  3. The client certificate has to be signed by a CA who is personally known to the server.
  4. None of the above

31. In which of the following sections can we use the AllowOverride directive?

Answers:

  1. <Location> section
  2. <Directory> section
  3. <Files> section
  4. <DirectoryMatch> section
  5. Any of the above

32. Which of the following directives can we not use in the <Files> and the <FilesMatch> sections?

Answers:

  1. The Options directive
  2. The AllowOverride directive
  3. Neither of the above

33. How will you enable the ServerTokens directive only on one of the Virtual Hosts present on your Apache server?

Answers:

  1. ServerTokens All
  2. ServerTokens Full
  3. ServerTokens Vhost
  4. ServerTokens directive cannot be enabled only on one of the Virtual Hosts.

34. Which utility comes with the Apache for creating and updating user authentication files?

Answers:

  1. htaccess
  2. htpasswd
  3. passwd
  4. None of the above

35. Which of the following directives sets the contact address that the server includes in any error messages it returns to the client?

Answers:

  1. ServerContact
  2. ServerAddress
  3. ServerHost
  4. ServerAdmin

36. Which of the following directives is used to set the maximum length of the queue of pending connections?

Answers:

  1. MaxClients
  2. ListenBackLog
  3. MaxConnections
  4. None of the above

37. Which of the following is the correct method to set a DocumentRoot directive for ‘/usr/web’ folder in the Apache?

Answers:

  1. DocumentRoot /usr/web/
  2. DocumentRoot = /usr/web/
  3. DocumentRoot “/usr/web/”
  4. DocumentRoot /usr/web

38. Which user can use port numbers less than 1024 in unix/linux if they want to use other than the default port number 80?

Answers:

  1. root
  2. apache
  3. normal user
  4. All of the above

39. Which of the following is the default option for the LogLevel directive in the Apache config file?

Answers:

  1. alert
  2. debug
  3. info
  4. error
  5. None of the above

40. What is the default filename in the AccessFileName directive in the Apache config file?

Answers:

  1. .acl
  2. .htaccess
  3. .htpasswd
  4. All of the above

41. Which of the following commands will you use to compile and install the Apache Server on Unix or Unix-like systems?

Answers:

  1. ./configure
  2. make
  3. make install
  4. None of the above

42. Which command is used to check the version of the Apache server installed (using an rpm package) on a RedHat Linux system?

Answers:

  1. apache -v
  2. http -v
  3. httpd -v
  4. None of the above

43. If no port number is specified in the ServerName directive, which port number will the server use?

Answers:

  1. Port 80
  2. Port 8080
  3. It will use the Random port.
  4. It will use a port from the incoming request.

44. Which of the following directives allows the configuration of a trailing footer line under server generated documents like FTP directory listing etc.?

Answers:

  1. ServerSignature
  2. ServerTokens
  3. ServerFooter
  4. ServerDirectoryFooter

45. Which of the following directives sets the authorization realm for a directory for HTTP authentication?

Answers:

  1. AuthType
  2. AuthName
  3. AuthUserFile
  4. AuthRealm

46. State whether true or false:

<Location> sections are processed after <Directory> sections and .htaccess files are read after <Files> sections.

Answers:

  1. True
  2. False

47. Which of the following commands will you use to check whether any Apache rpm package is installed on your RedHat Linux system or not?

Answers:

  1. rpm –q apache
  2. rpm –e apache
  3. rpm –ivh apache
  4. None of the above

48. What is the default https port number?

Answers:

  1. 8080
  2. 8000
  3. 443
  4. 563

49. Which of the following is true regarding the ‘apachectl –k restart’ command?

Answers:

  1. It will kill all the parent and the children processes immediately and then restart them.
  2. It will kill all the children processes immediately but not the parent process and then restart new children processes.
  3. It will wait for the children processes to exit after their current requests and then restart both the parent and the children processes.
  4. It will read the config file again.

878 total views, 4 views today