NGINX Configuration: Demonstrate Free Sample Questions

Create a free account to browse all 12 sample questions. The full practice test includes 150 questions. Use the simulator for timed and flashcard mode.

Try Simulator

F5N3 Sample Questions

  1. Question 1

    Q1

    A systems engineer is configuring NGINX to protect a backend API from being overwhelmed by sudden traffic spikes. The requirement is to limit requests to 10 per second per IP address, but allow bursts of up to 20 requests to be processed immediately without adding artificial delay. Which configuration block achieves this?

    Show answer & explanation

    Correct answer: A

    The correct configuration uses 'limit_req_zone' to define the rate (10r/s) and 'limit_req' with both 'burst=20' to allow queuing up to 20 requests, and 'nodelay' to ensure those burst requests are processed immediately rather than being delayed to match the 10r/s rate.

  2. Question 2

    Q2

    A video streaming platform wants to allow users to download the first 50 Megabytes of a video file at full speed, but then restrict the download speed to 500 Kilobytes per second for the remainder of the file to save bandwidth. Which combination of NGINX directives should be used?

    Show answer & explanation

    Correct answer: C

    The 'limit_rate_after' directive specifies the amount of data (50m) that is transferred at maximum speed before the bandwidth throttling specified by 'limit_rate' (500k) takes effect.

  3. Question 3

    Q3Multiple answers

    To optimize performance, an administrator wants to enable persistent connections (keep-alives) between NGINX and a pool of upstream HTTP/1.1 application servers. Which THREE configurations are required to achieve this? (Select THREE)

    Show answer & explanation

    Correct answers: A, B, E

    By default, NGINX uses HTTP/1.0 for upstream connections, which does not support keep-alives natively in the same way. You must explicitly set 'proxy_http_version 1.1;'.

    By default, NGINX sets the 'Connection: close' header when communicating with upstreams. Clearing this header allows the HTTP/1.1 keep-alive mechanism to function properly.

    To enable upstream keep-alives, you must specify the 'keepalive' directive in the upstream block (e.g., keepalive 32;) to set the maximum number of idle keepalive connections to upstream servers that are preserved in the cache of each worker process.

  4. Question 4

    Q4

    Company Alpha is running a file hosting service. They are experiencing issues where malicious users open hundreds of slow connections to tie up server resources, but each connection only downloads data at a very slow rate. The architect wants to limit the number of concurrent connections per IP address to 5.

    Which directive correctly establishes the shared memory zone required for this connection limiting?

    Show answer & explanation

    Correct answer: A

    The 'limit_conn_zone' directive is required to define the state storage for connection limiting. '$binary_remote_addr' is used as the key (which is more memory-efficient than '$remote_addr'), and 'zone=addr:10m' names the zone 'addr' and allocates 10 megabytes of shared memory.

  5. Question 5

    Q5

    True or False: The NGINX keepalive_timeout directive sets the maximum time a keep-alive client connection will stay open on the server side, and its default value is 0 (which disables keep-alives).

    Show answer & explanation

    Correct answer: B

    False. While a value of 0 does disable keep-alive client connections, the default value in NGINX OSS is 75 seconds, not 0. Keep-alives are enabled by default.

  6. Question 6

    Q6

    An administrator needs to enforce a dynamic bandwidth limit. Clients authenticating as 'premium' users should have no bandwidth limit (0), while 'standard' users should be limited to 100k per second. The user type is extracted to a variable named $user_bandwidth_limit.

    Which directive correctly applies this dynamic limit in a location block?

    Show answer & explanation

    Correct answer: D

    The 'limit_rate' directive supports the use of variables (since version 1.17.0). By passing the variable '$user_bandwidth_limit' (which would evaluate to '0' for premium and '100k' for standard), NGINX dynamically throttles the bandwidth per request.

Register free to unlock 6 more sample questions

Create a free account to continue with the rest of the F5N3 sample set.

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 150 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon