Search test library by skills or roles
⌘ K

Adaface Sample Nginx Questions

Here are some sample Nginx questions from our premium questions library (10273 non-googleable questions).

Skills

🧐 Question

Medium

Configuration for SSL
SSL Configuration
Performance Tuning
Server Blocks
Solve
An organization wants to configure an Nginx server to serve both HTTP and HTTPS traffic efficiently. The requirements are as follows: redirect all HTTP traffic to HTTPS, utilize the SSL protocol for secure communication, and ensure optimal performance by enabling gzip compression for text files. Given the configuration snippets below, select the correct combination that meets these requirements.
            
            1.
 image
2.
 image
3.
 image
4.
 image
5.
 image

Easy

Overlapping Location Blocks
Server Configuration
Request Handling
Solve
An Nginx server is configured with multiple `location` blocks that overlap in their path specifications, leading to potential ambiguity in request handling. Given the following configuration snippets, identify which `location` block will handle a request to the URL `/images/thumbnails/large/photo.jpg`:
            
            1. `location = /images/thumbnails/large/photo.jpg { ... }`
            2. `location ^~ /images/thumbnails/ { ... }`
            3. `location ~* \.(jpg|png)$ { ... }`
            4. `location /images/ { ... }`
A: Location block 1 will handle the request because it exactly matches the request URI.
            B: Location block 2 will handle the request because it matches the prefix and disables regex checking.
            C: Location block 3 will handle the request because it matches the case-insensitive regex for file extensions.
            D: Location block 4 will handle the request because it has the longest matching prefix.
            E: All of the above location blocks will handle the request in the order they are defined.

Medium

Securing Nginx with Rate Limiting
Security
Rate Limiting
Solve
You are tasked with enhancing the security of an Nginx server by implementing rate limiting to protect against brute-force attacks. The requirement is to limit requests to the login page (/login) to no more than 10 requests per minute for each IP address, while ensuring legitimate users are not adversely affected by false positives. Which configuration snippet correctly sets up rate limiting for this purpose?
A: Configuring the limit_rate directive to 10 requests per minute directly inside the /login location block.
            B: Setting the limit_conn directive to 10 inside the /login location block to restrict concurrent connections.
            C: Using the limit_req directive inside the http block without defining a limit_req_zone.
            D: Applying a deny all directive inside the /login location block for requests exceeding 10 per minute.
            E: Defining a limit_req_zone directive outside the server block with a rate of 10r/m and applying it to the /login location using the limit_req directive.
🧐 Question🔧 Skill

Medium

Configuration for SSL
SSL Configuration
Performance Tuning
Server Blocks

2 mins

Nginx
Solve

Easy

Overlapping Location Blocks
Server Configuration
Request Handling

2 mins

Nginx
Solve

Medium

Securing Nginx with Rate Limiting
Security
Rate Limiting

2 mins

Nginx
Solve
🧐 Question🔧 Skill💪 Difficulty⌛ Time
Configuration for SSL
SSL Configuration
Performance Tuning
Server Blocks
Nginx
Medium2 mins
Solve
Overlapping Location Blocks
Server Configuration
Request Handling
Nginx
Easy2 mins
Solve
Securing Nginx with Rate Limiting
Security
Rate Limiting
Nginx
Medium2 mins
Solve

Trusted by recruitment teams in enterprises globally

Amazon Morgan Stanley Vodafone United Nations HCL PayPal Bosch WeWork Optimum Solutions Deloitte Microsoft NCS Doubtnut Sokrati J&T Express Capegemini

We evaluated several of their competitors and found Adaface to be the most compelling. Great library of questions that are designed to test for fit rather than memorization of algorithms.


Swayam Narain, CTO, Affable

hashtag image heart icon Swayam
customers across world
Join 1500+ companies in 80+ countries.
Try the most candidate friendly skills assessment tool today.
g2 badges
Ready to streamline your recruitment efforts with Adaface?
Ready to streamline your recruitment efforts with Adaface?
logo
40 min tests.
No trick questions.
Accurate shortlisting.
ada
Ada
● Online
Previous
Score: NA
Next
✖️