0
0
Nginxdevops~20 mins

Why monitoring ensures reliability in Nginx - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Monitoring Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is monitoring important for system reliability?

Which of the following best explains why monitoring helps ensure system reliability?

AMonitoring detects issues early so they can be fixed before causing failures.
BMonitoring automatically fixes all bugs without human help.
CMonitoring slows down the system to prevent overload.
DMonitoring hides errors from users so they don't notice problems.
Attempts:
2 left
💡 Hint

Think about how knowing about problems early helps keep things running smoothly.

💻 Command Output
intermediate
2:00remaining
Interpreting Nginx status output

Given the following Nginx status output, what is the number of active connections?

Active connections: 291 
server accepts handled requests
 1042 1042 3123
Reading: 12 Writing: 45 Waiting: 234
A3123
B1042
C45
D291
Attempts:
2 left
💡 Hint

Look at the first line for active connections.

🔀 Workflow
advanced
3:00remaining
Setting up Nginx monitoring with status module

Which Nginx configuration snippet correctly enables the stub_status module for monitoring?

Nginx
location /nginx_status {
    stub_status;
    allow 127.0.0.1;
    deny all;
}
A
location /nginx_status {
    stub_status on;
    allow 127.0.0.1;
    deny all;
}
B
location /nginx_status {
    stub_status;
    allow 127.0.0.1;
    deny all;
}
C
location /nginx_status {
    status_stub;
    allow 127.0.0.1;
    deny all;
}
D
location /nginx_status {
    stub_status off;
    allow 127.0.0.1;
    deny all;
}
Attempts:
2 left
💡 Hint

The stub_status directive does not take 'on' or 'off' parameters.

Troubleshoot
advanced
2:30remaining
Troubleshooting missing Nginx status page

You configured Nginx with the stub_status module but get a 404 error when accessing /nginx_status. What is the most likely cause?

AThe firewall is blocking port 80.
BThe server is overloaded and cannot serve the status page.
CThe stub_status module is not enabled in the Nginx build.
DThe Nginx configuration file has a syntax error unrelated to stub_status.
Attempts:
2 left
💡 Hint

Think about whether the stub_status feature is included in your Nginx installation.

Best Practice
expert
3:00remaining
Best practice for alerting on Nginx metrics

Which approach best ensures reliability by alerting on Nginx server issues?

ASet alerts for high active connections and slow response times.
BSet alerts only for total requests count increasing.
CSet alerts only when the server restarts.
DSet alerts for low disk space on unrelated servers.
Attempts:
2 left
💡 Hint

Consider which metrics indicate real-time server stress or problems.