wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

4) 208.1 Basic Apache Configuration

Total questions: 61

Worksheet time: 41mins

Name
Class
Date
1.

"The behavior of the Apache web-service (httpd/apache2) is setting by using various options called _______"

a)

modules

b)

directives

c)

flags

d)

sessions

e)

VirtualHosts

2.

Which two configuration files are used to set de Apache directives?

a)

/etc/httpd/conf/httpd.conf

b)

/etc/httpd.conf

c)

/etc/apache2.conf

d)

/etc/apache2/apache2.conf

e)

/etc/apache2/httpd.conf

3.

Which two statements on the configuration file reference to other small configuration file?

a)

Include

b)

IncludeFile

c)

IncludeOptional

d)

ConfigInclude

e)

IncludeConfig

4.

"It's a piece of software to add additional functionalities to the Apache service. Eg: mod_rewrite module to allow Apache to rewrite URLs"

a)

modules

b)

directives

c)

flags

d)

sessions

e)

VirtualHosts

5.

"This means that you can custom the Apache service with the modules you want"

What's the name of the feature being referred to before?

(a)  

6.

What does DSO stand for?

(a)  

7.

"It's a type of module that is compiled as shared libraries that can be loaded to the server in runtime, allowing Apache to add or remove modules without having to restart the entire service":

a)

Dynamic Shared Object (DSO)

b)

Dynamic Shared Modules (DSM)

c)

Shared-modules

d)

Dynamic Shared Libraries

8.

Which are two ways to achieve the run-time loading of modules (DSO)?

a)

Automatically by the system program ld.so

b)

Automatically by any system shared library

c)

Automatically with the systems calls dlopen() and dlsym()

d)

Manually with the systems calls dlopen() and dlsym()

e)

Manually by the system program ld.so

9.

Which command installs the Apache HTTP Server development headers and libraries necessary for building modules with SSL/TLS support on Debian?

(a)  

10.

Which command installs the Apache HTTP Server development headers and libraries necessary for building modules with SSL/TLS support on Red Hat-based systems?

(a)  

11.

Type the full command to load the apache_ssl_module from the "libssl.so" library located in the modules/ directory of the Apache installation.

(a)  

12.

In which directory inside of apache2/httpd are the Apache modules installed?

a)

modules_enabled

b)

modules_installed

c)

modules_available

d)

modules_apache

e)

loadable_modules

13.

Type the command to list the compiled modules in Red Hat:

(a)  

14.

Type the command to list the compiled modules in Debian:

(a)  

15.

"It's a tool that simplifies the building and installation of Apache modules as DSO":

a)

APache Mod-bulding (APMB)

b)

APache eXtension Support Tool (APXS)

c)

APache Module-Tool (APMT)

d)

APache eXtension-Tool (APXT)

16.

"This tool can be used to generate a large number of requests to a web server at regular intervals in order to measure its response time.

It has a web-based grapher that will generate charts to display the data in several formats".

a)

APXS

b)

DSO

c)

Cricket

d)

Grafana

e)

Apache grapher tool

17.

Which directives can you use in the Apache configuration file to limit the number of workers processes the Apache server will spawn to handle incoming requests? (Choose two correct answers)

a)

Min*

b)

Boundries

c)

Max*

d)

Limit

e)

Size

18.

Type the full path of the file that contains a generic overview of page requests for your Apache web server in Debian based-systems

(a)  

19.

Type the full path of the file that will store diagnostic information and records any errors for the Apache service in Debian-based systems?

(a)  

20.

Type the name of the directive that sets the error_log file in the Apache configuration file:

(a)  

21.

Which are the two methods used by Apache to control access to objects?

a)

DAC

b)

ACL

c)

MAC

d)

Blacklists

e)

CAD

22.

Analyze the attached image.

According to the image, what's being shown?

a)

A typical config for the access log file.

b)

A normal output of the access log file

c)

A format that always must be used for access log file

d)

A known error with access log file displayed by the Apache service

23.

What do DAC and MAC stand for in Apache?

a)

DAC (Dynamic Access Control)

b)

MAC (Masked Access Control)

c)

DAC (Discretionary Access Control)

d)

MAC (Mandatory Access Control)

e)

MAC (Media Access Control)

24.

"It's a security mechanism that allows the resource owner or administrator to control the access rights of users or processes"

a)

Direct Access Control (DAC)

b)

Mandatory Access Control (MAC)

c)

Discretionary Access Control (DAC)

d)

Module Access Control (MAC)

e)

Media Access Control (MAC)

25.

"It's a security mechanism that ensure that all resources are accessed according to a set of predefined rules and policies"

a)

Direct Access Control (DAC)

b)

Mandatory Access Control (MAC)

c)

Discretionary Access Control (DAC)

d)

Module Access Control (MAC)

e)

Media Access Control (MAC)

26.

"It's the process in which a user should validate their identity".

a)

Autorization

b)

Authentication

c)

Identification

d)

Login

27.

"It's the process of deciding who is allowed to do what".

a)

Authorization

b)

Authentication

c)

Permissions

d)

Login

e)

Policies

28.

Which naming convention do the Apache modules that serve the purpose of authentication follow?

a)

mod_auth_authz*

b)

mod_auth_*

c)

mod_authn_*

d)

mod_authn*

29.

Which naming convention do the Apache modules that serve the purpose of authorization follow?

a)

mod_auth_authz*

b)

mod_authz_*

c)

mod_authzn_*

d)

mod_authz*

30.

Choose all the modules that are included as part of the standard Apache distribution:

a)

mod_auth_file

b)

mod_log

c)

mod_access

d)

mod_login

e)

mod_error

31.

Choose all the modules that are included as part of the standard Apache distribution:

a)

mod_auth_anon

b)

mod_log

c)

mod_auth_digest

d)

mod_login

e)

mod_error

32.

"It uses ordinary text files for the authentication database. It's maintained by the htpasswd command".

Which module is included as part of the Apache distribution refer to the above statement.

a)

mod_auth_file

b)

mod_log

c)

mod_access

d)

mod_login

e)

mod_error

33.

"It applies what Apache defines as mandatory".

Which module is included as part of the Apache distribution refer to the above statement.

a)

mod_auth_file

b)

mod_log

c)

mod_access

d)

mod_login

e)

mod_error

34.

"This module mimics the behavior of anonymous FTP".

Which module is included as part of the Apache distribution refer to the above statement.

a)

mod_auth_anon

b)

mod_log

c)

mod_digest

d)

mod_login

e)

mod_error

35.

"This module provides user authentication using a challenge/response mechanism based on the MD5 cipher method".

Which module is included as part of the Apache distribution refer to the above statement.

a)

mod_auth_anon

b)

mod_log

c)

mod_auth_digest

d)

mod_login

e)

mod_error

36.

"It's a command line utility for creating and managing authentication files for web servers".

a)

APXS

b)

apache2ctl

c)

DAC

d)

htpasswd

e)

apache-passwd

37.

Which algorithm method does htpasswd use?

a)

AES

b)

DES

c)

CRYPT

d)

3DES

e)

RSA

38.

Type the full command to create a password for the user bob in the path /home/bob/

The password file should be called "passwdfile". Use htpasswd and the bcrypt algorithm method.

(a)  

39.

Let's suppose you've previously created password file named "passwdfile" on the path /home/bob/ for Bob user.

Now, you want to add an extra password to that same file but for the user alice.

How can you update this file with the password for alice? (Remember to use bcrypt algorithm)

(a)  

40.

Where is recommended to place the htpasswd file?

a)

Outside the document root (/var/www/)

b)

Inside the document root (/var/www/html/)

c)

Outside the document root (/var/www/html/)

d)

Inside the config file (/etc/apache2/)

41.

"To use the generated password file, Apache has to be aware of the password file on the Apache configuration file."

Which directives you should add to the Apache configuration file to achieve this goal?

a)

AuthType_Basic

b)

Require valid-user

c)

Auth_method_Basic

d)

AuthUserFile /path/to/file

e)

htpasswd /path/to/file

42.

"Apache security modules are configured by configuring directives."

From where are these directives read? (Choose two correct answers).

a)

From centralized files (under /etc/)

b)

From decentralized .htaccess files

c)

From /etc/apache2/ only

d)

From decentralized .htpasswd files

e)

From decentralized .htaccess and .htpasswd files

43.

On the Apache configuration file, which two directives are read by htaccess to know the location of their databases?

a)

AuthUser

b)

AuthzUser

c)

AuthUserFile

d)

AuthDBMGroupFile

e)

AuthDBFile

44.

When using centralized configuration files to configure Apache modules, which two directives are placed on the Apache configuration file?

a)

AuthType

b)

AuthzUserFile

c)

Require valid-user

d)

AuthDBMGroupFIle

45.

Apache can use group files to authorize access to a group of users. They are called _________

a)

Apache group files

b)

AuthGroupFile

c)

.htgroup

d)

.htgroupaccess

e)

UserGroup

46.

To allow the use of group files you should include some directives in the Apache config file. Choose three directives you could use:

a)

AuthUserFile

b)

AuthDBMGroupFile

c)

AuthDBMGroup

d)

AuthGroupFile

e)

Require Group

47.

This is an Apache directive used for group files that specifies the location of the file containing usernames and encrypted passwords.

a)

AuthUserFile

b)

AuthDBMGroupFile

c)

AuthDBMGroup

d)

AuthGroupFile

e)

Require Group Management

48.

This is an Apache directive used for group files that specifies the location group file that contains groups and their respective users.

a)

AuthUserFile

b)

AuthDBMGroupFile

c)

AuthDBMGroup

d)

AuthGroupFile

e)

Require Group Management

49.

This is an Apache directive used for group files that specifies the groups that are required to access the protected directory.

a)

AuthUserFile

b)

AuthDBMGroupFile

c)

AuthDBMGroup

d)

AuthGroupFile

e)

Require Group

50.

"It's another module for Apache that boots the performance and scalability of Perl-based applications by reducing spawning of child process and hence memory footprint".

a)

perl_mod

b)

apache_perl

c)

mod_perl

d)

perl_apache

51.

This is an Apache server option that indicates the maximum number of requests to allow in a persistent connection. 0 is used for unlimited amount.

a)

MaxKeepAliveRequests

b)

StartServers

c)

MaxSpareServers

d)

MaxClients

52.

This is an Apache server option that indicates the number of child server processes to start initially.

a)

MaxKeepAliveRequests

b)

StartServers

c)

MaxSpareServers

d)

MaxClients

53.

These are Apache server options that adjust the number of processes based on demand. If the number of servers fall below the minimum, a new server is created, but if it exceeds the maximum, extra servers are terminated.

a)

MaxKeepAliveRequests

b)

StartServers

c)

MaxSpareServers

d)

MaxClients

e)

MinSpareServers

54.

This is an Apache server option that limits the number of clients that can simultaneously connect. Additional connection will be queued.

a)

MaxKeepAliveRequests

b)

StartServers

c)

MaxSpareServers

d)

MaxClients

55.

"It's a capability to host more than one domain on one physical host":

a)

Multi-domain

b)

Apache Multi-domain

c)

Apache2

d)

Virtual Hosting

e)

Apache Multi-host

56.

Which are the two ways to implement Apache Virtual Hosting?

a)

Name-based virtual hosting

b)

Multi-domain virtual hosting

c)

Multi-host virtual hosting

d)

IP-based virtual hosting

e)

IP-based multi-hosting

57.

It's when for example you have a web server with the IP address and you want to host two websites (example.org and example.com). If you want to use the same IP address for several domains, which Apache Virtual Hosting should you use?

a)

Name-based virtual hosting

b)

Multi-domain virtual hosting

c)

Multi-host virtual hosting

d)

IP-based virtual hosting

e)

IP-based multi-hosting

58.

"The server must have a different IP address to each Virtual Host. It is, each domain is running under different IP addresses".

Which Apache Virtual Hosting method the above statement refer to?

a)

Name-based virtual hosting

b)

Multi-domain virtual hosting

c)

Multi-host virtual hosting

d)

IP-based virtual hosting

e)

IP-based multi-hosting

59.

Which are the two ways of running the Apache HTTP server to support multiple hosts?

a)

Use Named-based virtual hosting

b)

Use separate daemon for each hostname

c)

Use IP-based Virtual Hosting

d)

Use a single daemon that supports all the Virtual Hosts

60.

Choose two scenarios where is required to use multiple daemons when running Apache HTTP server with multiple hosts:

a)

When there are security issues and want to separate the web-pages

b)

When sharing the Apache config between Virtual Hosts is acceptable

c)

When the server serves a large number of requests, and performance loss in separate daemon.

d)

You can afford the memory and file descriptor requirements of listening every IP on the machine.

61.

Choose two scenarios where is required to use a single daemon when running Apache HTTP server with multiple hosts:

a)

When there are security issues and want to separate the web-pages

b)

When sharing the Apache config between Virtual Hosts is acceptable

c)

When the server serves a large number of requests, and performance loss in separate daemon.

d)

You can afford the memory and file descriptor requirements of listening every IP on the machine.