ASP.NET Core Web API Interview Question #174
What should be monitored after deploying a Web API?
Testing, HttpClient, Integration Testing, Background Services & Deployment Senior Advanced
Quick Interview Answer
Monitor request rate, latency, error rate, status-code distribution, dependency performance, resource utilization, database behavior, health checks, and important business signals. Logs, metrics, and distributed traces provide complementary views of production behavior.
Detailed Explanation
Monitor request rate, latency, error rate, status-code distribution, dependency performance, resource utilization, database behavior, health checks, and important business signals. Logs, metrics, and distributed traces provide complementary views of production behavior.
Deployment monitoring should make it possible to compare behavior before and after a release and quickly identify regressions.
Code Example
// Example telemetry dimensions:
// route
// status_code
// duration
// dependency
// trace_id
// deployment_version