NGINX Configuration: Knowledge 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

F5N2 Sample Questions

  1. Question 1

    Q1

    A systems engineer is configuring NGINX Open Source as a load balancer for a cluster of three backend application servers. No specific load balancing algorithm has been defined in the upstream block. How will NGINX distribute the incoming requests by default?

    Show answer & explanation

    Correct answer: B

    By default, if no load balancing algorithm is specified in an upstream block, NGINX Open Source uses the Round Robin algorithm. This algorithm distributes incoming requests sequentially across all available servers in the pool, assuming equal weighting.

  2. Question 2

    Q2

    You are configuring passive health checks for an upstream pool in NGINX Open Source. You want NGINX to consider a server 'down' if it fails to respond successfully 5 times within a 30-second window. Which server directive parameters should you use?

    Show answer & explanation

    Correct answer: B

    In NGINX Open Source, passive health checks are configured using the 'max_fails' and 'fail_timeout' parameters on the 'server' directive within an 'upstream' block. 'max_fails=5' sets the number of unsuccessful attempts, and 'fail_timeout=30s' sets both the window in which those failures must occur and how long the server will be considered unavailable.

  3. Question 3

    Q3

    A high-traffic e-commerce site uses NGINX to load balance requests to backend inventory servers. Some inventory queries take significantly longer to process than others, leading to uneven load distribution when using Round Robin. Which algorithm is best suited to resolve this issue by routing new requests to the server with the lowest active workload?

    Show answer & explanation

    Correct answer: D

    The 'least_conn' algorithm instructs NGINX to pass a new request to the server with the least number of active connections, while also taking server weights into consideration. This is ideal for scenarios where requests have varying execution times, preventing one server from being overwhelmed while others sit idle. Note that 'least_time' is an NGINX Plus exclusive feature.

  4. Question 4

    Q4Multiple answers

    An administrator needs to configure NGINX to load balance raw TCP traffic for a legacy database cluster, rather than HTTP traffic. Which TWO directives or blocks are essential for configuring this Layer 4 load balancing? (Select TWO)

    Show answer & explanation

    Correct answers: A, C

    Layer 4 (TCP/UDP) load balancing in NGINX must be configured within the 'stream' context, as opposed to the 'http' context used for Layer 7 traffic.

    Within the 'stream' block's 'server' configuration, the 'proxy_pass' directive is used to forward the raw TCP/UDP connections to an upstream group.

  5. Question 5

    Q5

    True or False: NGINX Open Source supports out-of-the-box active health checks (using the health_check directive) to proactively probe upstream servers without relying on actual client traffic.

    Show answer & explanation

    Correct answer: B

    False. NGINX Open Source only supports passive health checks (monitoring real client requests for errors). Active health checks, which use the 'health_check' directive to proactively send synthetic probes to backend servers, are a commercial feature exclusive to NGINX Plus.

  6. Question 6

    Q6

    A video streaming platform uses NGINX to load balance requests to backend cache servers. To maximize cache hit ratios, requests for the same video file must always be routed to the same backend server, regardless of the client's IP address. Which load balancing configuration achieves this?

    Show answer & explanation

    Correct answer: C

    The 'hash' algorithm allows you to distribute load based on a specific text string or variable. By using 'hash $request_uri', NGINX maps requests for the same file path to the same backend server, improving cache utilization. Adding the 'consistent' parameter ensures minimal remapping if a server is added or removed (Consistent Hashing).

Register free to unlock 6 more sample questions

Create a free account to continue with the rest of the F5N2 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