Skip to content

Analysis and Outcomes: From Telemetry to Answers: OTCA practice questions

Collecting telemetry is only useful if it helps people answer questions about a running system. OpenTelemetry's observability primer frames the goal as understanding a system from the outside: you can ask new questions without knowing its inner workings, troubleshoot novel problems, often called unknown unknowns, and answer why something is happening.

By Ibrahim Yesilay · Published · Updated

Independent community practice, not affiliated with or endorsed by CNCF or The Linux Foundation.

What Analysis and Outcomes: From Telemetry to Answers covers in OTCA

Collecting telemetry is only useful if it helps people answer questions about a running system. OpenTelemetry's observability primer frames the goal as understanding a system from the outside: you can ask new questions without knowing its inner workings, troubleshoot novel problems, often called unknown unknowns, and answer why something is happening. A service is properly instrumented when engineers no longer need to add instrumentation to debug an issue, because the data they need is already there.

Reliability is judged from the user's side. The primer's example is a shop that stays up all the time but sometimes puts the wrong shoes in the cart, which makes it unreliable despite perfect uptime. A Service Level Indicator, or SLI, measures how a service behaves, and good SLIs take the user's perspective, such as how fast a page loads. A Service Level Objective, or SLO, attaches one or more SLIs to business value so reliability can be communicated across an organization.

Much of the value comes from correlating signals. The logs specification names three correlation dimensions: time of execution, execution context through trace and span IDs on log records, and origin through the resource attached to each record. SDKs and automatic instrumentation can stamp the active trace context onto log records, so a log line leads straight to its trace. Exemplars do the same for metrics. An exemplar is a sample measurement that can carry the trace ID and span ID that were active when it was recorded, along with its time, value and filtered attributes. With the default TraceBased filter, measurements recorded inside a sampled span become exemplar candidates, so a latency spike on a histogram can lead to a concrete trace. Profiles extend this further by linking slow spans or resource spikes to the code that consumed the resources.

Analysis also has costs. Metric cardinality is the number of unique attribute combinations, and the SDK keeps one aggregation state for each. To bound memory, the metrics SDK caps combinations per stream, 2000 by default. Beyond that limit, new combinations are folded into one overflow point tagged otel.metric.overflow=true. Totals stay correct, but queries that filter on any attribute undercount, because the whole combination is replaced. That can silently break an error-rate alert, so keep high-cardinality values such as user IDs or raw paths off metric attributes.

Sampling is the other trade-off. Head sampling decides early, for example by keeping a fixed share of trace IDs, and it is simple and efficient. However, it cannot guarantee that every trace containing an error is kept. Tail sampling decides after seeing most of a trace, so it can keep error or slow traces, but it needs stateful infrastructure to run. Sampling may not be worth it when traffic is tiny, when data is only used in aggregate, or when regulation forbids dropping data.

Key points

  • Observability means asking new questions from the outside, including about unknown unknowns.
  • A good SLI measures the service from the user's perspective, and an SLO ties SLIs to business value.
  • Logs correlate with other signals by time, execution context (trace and span IDs) and resource.
  • Exemplars link metric data points to traces; the default ExemplarFilter is TraceBased.
  • Exceeding the default cardinality limit of 2000 folds whole attribute sets into an otel.metric.overflow=true point.
  • Head sampling cannot guarantee that all error traces are kept, while tail sampling can but is harder to operate.

Three sample questions

14 OTCA questions on Analysis and Outcomes: From Telemetry to Answers, 14 with explanations. How practice works

Question 1

A team faces a failure mode nobody anticipated, so no dashboard or alert was built for it. Which property described in the OpenTelemetry observability primer helps them investigate it?
  1. A.Observability lets them ask new questions from outside, even about "unknown unknowns"
  2. B.Observability guarantees an alert already exists for every possible failure mode
  3. C.Observability requires them to know the system's inner workings before they can ask questions
  4. D.Observability means the backend automatically fixes the cause once telemetry arrives

Correct answer: A

The Observability primer says observability "lets you understand a system from the outside by letting you ask questions about that system without knowing its inner workings. Furthermore, it allows you to easily troubleshoot and handle novel problems, that is, 'unknown unknowns'. It also helps you answer the question 'Why is this happening?'" Why the other options are wrong. "Observability guarantees an alert already exists f…": the primer's point is handling novel problems that were not anticipated, not having pre-built alerts for everything. "Observability requires them to know the system's i…": the primer explicitly says you can ask questions "without knowing its inner workings". "Observability means the backend automatically fixe…": observability helps people understand and troubleshoot; nothing in the docs says a backend remediates problems automatically.

Sources: OpenTelemetry docs: Observability primer, OpenTelemetry docs: What is OpenTelemetry?

Question 2

According to the OpenTelemetry observability primer, when is an application considered "properly instrumented"?
  1. A.When it emits at least one span per incoming request
  2. B.When every function in the codebase is wrapped in its own span
  3. C.When no more instrumentation is needed to troubleshoot issues
  4. D.When all three signals are exported to the same vendor backend

Correct answer: C

The primer states: "An application is properly instrumented when developers don't need to add more instrumentation to troubleshoot an issue, because they have all of the information they need." Why the other options are wrong. "When it emits at least one span per incoming reque…": the definition is about having the information needed to troubleshoot, not a fixed count of spans per request. "When every function in the codebase is wrapped in…": the definition is outcome-based; it does not require one span per function, and library guidance warns against unnecessary spans. "When all three signals are exported to the same ve…": OpenTelemetry is vendor-agnostic and the definition says nothing about sending signals to one backend.

Sources: OpenTelemetry docs: Observability primer, OpenTelemetry docs: Instrumentation

Question 3

Which of the following is the best example of an SLI (Service Level Indicator) as described in the OpenTelemetry observability primer?
  1. A.The number of Collector instances deployed in the cluster
  2. B.The number of attributes recorded on each span
  3. C.An agreed target that 99.9% of checkouts succeed this quarter
  4. D.The speed at which a web page loads for users

Correct answer: D

The primer says an SLI "represents a measurement of a service's behavior. A good SLI measures your service from the perspective of your users. An example SLI can be the speed at which a web page loads." An SLO is how reliability is communicated, by attaching one or more SLIs to business value. Why the other options are wrong. "The number of Collector instances deployed in the…": this is a deployment detail of the telemetry pipeline, not a measurement of the service's behavior from the users' perspective. "The number of attributes recorded on each span": this describes telemetry structure, not how the service behaves for users. "An agreed target that 99.9% of checkouts succeed t…": a target attached to business value is closer to an SLO; the SLI is the underlying measurement.

Sources: OpenTelemetry docs: Observability primer, OpenTelemetry docs: Metrics

Practice this topic

Focus mode keeps every question on Analysis and Outcomes: From Telemetry to Answers until you leave it. 10 free guest answers, then a free account; no credit card.

Or open OTCA practice across all topics.

Sources

The explanation above was checked against these official documents.

Frequently asked questions

How do I get from a metric spike to a trace?

Use exemplars. They attach the trace ID and span ID that were active when a measurement was recorded, so a backend that supports them can link a data point to a trace.

Does hitting the cardinality limit lose data?

No measurements are lost and totals stay correct. However, overflowed measurements lose all their attributes, so filtered or grouped queries undercount.