Level:
No questions match — try other words or turn a level back on.
1
What is the difference between monitoring and observability?
Monitoring answers questions you knew to ask in advance: what is the CPU percentage, how many errors are there. Observability lets you understand even an unexpected problem from the logs, metrics and traces the system emits.
2
What are the "three pillars" of observability?
Logs, metrics and traces. A log is a detailed record of an individual event, a metric is a number aggregated over time, and a trace is the path of a single request across services.
3
When do you use each log level (TRACE, DEBUG, INFO, WARN, ERROR)?
ERROR means the work wasn't done and somebody should look; WARN means something odd happened but the system carried on; INFO is for important business events; DEBUG and TRACE are detailed information for developers, usually off in prod.
4
Why do we use a logger instead of System.out.println in production code?
A logger adds the level, time, thread name and class automatically, lets you switch off unneeded logs through configuration, and lets you route output to a file, JSON or an external system. println has none of these.
5
What is SLF4J and how is it connected to Logback?
SLF4J is a common interface (a facade) for writing logs, and Logback is the real logging library that implements that interface. The code only knows SLF4J, and the implementation underneath can be swapped.
6
What is the benefit of using a `{}` placeholder in a log message instead of joining strings with `+`?
With a placeholder, the message is built only if that level is enabled, so no needless String is created for disabled DEBUG logs. The code is also easier to read.
7
Which of the following catch blocks logs the error correctly, and why?
Only the third: when you pass the exception as the last argument, SLF4J prints the whole stack trace. The first writes only the message, and the second writes toString(), so where the error came from is lost.
8
What is Spring Boot Actuator and what does it give you?
Actuator is a module that adds ready-made management endpoints to a Spring Boot application: health, metrics, info, loggers, env and others. Through them you check the application's state from outside and connect it to a monitoring system.
9
What does the /actuator/health endpoint return and what do the statuses mean?
It returns the application's overall state as JSON: UP, DOWN, OUT_OF_SERVICE or UNKNOWN. The overall status is aggregated from the state of the components inside it (db, diskSpace, redis).
10
What is a metric? Give an example of a counter and a gauge.
A metric is a number measured over time. A counter only goes up (the number of requests, the number of errors), while a gauge shows the current value and can rise and fall (items in a queue, memory in use).
11
What is Micrometer, and why don't we write metrics directly with the Prometheus library?
Micrometer is a facade for metrics, similar to SLF4J: in code you write Counter, Timer, Gauge once, and they are sent through a registry to systems like Prometheus, Datadog or CloudWatch.
12
How does Prometheus collect metrics?
Prometheus works on a pull model: every 15–30 seconds it sends an HTTP request to the application's endpoint such as /actuator/prometheus, reads the text-format metrics and stores them as time series.
13
What is Grafana used for, and how does it work together with Prometheus?
Grafana is a visualization tool: it takes data from sources like Prometheus, Loki and Elasticsearch, draws dashboards and graphs, and can also set alerts. Prometheus stores, Grafana displays.
14
What is distributed tracing, and what do trace and span mean?
Distributed tracing follows the path of a single request across several services. A trace is the request's full path, and a span is one operation on that path (an HTTP call, a SQL query), with its own start time and duration.
15
What is a correlation ID (request ID), and why do you need it in logs?
A correlation ID is a unique identifier given to a single request, and it is written on every log line related to that request. By searching for that ID, you find the complete history of one request among thousands of interleaved logs.
16
What is the problem if a password, card number or personal data ends up in logs, and how do you prevent it?
Logs are open to many people and systems and are kept for a long time, so a secret that lands there has effectively leaked. To prevent it, don't log whole DTOs, mask values and control toString().
17
What is log rotation, and what happens without it?
Log rotation means switching the log file to a new one by size or date, compressing the old ones and deleting them after a set time. Without it, a single file grows until the disk fills up and the application, sometimes the whole server, goes down.
18
What is an alert, and what makes a good alert different from a bad one?
An alert is an automatic message sent to a person when a metric or log goes outside a set condition. A good alert fires for a real problem that affects users, and it's clear what to do next.
19
What is the difference between latency and throughput?
Latency is how long a single request takes (milliseconds), throughput is how many requests are completed per unit of time (RPS). They are related but not the same thing: you can have high throughput and bad latency too.
20
How do you change the log level for a single package in Spring Boot, and can you do it without a restart?
With the logging.level.<package> property in application.yml. To change it without a restart, you send a POST request to Actuator's /actuator/loggers/<logger> endpoint.
21
What is structured logging, and how is a JSON log better than a plain text log?
In structured logging, every log record is an object with well-defined fields (usually JSON): level, message, traceId, orderId. The log system searches, filters and groups by these fields without regexes.
22
What is the MDC and how does it work for adding context to logs?
The MDC (Mapped Diagnostic Context) is a key-value map bound to the current thread. If you put a requestId or userId in it, every log line on that thread automatically gets those values through the pattern or the JSON encoder.
23
What is wrong with this filter, and how does it show up in prod?
The MDC isn't being cleared. Tomcat threads are reused, so the userId carries over to the next request, and the logs of a guest user show someone else's ID.
24
A gauge was registered in Micrometer, but after a while Prometheus started showing NaN. What could be the cause?
A Micrometer gauge holds only a weak reference to the observed object. If no other strong reference to that object remains, the GC collects it and the gauge returns NaN.
25
Why should you watch latency with p95 or p99 rather than the average?
The average "melts" slow requests into the fast ones. p99 says "1 percent of requests are slower than this" and points at exactly the users who complain.
26
What is the difference between liveness and readiness probes in Kubernetes?
Liveness answers "is the process alive, does it need a restart?"; if it fails, the pod is restarted. Readiness asks "can it accept traffic?"; if it fails, the pod is only removed from the Service, not killed.
27
How should you safely expose Actuator endpoints in prod?
Open only the endpoints you need with exposure.include, put them on a separate management port or protect them with Spring Security. heapdump, env, threaddump and loggers should never be open to the internet without authentication.
28
Can DEBUG logs slow down the application in hot code even when they are off in prod?
Yes, if computing the arguments is expensive: a placeholder defers building the string, but the argument expressions are still evaluated. In that case you need an isDebugEnabled() check or the lazy API in SLF4J 2.
29
What does a Micrometer Timer measure, and how do you add it to a method?
A Timer collects the number of calls, the total time and the maximum time in one metric, and if the histogram is enabled it also produces percentiles. You add it by hand with Timer.record() or with the @Timed annotation.
30
How do you write your own health indicator, and what should you watch out for?
You write a bean that implements the HealthIndicator interface and return Health.up() or Health.down(). The check must be fast and have a timeout, otherwise the health endpoint itself slows down and the probes fail.
31
What is the high cardinality problem in metrics, and how does it arise?
Every unique combination of tags creates a separate time series. If you put an unbounded value like userId, a full URL or an error message into a tag, the number of series climbs into the millions, Prometheus runs out of memory, and the application itself uses a lot of memory too.
32
Explain the difference between SLI, SLO and SLA with an example.
An SLI is a measurable indicator (the share of successful requests), an SLO is the team's internal goal for that indicator (99.9% over 30 days), and an SLA is a legal agreement with the customer, with a penalty or compensation if it's broken.
33
What is an error budget and how does a team use it in practice?
An error budget is the "reserve of failure" the SLO allows: with a 99.9% SLO, 0.1% of requests, or about 43 minutes of downtime in 30 days. If budget remains, the team ships fast; when it runs out, it focuses on stability.
34
What is OpenTelemetry, and how can you connect it to a Java application?
OpenTelemetry is a vendor-neutral standard for traces, metrics and logs: an API, an SDK, automatic instrumentation and the OTLP protocol. In Java the fastest way is to attach an agent with -javaagent; in Spring Boot 3 there are also Micrometer Tracing's OTel bridge and the OTel Spring Boot starter.
35
How is the trace context passed from one service to another over HTTP?
Through a header: today's standard is W3C Trace Context, the traceparent header. It holds the version, the traceId, the parent span ID and flags. The receiving service continues from this header and links its new span to the same trace.
36
How does tracing work in Spring Boot 3, and what happened to Spring Cloud Sleuth?
Sleuth doesn't work with Spring Boot 3. Micrometer Tracing took its place: it instruments through the Observation API, creates traces with an OpenTelemetry or Brave bridge, and adds the traceId to logs automatically.
37
What do the RED and USE methods give you when building a service dashboard?
RED (Rate, Errors, Duration) looks at the service from outside: the number of requests, the error share, the response time. USE (Utilization, Saturation, Errors) looks at resources: how busy the CPU, memory and pools are and whether there is a queue. The first is "what the user is noticing", the second is "why".
38
When do you need an AsyncAppender in Logback, and what are its risks?
An AsyncAppender moves log writing to a separate thread so business threads don't wait on disk or network. But if the queue fills up, by default logs below INFO are dropped, and if the application is killed abruptly, logs still in the queue can be lost.
39
What is the difference between a histogram and a summary in Prometheus, and when do you pick which?
A histogram counts values into predefined buckets, and the quantile is computed on the Prometheus side and can be aggregated across instances. A summary computes the quantile inside the application: more precise, but results from several instances can't be combined correctly.
40
How do you set up collecting logs into a central place in a multi-service system: ELK or Loki?
The application writes logs to stdout or a file, and an agent (Fluent Bit, Promtail, Filebeat) reads them and sends them to central storage. ELK indexes every field and gives powerful search, but it is expensive; Loki indexes only labels: cheap, but searching inside the text is slower.
41
In an @Async method or a CompletableFuture, the traceId and MDC values disappear from the logs. What is the cause and how do you fix it?
The MDC and the tracing context live in a ThreadLocal, while the task runs on another thread in a pool, and the context doesn't pass on its own. The executor needs a TaskDecorator that copies the context over, or Micrometer context-propagation.
42
How do rate() and increase() work in PromQL, and why should you apply sum() after rate()?
rate() gives the counter's growth over the range divided per second, while increase() gives the total growth over that range. Both correctly handle the counter dropping to 0 on a restart; that is why you do rate first and then sum, not the other way around.
43
What is the difference between head-based and tail-based sampling in tracing?
In head-based sampling, the decision is made at the start of the request (for example, 10% at random): simple and cheap, but rare traces with errors may be dropped. In tail-based sampling the decision is made once the trace is complete: error and slow traces are kept, but this requires buffering the whole trace in the Collector.
44
In prod, one endpoint's p99 latency went from 200 ms to 3 seconds, while the average barely changed. How do you investigate?
First I establish the scale of the problem from metrics: which endpoint, which pod, since when, and what happened at the same time. Then I open traces of the slow requests to see where the time went, and finally move to those traces' logs. The fact that the average didn't change shows the problem affects a small number of requests.
45
How can adding a database check to a readiness or liveness probe take down the whole service?
If the database slows down temporarily, the check on every pod fails at the same time. In liveness this leads to a mass restart, and in readiness every pod leaves traffic and the service is 100% unavailable, even though it could have worked partially.
46
The on-call team gets dozens of alerts a day and most of them get ignored. How do you rebuild the alerts?
I move from cause-based alerts (CPU, memory, individual errors) to symptom-based ones: an SLO violation that affects users. For the SLO I set two-window burn rate alerts, and the other signals go to tickets or a dashboard.
47
What is an exemplar, and how does it help when moving from a metric to a trace?
An exemplar is a sample attached to a histogram bucket: a value and the traceId of the request that produced that measurement. In Grafana you click a point on the p99 graph and jump to the trace of exactly that slow request.
48
Which of the JVM metrics from Micrometer do you watch continuously, and what problems do they show in advance?
Mainly heap and GC: how the old generation's used memory grows after GC, and GC pause time and frequency. Beyond that, the number and state of threads, direct/metaspace memory, RSS relative to the container limit, CPU throttling and pool metrics.
49
In prod the service has "frozen": CPU is low, requests time out, the logs are silent. How do you diagnose it?
This almost always means the threads are waiting for something: a lock, a connection pool, an external call or a full queue. I take a thread dump 2–3 times a few seconds apart, compare them, and see where the threads are stuck.
50
How do you collect metrics from short-lived batch jobs that Prometheus doesn't get a chance to scrape?
In a pull model, if the job finishes before the scrape, the metrics are lost. The options: push the metric to a Pushgateway at the end of the job, push through OTLP, or turn the result into a metric through a long-lived service. Each has its own subtle points.
51
In a WebFlux app, `traceId` sometimes shows up in the logs and sometimes is empty. Why, and how do you fix it in Spring Boot 3?
In Reactor one request runs on several threads, while MDC is a ThreadLocal. The context travels in the Reactor Context and does not land on the logging thread by itself. In Boot 3, Hooks.enableAutomaticContextPropagation() or spring.reactor.context-propagation=auto restores it into the ThreadLocals automatically.
52
What is `DistributionSummary` in Micrometer, how does it differ from `Timer`, and when do you need it?
DistributionSummary measures the distribution of values that are not durations: response size, number of items in a batch, payment amount. It also gives you count, sum, max and, if you want, a histogram. The only difference is that the unit is the baseUnit you give it, not seconds.
53
In Spring Boot, how do you manage metrics with `MeterFilter` and the `management.metrics.*` properties: adding common tags, disabling unneeded metrics, renaming?
Common tags (application, region) come from management.metrics.tags.*, and management.metrics.enable.* turns off a metric you don't need. For finer rules such as renaming a tag, normalizing a value or denying a meter, you write a MeterFilter bean.
54
How do you separate Logback configuration by environment, and why is `logback-spring.xml` recommended over `logback.xml` in Spring Boot?
logback.xml is loaded by Logback itself, before the Spring context, and knows nothing about profiles or application.yml values. Spring Boot loads logback-spring.xml itself, so <springProfile> and <springProperty> work.
55
If a service dies or stops sending a metric, why does an "error ratio > 5%" alert stay silent, and how do you close that gap with `absent()`?
When the metric doesn't arrive, the expression has no series and the result is empty. Prometheus treats an empty result as "everything is fine", so the alert doesn't fire. absent() and absent_over_time() turn exactly the "no data" case into a series with value 1, and up == 0 shows a failed scrape.
56
How do you take a pod out of traffic cleanly when it is shutting down or during maintenance? How do `ReadinessState.REFUSING_TRAFFIC` and graceful shutdown work here?
When Spring Boot gets SIGTERM, it switches readiness to REFUSING_TRAFFIC, and with server.shutdown=graceful it stops taking new requests and finishes the ones already started. But traffic keeps arriving for a few seconds until Kubernetes removes the endpoint, so you also need a preStop delay. To take a pod out manually, you publish an AvailabilityChangeEvent.
57
What is OpenTelemetry `baggage`, how does it differ from the trace context, and what are the risks of using it?
Baggage is a set of key-value pairs (the baggage header) that travels with the request across services, for example tenantId or channel. The trace context carries only IDs, while baggage carries business context. But it goes over the network on every call, it can leak to external services, and it does not become a span attribute or a log field on its own.
58
For a message sent through Kafka, how does the trace continue from the producer to the consumer?
The producer instrumentation writes the trace context into the Kafka record headers (traceparent), and the consumer reads it and opens its own span. In Spring Kafka you enable observationEnabled for this; for a batch consumer, span links are a better fit than a parent.
59
In the trace backend, one request shows up as two or three separate traces, and some spans are left without a parent. Where do you look for the cause of the break?
The trace context was not passed across some boundary: an HTTP client without instrumentation, mismatched propagator formats, an async boundary (executor, Kafka, @Async), or a proxy that strips the header. By comparing which header arrives at each service entry and which traceId the logs carry, you find the point of the break.
60
In this code a span is opened by hand with the OpenTelemetry API. What mistakes does it have, and how do they show up in the trace?
The span is never end()ed (not even on an exception), makeCurrent() is never called so the HTTP and SQL spans inside don't become its children, and the exception is not recorded on the span. As a result the span is never exported or you get orphan spans, and the error shows up in the trace as "OK".
61
Where should exceptions be logged? In a global `@RestControllerAdvice`, at what level and how do you log 4xx and 5xx errors?
Log an exception once, at the place that finally handles it, usually the global handler. 4xx is a client error: WARN or INFO, without a stack trace. 5xx is our error: ERROR with the full stack trace. The lower layers only add context and wrap the exception.
62
How do you set up one-click navigation in Grafana from a log line to the matching trace, and from a trace to its logs?
The main requirement is that every log line has traceId as a separate field. Then in the Loki data source you link traceId to Tempo through a "derived field" or a JSON field, and in the Tempo data source the "trace to logs" setting opens a Loki query by that ID from a span.
63
What is the Observation API in Spring Boot 3, and how does it differ from a plain `Timer` and from tracing?
Observation is an abstraction that lets you wrap code once and get a metric, a span and a log all at once. The code only starts and stops the Observation, and the handlers in the registry decide which signals are produced.
64
How do you spot a connection leak or an undersized pool from HikariCP metrics?
If hikaricp_connections_pending grows and active is always equal to max, the pool is jammed. If active doesn't go back down even when traffic drops, that is a leak. To confirm, you turn on leakDetectionThreshold and take the stack trace from the log.
65
A Java app in a container gets OOMKilled from time to time, but the heap metrics are well below `-Xmx`. Where do you look?
OOMKilled is not the JVM's OutOfMemoryError; it is the cgroup limit, which counts the whole RSS of the process. Besides the heap, metaspace, thread stacks, direct buffers, the code cache, GC structures and native libraries also take memory. With Native Memory Tracking and the jvm_buffer_* and jvm_memory_used{area="nonheap"} metrics you find which one is growing.
66
How do you turn on DEBUG logs in prod for just one user or one request, while everything else stays at INFO?
In Logback, with a TurboFilter: DynamicThresholdFilter changes the log level per request depending on a value in MDC. A filter sets a marker in MDC based on a request header or the user ID, and only those requests write DEBUG.
67
What does the `http.client.requests` metric measure, and how do you tell "our service is slow" apart from "the external API we call is slow"?
http.client.requests is a Timer for every outgoing call made by Spring's instrumented clients (RestClient, RestTemplate, WebClient), with the tags client.name, uri, method, status and outcome. If you put service latency and downstream latency on one graph, you can see right away where the time goes.
68
`histogram_quantile` shows a p99 of 5 seconds, but the slowest request in the logs took 1.2 seconds. How is that possible?
A histogram does not store exact values, only the counts in its buckets. If there is no bucket between 1 s and 5 s, Prometheus interpolates p99 linearly inside that range, and the result lands near a bucket boundary. You need to put denser buckets around your SLO.
69
What does the SLF4J 2 fluent API (`log.atInfo().addKeyValue(...)`) give you, and when is it better than putting context in MDC?
The fluent API attaches key-value pairs to a single log event. They become separate fields in JSON logs, but unlike MDC they don't stay on the thread. MDC fits context shared by the whole request (traceId, userId), while addKeyValue fits data that belongs only to this one event.
70
You've been asked to write a filter that logs HTTP request and response bodies. What technical problems will you run into, and how do you make it safe?
A body stream can be read only once, so you have to cache it with ContentCachingRequestWrapper/ContentCachingResponseWrapper, which costs memory and latency. Large and binary bodies, streaming responses, sensitive fields and log volume are also problems. So I only do it for the endpoints that need it, with a size limit and masking.
71
How do you choose the SLI and SLO for a payment API? Why is "99.9% uptime" not a good SLO?
An SLI should measure what the user feels: the share of successful requests and the share of responses faster than a given threshold. "Uptime" measures whether the server is alive, but a pod can be running and return 500 on 30% of requests.
72
How does an alert based on error budget burn rate work, and why is it better than an "errors exceeded 1%" alert?
Burn rate is how many times faster than normal you are spending the error budget. Two-window rules (for example 1 hour and 5 minutes, at 14.4x) catch a serious breakage quickly and a slow leak later but reliably, and they cut down on false alerts.
73
What observability "production readiness" requirements do you set before a new service goes to prod?
If the service goes down or slows down, the on-call engineer must know before the users do and be able to find the cause within 15 minutes. That means: RED metrics and an SLO, alerts with an owner and a runbook, JSON logs with traceId, trace propagation, correct health probes and a dashboard. Most of these should come automatically through a starter and templates.
74
In a load test the service works fine up to 800 RPS, and after that latency shoots up and throughput stops growing. Which metrics do you use to find the bottleneck?
This is a sign of saturation: some resource is 100% busy and a queue is building in front of it. I put utilization and saturation for each resource (CPU and throttling, Tomcat threads, Hikari pending, executor queue, GC time, downstream latency) on one graph next to the load and find the resource that saturates first. Little's law helps check which pool is too small.
75
What metrics and alerts do you set up for a cache layer (Caffeine or Redis)? What does it mean for a cache to be "working"?
The main signal is the hit ratio, but it is not enough on its own: you also need evictions and size and load time, and for Redis latency, memory, evicted keys and connections. A cache is working when the hit ratio is at the expected level and cache misses are not flooding the backend.
76
Log storage costs have reached several thousand dollars a month. How do you cut the volume without losing the ability to debug?
First I measure which services and which log lines produce most of the volume; usually a few "noisy" spots account for 70-80%. Then I cut them by lowering the level, sampling, turning them into metrics, and tiering retention.
77
How much do tracing and metrics affect application performance, and how do you measure it?
Properly configured Micrometer and OpenTelemetry usually add a few percent of CPU and less than a few milliseconds of latency, but high cardinality, 100% sampling and synchronous export make it noticeable. You only know the exact number by measuring: compare the enabled and disabled states under the same load.
78
All the internal metrics are green, but users write that the site won't open. What is missing from the monitoring?
There is only inside (white-box) monitoring and no outside (black-box) monitoring. The service measures the requests that reach it, but requests that fail in DNS, the certificate, the CDN, the ingress or the network never reach it at all. You need synthetic probes and real-user monitoring.
79
What should a dashboard look like for an on-call engineer during an incident? What mistakes do many teams make?
A good dashboard answers the questions from top to bottom: is there user impact, in which service or dependency, and since when. The typical mistake is an "everything in one place" dashboard with 60 panels, where the signal you need gets lost in the noise.
80
In prod a service's CPU hits 100% and doesn't come down. How do you find which thread and which code is eating the CPU without a restart?
First I separate whether GC or application code is eating the CPU, using GC metrics. Then I find the thread IDs using the most CPU with top -H and match them to the nid in a thread dump, or I take a 30-60 second CPU profile directly with async-profiler/JFR and look at the hot method in the flame graph.
81
For a company with 40 teams, do you build the observability platform yourself (Prometheus, Loki, Tempo) or buy SaaS (Datadog, New Relic)? How do you decide?
The decision depends on cost, team capacity and the need to control the data. SaaS starts fast and has no operational load, but the price rises sharply as volume grows, and there is vendor lock-in. Self-hosted can be cheaper, but it needs a permanent platform team. Instrumenting with OpenTelemetry keeps both paths open.
82
Should the OpenTelemetry Collector run as an agent (on every node) or as a gateway (central)? How do you design the telemetry pipeline?
Usually both together: an agent on the node (DaemonSet) receives data close to the application, adds Kubernetes metadata and buffers quickly; a central gateway handles tail sampling, redaction, routing and export to the backends. The application doesn't know about the backend, and the policy lives in one place.
83
A single Prometheus server is struggling at 15 million active series, and teams are asking for a year of history. How do you scale the metrics platform?
A single Prometheus scales vertically and is not designed for long retention. The answer is a system that scales horizontally and writes to object storage: Thanos, Grafana Mimir or VictoriaMetrics. In parallel you need to reduce cardinality and downsample old data.
84
In an organization with many teams, how do you manage metric cardinality so that one team's mistake doesn't take down everyone's monitoring?
Three layers: in code (tags banned at the library level and MeterFilter), in the pipeline (relabeling and tenant limits in the collector or remote write), and organizationally (a series budget per team, visible consumption on a dashboard, and an automatic warning when it is exceeded).
85
The checkout flow passes through 7 services. If each service has its own SLO, how do you set the SLO for the whole flow and split it across teams?
The user experiences the flow SLO, not the service SLOs. With serial synchronous dependencies, availability multiplies: seven 99.9% services together give ~99.3%. So I start from the flow SLO: I set tighter targets for the services on the critical path, or reduce the synchronous dependencies through architecture.
86
50 services write logs in different formats, and their metric names differ too. How do you roll out a telemetry standard across the whole company?
I deliver the standard not as a document but as a library and a platform default: a shared starter, field names based on the OpenTelemetry semantic conventions, and automated checks in CI. Migration goes step by step, starting with the services that cause the most incidents.
87
Observability costs have reached 25% of the infrastructure budget. Leadership asks you to cut. How do you approach it?
First I break the cost down by signal type, team and service, and look at what value each part delivers. Then I cut the biggest and least-used parts: unneeded log volume, unused metrics, excess trace sampling and retention. In the long term, showback, so teams see their own cost.
88
In an event-driven system, one order passes through 4 Kafka topics and dozens of consumers. How do you design observability that can answer "where did this order get stuck?"
A classic request-response trace is not enough here. Every message carries the trace context and a business correlation ID (orderId), span links are used for batches and fan-out, and every stage records its state change as an event. You also need consumer lag and "message age along the pipeline" metrics.
89
How do you organize the post-incident postmortem process so that it doesn't turn into blame-hunting and actually prevents recurrence?
A postmortem is blameless: the question is not "who made the mistake" but "why did the system allow this mistake". It contains a timeline, the impact, a chain of causes, and action items with an owner and a deadline for each. The most important thing is tracking whether the action items get done, and grouping similar incidents to find systemic problems.
90
If the monitoring system itself goes down, who detects it? How do you build "monitoring the monitoring"?
A monitoring system can't reliably watch itself from the inside, so you need an independent outside signal: an always-firing "dead man's switch" alert goes to an external service, and if it stops arriving, a person is notified. Every stage of the pipeline also sends its own metrics to an independent place.
91
Why is sending application logs, audit logs and analytics events through one log pipeline a bad idea?
Their requirements differ: application logs can be sampled, lost and deleted after 14 days, while an audit log must not be lost or altered and must be kept for years, and analytics events have a schema and are for business analysis. In a single pipeline, either the audit becomes unreliable or the debug logs become needlessly expensive.
92
Is it worth adding continuous profiling as a fourth signal next to metrics, logs and traces? When does it pay off?
In most cases yes: a profile answers "why is CPU or memory usage so high" down to the line of code, which the other signals can't do. Sampling profilers like async-profiler and JFR are cheap enough to leave on all the time in prod. The most value comes from optimizing CPU cost and catching regressions between deploys.
93
What signals do you build the automatic "promote or roll back" decision for a canary deploy on?
I statistically compare the SLIs of the canary and a baseline (the old version, with the same share of traffic): error ratio, latency distribution, saturation metrics. I base the decision not on an absolute threshold but on the relative difference, and only after enough traffic has accumulated. Business signals (conversion, payment success) count too.
94
How do you draw up a plan to migrate 120 Java services from a vendor APM agent to OpenTelemetry?
First I put in the Collector and make it also send to the old backend, then I move services to the OTel Java agent in waves, checking at each wave that trace continuity and the dashboards/alerts still work. The hardest part is not the code but the vendor-tied dashboards, alerts and propagation formats.
95
An alert fires, but nobody knows which team it belongs to. In an organization with hundreds of services, how do you organize alert ownership?
Every service is registered in a service catalog with its owner, on-call rotation and criticality level, and this information is tied to telemetry through service.name. A script generates the Alertmanager routing from that catalog. A service without an owner doesn't go to prod.
96
How does the "wide events" approach (one event with hundreds of fields per request) differ from the classic metrics + logs model? When is it worth moving to it?
With wide events, one rich, structured record is stored per request, and metrics are computed at query time, not in advance. This gives you free-form analysis over high cardinality ("slow only for customer X, version Y, region Z"), but you need a columnar database for storage and queries, and cost depends directly on volume.
97
In a multi-tenant SaaS, one big customer keeps complaining "it's always slow for us", while the overall SLO is green. How do you build observability at the tenant level?
The overall SLO hides the big customer's problem under the traffic of the small customers. I make the tenant ID a mandatory attribute on traces and logs, and use it in metrics only in a limited form (top tenants or tier). For important customers I set separate SLIs and SLOs.
98
The system runs in several regions and clusters. How do you design observability so everything is visible in one place, but if one region goes down, the monitoring doesn't go down with it?
Telemetry is collected and stored locally in each region (the write path stays inside the region), while the global view is provided at the query layer through federation. Alerting works independently in each region, and meta-monitoring comes from another region. So if a region goes down, the others don't lose their monitoring, and there is an outside signal about the failed region.
99
Telemetry can contain personal data. If a user asks for their data to be deleted (GDPR or a local law), what do you do about logs and traces?
The best strategy is to keep PII out of telemetry altogether, or to include only a pseudonymized identifier, and to keep retention short. Then a deletion request barely touches telemetry. For the rest, write down what sits in which system and for how long.
100
How do you build SLOs and alerting for daily batch jobs and Kafka consumers? Why doesn't the approach for HTTP services work here?
Batch and stream processors have no "request" and no "response time", while the user notices whether the result is on time and complete. So the SLIs are freshness, completeness and correctness: "the report is ready by 07:00", "events are processed within 5 minutes", "no lost records".
Sign up — studied questions get marked and your progress is saved.