By Fatskills Exam Guides Team — the exam nerds behind 28,500+ quizzes and 2.1M practice questions across 500+ global exams.
Detection and monitoring are processes that continuously observe systems, environments, or behaviors to identify anomalies, track performance, or trigger actions. You’d use them to: - Prevent failures (e.g., server crashes, fraud).- Optimize performance (e.g., network latency, manufacturing defects).- Ensure compliance (e.g., security breaches, regulatory violations).
Without detection and monitoring: - Downtime costs businesses $5,600 per minute (Gartner).- Security breaches go unnoticed for 200+ days (IBM).- Manufacturing defects slip through, wasting materials and time.
It’s the difference between reacting to disasters and preventing them.
Why it matters: You’ll choose tools based on what you’re tracking.
Example: A server’s CPU spikes to 95% → alert triggers → auto-scale kicks in.
Trade-off: Static is simple but rigid; ML is flexible but complex.
Key difference: Monitoring answers "What’s broken?"; observability answers "Why is it broken?"
A typical detection/monitoring pipeline:
Example: A temperature sensor sends readings every 5 seconds.
Storage
Log aggregators (e.g., ELK Stack) store logs.
Processing
ML models (e.g., TensorFlow) detect anomalies.
Alerting
Example: "High latency detected in US-East-1."
Visualization
Optional: Auto-remediation (e.g., restart a crashed service).
Set up Prometheus (metrics collector): ```yaml # prometheus.yml global: scrape_interval: 15s scrape_configs:
Run it:
Install Node Exporter (collects system metrics): bash docker run -d -p 9100:9100 prom/node-exporter
bash docker run -d -p 9100:9100 prom/node-exporter
Set up Grafana (visualization): bash docker run -d -p 3000:3000 grafana/grafana
bash docker run -d -p 3000:3000 grafana/grafana
http://localhost:3000
admin/admin
http://host.docker.internal:9090
Import dashboard ID 1860 (Node Exporter Full).
1860
Expected Outcome:
Google’s SRE team recommends monitoring: - Latency: Time to serve a request.- Traffic: Requests per second.- Errors: Failed requests.- Saturation: Resource usage (e.g., CPU, memory).
You’re monitoring a web server. Which metric is least useful for detecting performance issues? A) Requests per second B) CPU usage C) Number of total users D) Error rate
Correct Answer: C) Number of total users Explanation: Total users doesn’t indicate performance. High CPU, low requests/sec, or high error rates do.Why the Distractors Are Tempting: - A) Requests per second is a core "golden signal." - B) CPU usage directly impacts performance.- D) Error rate is critical for reliability.
Your team receives too many alerts, most of which are false positives. What’s the best first step to fix this? A) Disable all alerts B) Increase the alert thresholds C) Add more metrics to monitor D) Use machine learning to filter alerts
Correct Answer: B) Increase the alert thresholds Explanation: Raising thresholds reduces noise. Disabling alerts (A) is dangerous. Adding metrics (C) worsens the problem. ML (D) is overkill for a first step.Why the Distractors Are Tempting: - A) Seems like a quick fix but leaves you blind.- C) More data doesn’t solve noise.- D) ML is powerful but complex for a first pass.
You’re setting up monitoring for a new microservice. What’s the most important thing to include in your alerts? A) The name of the service B) A link to the relevant dashboard C) The timestamp of the alert D) The severity level (e.g., P0, P1)
Correct Answer: B) A link to the relevant dashboard Explanation: Context (like a dashboard) helps responders debug faster. Severity (D) is important but secondary. Name (A) and timestamp (C) are basic.Why the Distractors Are Tempting: - A) Seems obvious but doesn’t help with debugging.- C) Useful but not as actionable as a dashboard link.- D) Helps prioritize but doesn’t aid investigation.
Join 4M+ learners. Unlock unlimited quizzes, wrong-answer tracking, flashcards + reminders, study guides, and 1-on-1 challenges.