Exercises

NGINX Reverse Proxy and Load Balancing Quiz

Assess practical knowledge of configuring NGINX as a reverse proxy and load balancer. The quiz covers upstream server groups, balancing algorithms, forwarded headers, URI rewriting, TLS termination, WebSocket proxying, buffering, caching, failure handling, trusted client IPs, graceful reloads, and persistent upstream connections. Questions range from foundational concepts to configuration details and troubleshooting scenarios.

Answer the questions below and check the explanation for each answer.

0/17 answered

  1. 1

    In the illustrated architecture, what is the primary role of NGINX between clients and application servers?

    Question 1
  2. 2

    Which directive explicitly forwards the original HTTP Host value to an upstream application?

  3. 3

    Which header is commonly extended by a reverse proxy to preserve the chain of client and proxy IP addresses?

  4. 4

    Requests in the diagram rotate sequentially across three healthy upstream servers. Which NGINX balancing method is being illustrated?

    Question 4
  5. 5

    Which load-balancing directive is most appropriate when requests vary greatly in duration and should favor the least busy server?

  6. 6

    The diagram shows repeated requests from the same client IP being routed to the same backend. Which NGINX method provides this behavior?

    Question 6
  7. 7

    Which parameters on an upstream server entry control passive failure detection in open-source NGINX?

  8. 8

    What is a primary effect of enabling response buffering with proxy_buffering?

  9. 9

    Which header configuration is required to proxy the HTTP/1.1 protocol upgrade shown for a WebSocket connection?

    Question 9
  10. 10

    Given location /api/ with proxy_pass http://backend/;, where is a request for /api/users forwarded?

    Question 10
  11. 11

    NGINX returns 502 Bad Gateway immediately after the only upstream application process stops. What is the most likely cause?

  12. 12

    Which directive limits how long NGINX waits between successive read operations while receiving a response from an upstream server?

  13. 13

    In the diagram, clients use HTTPS to reach NGINX, while NGINX sends HTTP to a private backend. What function is NGINX performing?

    Question 13
  14. 14

    Which directive caches successful HTTP 200 responses for ten minutes when used in a configured proxy cache?

  15. 15

    What is the safest principle when using X-Forwarded-For or similar headers to determine a visitor's real IP address?

  16. 16

    Which command applies a valid updated NGINX configuration gracefully, allowing existing connections to finish?

  17. 17

    The diagram shows NGINX reusing idle TCP connections to an upstream server. Which configuration supports this behavior for proxied HTTP traffic?

    Question 17

Video Courses

Courses related to this topic

See all video courses

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate