0
0
Nginxdevops~20 mins

Nginx Plus monitoring - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Nginx Plus Monitoring Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
Nginx Plus status endpoint output
What is the output of the following curl command when querying the Nginx Plus status endpoint configured at /status?
Nginx
curl -s http://localhost/status
A{"connections":{"active":10,"waiting":5,"reading":2,"writing":3},"server_zones":{"example.com":{"requests":1000,"responses":{"1xx":0,"2xx":950,"3xx":30,"4xx":15,"5xx":5}}}}
B{"error":"Not Found"}
Ccurl: (7) Failed to connect to localhost port 80: Connection refused
D<html><body>Status Page</body></html>
Attempts:
2 left
💡 Hint
Nginx Plus status endpoint returns JSON with connection and server zone metrics.
🧠 Conceptual
intermediate
1:00remaining
Purpose of Nginx Plus API
What is the primary purpose of the Nginx Plus API in monitoring?
ATo serve static website content faster
BTo provide real-time metrics and configuration management via a RESTful interface
CTo replace the need for a load balancer
DTo encrypt all HTTP traffic automatically
Attempts:
2 left
💡 Hint
Think about how monitoring tools get data from Nginx Plus.
Troubleshoot
advanced
1:30remaining
Diagnosing missing Nginx Plus status metrics
You configured the Nginx Plus status endpoint at /status but receive a 404 error when accessing it. What is the most likely cause?
AThe SSL certificate expired
BThe server is overloaded and cannot respond
CThe firewall is blocking port 443
DThe <code>status</code> directive is missing or misconfigured in the Nginx configuration
Attempts:
2 left
💡 Hint
Check the Nginx configuration for the status endpoint setup.
🔀 Workflow
advanced
2:00remaining
Steps to enable Nginx Plus monitoring API
Which sequence correctly describes the steps to enable the Nginx Plus monitoring API?
A1,3,2,4
B2,1,3,4
C1,2,3,4
D3,2,1,4
Attempts:
2 left
💡 Hint
Think about installation first, then configuration, then reload.
Best Practice
expert
1:30remaining
Best practice for securing Nginx Plus status endpoint
What is the best practice to secure access to the Nginx Plus status endpoint?
ARestrict access to trusted IP addresses and use basic authentication
BMake the status endpoint publicly accessible for easy monitoring
CDisable the status endpoint entirely to avoid any risk
DUse HTTP instead of HTTPS to simplify access
Attempts:
2 left
💡 Hint
Think about limiting who can see sensitive metrics.