How can you tell that a service is showing signs of degradation or has stopped functioning? What error codes would you expect?
Asked at
AI answer
Monitor availability and latency (for example, p95/p99), error rates, timeouts, throughput, and stuck requests; also check readiness/liveness and dependency availability. Detect degradation by looking for deviations from baselines and thresholds, not from a single failure; structured logs, metrics, and traces are useful. Expected HTTP status codes: 400 — malformed request, 401/403 — authentication/access, 404 — resource not found, 409 — conflict, 429 — rate limit, 500 — internal error, 502/503/504 — dependency failure, unavailability, or timeout. The specific contract depends on the API; errors should be tracked by code and cause.
Also asked at Т1
- What enables the OpenSearch engine to return results quickly across a huge database (what algorithm is it based on)?
- Why is Object Storage used in this architecture, and what exactly do we store there?
- Based on your experience, name an example of a task similar to the architecture we discussed. How exactly were the microservices interactions and event delivery set up?
- How would you handle user authorization when they sign in to the interface and upload documents?
- How do you calculate Precision, and how does it differ from Recall?
Similar questions
- If you receive a 503 Service Unavailable error while testing an API, how would you figure out what happened, and whom would you contact?
- A web service endpoint has started responding slowly. What steps would you take to identify and resolve the problem?
- What metric is used to measure service availability?
- How are errors handled in REST/HTTP, and how does this differ from error handling in SOAP?
- You’ve deployed a release. The service hasn’t gone down, but its response time has risen sharply (from 200 ms to 2 s). What would you do, and where would you look first?