Skip to content

F5N3 NGINX Configuration: Demonstrate Practice Questions

Prepare for F5N3 with more than an answer.

150 questions in the full set12 sample questionsUpdated Sep 25, 2026
Exam fee
$50 USD
Time limit
30 minutes
Questions on the exam
30
Passing score
245
Level
Administrator
Valid for
2 years from the date you pass the last of the four exams
Domains covered on the exam 5
  1. Demonstrate how to manage connections and bandwidth20%
  2. Demonstrate how to restrict access20%
  3. Demonstrate how to configure logging20%
  4. Demonstrate how to configure certificates20%
  5. Demonstrate how to enable HTTPS and associated security settings20%
  1. 1

    A developer wants to secure a REST API endpoint so that any client can read data (GET, HEAD methods), but only clients from the internal corporate network (10.0.0.0/8) can modify data (POST, PUT, DELETE methods).

    Which configuration block achieves this?

    Show answer details

    Correct answer: A

    The 'limit_except' directive limits access to all HTTP methods EXCEPT the ones listed. In this case, GET and HEAD are unrestricted. For all other methods (POST, PUT, DELETE, etc.), the access rules within the block apply, allowing only the 10.0.0.0/8 network.

  2. 2

    Case Study: Centralized Authentication

    Background:
    A financial enterprise uses NGINX Open Source as an API Gateway in front of several internal microservices. They have a central Identity Provider (IdP) service listening internally at http://auth.internal:8080/verify.

    Current Situation:
    The security team dictates that all requests to /secure-api/ must be authenticated by the IdP before NGINX forwards the request to the backend microservice. The IdP returns a 200 OK status if the user token (passed in headers) is valid, and a 401 Unauthorized or 403 Forbidden if invalid.

    Requirement:
    You must configure NGINX to delegate authentication for /secure-api/ to the IdP without redirecting the client. If the IdP returns 200, NGINX should proxy the request to the backend. If it returns 401/403, NGINX should deny access and return that error to the client.

    Which configuration best satisfies these requirements?

    Show answer details

    Correct answer: A

    This is the optimal implementation of subrequest authentication. The 'auth_request' directive triggers an internal subrequest to '/auth-verify'. The internal location block proxies this to the IdP. Crucially, 'proxy_pass_request_body off;' and clearing 'Content-Length' ensures only headers are sent to the auth server, saving bandwidth while validating the token.

    sequenceDiagram participant Client participant NGINX participant IdP as Auth Server participant Backend Client->>NGINX: GET /secure-api/ (with Token) NGINX->>IdP: Subrequest GET /verify (Headers only) alt Token Valid IdP-->>NGINX: 200 OK NGINX->>Backend: Forward original GET /secure-api/ Backend-->>NGINX: Response Data NGINX-->>Client: 200 OK + Response Data else Token Invalid IdP-->>NGINX: 401 Unauthorized NGINX-->>Client: 401 Unauthorized end
  3. 3

    When implementing HTTP Basic Authentication in NGINX using the auth_basic directive, which tool is conventionally used to generate the required password file referenced by auth_basic_user_file?

    Show answer details

    Correct answer: B

    The 'htpasswd' utility (historically part of Apache HTTP Server tools, but widely used with NGINX) is the standard tool used to create and update the flat-files storing usernames and hashed passwords for basic authentication.

  4. 4

    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 details

    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.

  5. 5

    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 details

    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.

  6. 6

    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 details

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

Create an account to continue.