Skip to content

F5N4 NGINX Troubleshoot Practice Questions

Prepare for F5N4 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 3
  1. Demonstrate how to stop, start, and reload NGINX binary33%
  2. Troubleshoot basic use cases34%
  3. Troubleshoot TLS security settings33%
  1. 1

    During an nginx -s reload, the master process spawns new worker processes and instructs the old worker processes to shut down gracefully. Under normal circumstances, how long will the old worker processes remain active before terminating?

    Show answer details

    Correct answer: C

    During a graceful shutdown, old worker processes stop accepting new connections but remain alive until all of their currently active in-flight connections are completed and closed. If clients keep connections open (e.g., long-lived WebSockets or large downloads), the old workers will persist until those connections naturally finish, unless a directive like worker_shutdown_timeout is configured to force-close them after a timer.

    stateDiagram-v2 [*] --> MasterReceivesHUP MasterReceivesHUP --> SpawnNewWorkers SpawnNewWorkers --> SignalOldWorkersQUIT SignalOldWorkersQUIT --> OldWorkersStopAccepting OldWorkersStopAccepting --> DrainConnections DrainConnections --> OldWorkersExit: Connections = 0 OldWorkersExit --> [*]
  2. 2

    An administrator runs nginx -t and receives the following output:
    nginx: [emerg] unknown directive "proy_pass" in /etc/nginx/conf.d/app.conf:14
    nginx: configuration file /etc/nginx/nginx.conf test failed

    What is the precise issue preventing NGINX from starting or reloading?

    Show answer details

    Correct answer: A

    The output of nginx -t explicitly points out the exact file (/etc/nginx/conf.d/app.conf), the line number (14), and the nature of the error (unknown directive "proy_pass"). The administrator misspelled proxy_pass. This output allows for immediate and precise troubleshooting.

  3. 3

    You are setting up an NGINX instance for a specific application and need it to use a configuration file located at /opt/app/nginx.conf instead of the default /etc/nginx/nginx.conf. Which command should you use to start NGINX with this specific file?

    Show answer details

    Correct answer: B

    The -c flag is used to specify an alternative configuration file for NGINX to use at startup. If -c is not provided, NGINX defaults to the path specified during compilation (typically /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf).

  4. 4

    An administrator needs to perform maintenance on an NGINX server and must shut down the service. However, they want to ensure that all currently active connections are fully processed before the worker processes terminate. Which command should the administrator use?

    Show answer details

    Correct answer: D

    The 'nginx -s quit' command sends a QUIT signal to the NGINX master process, which initiates a graceful shutdown. The master process instructs the worker processes to stop accepting new connections, finish servicing current requests, and then exit. The 'nginx -s stop' command sends a TERM signal, which causes a fast (immediate) shutdown, dropping active connections. 'nginx -s reload' is for configuration changes, not shutting down.

  5. 5

    A DevOps engineer has updated the nginx.conf file to add a new upstream server block. They need to apply the changes without dropping any of the thousands of active client connections currently being handled by the server. What is the most appropriate action?

    Show answer details

    Correct answer: D

    A reload ('nginx -s reload' or sending a HUP signal) is the correct procedure for applying configuration changes without downtime. The master process verifies the syntax, applies the new config, starts new worker processes, and sends a message to the old worker processes requesting them to shut down gracefully (draining existing connections). A full restart will drop active connections.

  6. 6

    A systems administrator is troubleshooting a complex NGINX configuration that includes dozens of separate files via the include directive. The administrator wants to dump the entire parsed configuration to standard output to verify exactly how NGINX is interpreting the combined files. Which command achieves this?

    Show answer details

    Correct answer: A

    The 'nginx -T' (capital T) command tests the configuration file and dumps the entire parsed configuration to standard output. This is extremely useful when troubleshooting complex setups with multiple 'include' directives, as it shows exactly what NGINX sees after merging all files. 'nginx -t' only tests the syntax and reports success or failure without dumping the config.

Create an account to continue.