First 50 of 198 questions. Each one lists the choices, the correct answer, and an explanation. The checker at the top of this page saves progress in this browser when it is available.
Continue in the practice tool above to load more questions, 50 at a time.
Question 1OpenTelemetry Fundamentals and Concepts
Which OpenTelemetry signal records discrete events that occurred at a specific point in time, often with an associated severity level?
- Profiles
- Logs Correct answer.
- Metrics
- Traces
Explanation
Logs are timestamped records of discrete events, and OpenTelemetry's log data model allows them to carry severity, body, and attributes. Metrics aggregate measurements over time, and traces follow a request across components.
Question 2OpenTelemetry Fundamentals and Concepts
In OpenTelemetry, what is a span?
- A collection of related traces grouped by service name
- A metric instrument that records cumulative totals
- A single operation within a trace, with a start time, end time, and metadata Correct answer.
- A configuration file that defines exporters
Explanation
A span represents one unit of work in a trace and captures timing plus contextual attributes. Spans are linked by parent-child relationships to form a trace.
Question 3OpenTelemetry Fundamentals and Concepts
Which component is responsible for collecting, processing, and exporting telemetry in the OpenTelemetry architecture?
- The Collector Correct answer.
- The context propagator
- The API
- The instrumentation library
Explanation
The OpenTelemetry Collector is a standalone service that receives, processes, and exports telemetry data. It can also be deployed as an agent or gateway between applications and backends.
Question 4OpenTelemetry Fundamentals and Concepts
What does the OpenTelemetry API provide to application developers?
- Interfaces and no-op implementations for instrumenting code Correct answer.
- A dashboard for visualizing telemetry
- A full agent that automatically instruments all libraries
- A storage backend for traces and metrics
Explanation
The API supplies the interfaces used to create telemetry and includes no-op implementations so instrumentation is safe even when no SDK is configured. The SDK implements those interfaces.
Question 5OpenTelemetry Fundamentals and Concepts
Which propagation mechanism does OpenTelemetry define as its standard for carrying trace context in HTTP headers?
- W3C Trace Context Correct answer.
- AWS X-Ray trace header
- Jaeger uber-trace-id
- B3 single header
Explanation
OpenTelemetry specifies W3C Trace Context as its default propagation format, using the traceparent and tracestate headers. Other formats are supported through optional propagators.
Question 6OpenTelemetry Fundamentals and Concepts
What is the role of a resource in OpenTelemetry?
- It defines sampling rules for traces
- It describes the entity producing telemetry, such as a service or host Correct answer.
- It routes telemetry between Collector pipelines
- It stores spans until they are exported
Explanation
A resource is a set of attributes describing the source of telemetry, such as service.name and host.name. These attributes are attached to telemetry to identify its origin.
Question 7OpenTelemetry Fundamentals and Concepts
Which metric instrument should be used to record a value that can go up and down, such as the number of items in a queue?
- Gauge observation
- Counter
- UpDownCounter Correct answer.
- Histogram
Explanation
An UpDownCounter records a value that can increase or decrease, making it suitable for quantities like queue depth. A Counter only increases.
Question 8OpenTelemetry Fundamentals and Concepts
What is the purpose of baggage in OpenTelemetry?
- To sample traces at a fixed rate
- To compress span data before export
- To propagate key-value pairs across service boundaries independent of traces Correct answer.
- To encrypt telemetry in transit
Explanation
Baggage carries application-defined key-value pairs through the context so downstream services can read them. It is separate from trace context and is not automatically added to spans.
Question 9OpenTelemetry Fundamentals and Concepts
An application creates a span but no SDK is registered. What happens to the span?
- It raises an error that must be handled by the caller
- It is automatically exported to a default endpoint
- It is created as a non-recording span and produces no exported data Correct answer.
- It is buffered in memory until an SDK is registered
Explanation
Without an SDK, the API returns a no-op span that records nothing and exports nothing, so instrumentation remains safe. This allows libraries to be instrumented without requiring an SDK at runtime.
Question 10OpenTelemetry Fundamentals and Concepts
What distinguishes a span's parent-child relationship from a span link?
- A link creates a new trace, while parent-child merges traces
- Parent-child is set by the Collector, while links are set by the API
- Parent-child expresses causal nesting within a trace, while a link associates spans across traces Correct answer.
- Parent-child is used only for metrics, while links are used for traces
Explanation
Parent-child relationships build the tree structure of a single trace and imply causality. Links associate a span with other spans, often in different traces, without implying nesting.
Question 11OpenTelemetry Fundamentals and Concepts
Which span kind should be used for a span that represents handling an incoming remote request?
- Producer
- Server Correct answer.
- Client
- Internal
Explanation
The Server kind marks a span that processes an inbound remote call, such as an HTTP handler. Client spans represent outbound calls, and Internal spans represent in-process operations.
Question 12OpenTelemetry Fundamentals and Concepts
What is the primary function of a span processor in the OpenTelemetry SDK?
- To sample decisions at the trace root
- To receive ended spans and forward them to an exporter Correct answer.
- To parse incoming HTTP headers
- To define metric aggregation temporality
Explanation
A span processor intercepts spans when they start and end and passes ended spans to exporters. Batch and simple processors are common implementations.
Question 13OpenTelemetry Fundamentals and Concepts
Which OpenTelemetry Collector component is responsible for receiving data?
- Exporter
- Connector
- Receiver Correct answer.
- Processor
Explanation
Receivers accept data into the Collector in a specific format or protocol. Processors transform data, exporters send it onward, and connectors join pipelines.
Question 14OpenTelemetry Fundamentals and Concepts
A team wants to drop spans with a specific attribute before export using the Collector. Which component type should they configure?
- An exporter in the traces pipeline
- A processor in the traces pipeline Correct answer.
- A receiver in the traces pipeline
- A service extension
Explanation
Processors sit between receivers and exporters and can filter or transform telemetry. Dropping spans based on attributes is a processor responsibility, such as the filter processor.
Question 15OpenTelemetry Fundamentals and Concepts
Which statement best describes head-based sampling?
- Sampling is applied only to metrics, not traces
- Each span is sampled independently by the exporter
- The sampling decision is made when the trace begins and is propagated to downstream services Correct answer.
- The decision is made after the full trace is assembled at the backend
Explanation
Head-based sampling decides at the root of the trace and communicates the decision through trace context so all services honor it. Tail-based sampling instead decides after seeing the complete trace.
Question 16OpenTelemetry Fundamentals and Concepts
What does the OpenTelemetry semantic conventions project provide?
- A reference implementation of a tracing backend
- A programming language for writing exporters
- Standardized attribute names and values for common telemetry Correct answer.
- A wire protocol for encoding spans
Explanation
Semantic conventions define agreed attribute names such as http.request.method so telemetry is consistent across systems. They are not a backend, protocol, or language.
Question 17OpenTelemetry Fundamentals and Concepts
Which protocol is defined by OpenTelemetry as its native telemetry transport?
- Prometheus remote write
- OTLP Correct answer.
- StatsD
- Syslog
Explanation
OTLP is the OpenTelemetry Protocol, designed natively for transmitting traces, metrics, and logs. It supports gRPC and HTTP encodings.
Question 18OpenTelemetry Fundamentals and Concepts
Which instrument is appropriate for recording request durations so that percentiles can be computed?
- Histogram Correct answer.
- Counter
- Observable gauge
- UpDownCounter
Explanation
A Histogram records the distribution of values in buckets, enabling percentile estimation. Counters and up-down counters track sums, not distributions.
Question 19OpenTelemetry Fundamentals and Concepts
Why does OpenTelemetry recommend using the API in library code rather than the SDK directly?
- It automatically enables tail-based sampling
- It keeps the library decoupled so applications can choose their own SDK and configuration Correct answer.
- It removes the need for any exporter
- It guarantees lower CPU usage than the SDK
Explanation
Depending only on the API lets a library emit telemetry without forcing a specific SDK or configuration on its users. The application decides which SDK to install and how to export.
Question 20OpenTelemetry Fundamentals and Concepts
A service receives a request with a traceparent header and must continue the same trace. What must it do?
- Export the header directly to the backend without creating spans
- Create a new root span and link it to the header value
- Start a new trace and ignore the incoming header
- Extract the remote context and create a new span as a child of the extracted span context Correct answer.
Explanation
The service should extract the remote span context from the header and use it as the parent for its new spans. This preserves trace continuity across service boundaries.
Question 21OpenTelemetry Fundamentals and Concepts
Which statement about logs in OpenTelemetry is accurate?
- Log records can carry a trace ID and span ID to correlate them with traces Correct answer.
- Logs cannot include structured attributes
- Logs must be exported using a proprietary protocol
- Logs bypass the SDK and are written directly to disk
Explanation
The log data model allows log records to reference a trace ID and span ID, enabling correlation between logs and traces. Logs also support structured attributes and flow through the SDK.
Question 22OpenTelemetry Fundamentals and Concepts
What is the difference between a synchronous and an asynchronous metric instrument?
- Synchronous instruments run in the Collector, while asynchronous ones run in the application
- Synchronous instruments are only for traces, while asynchronous ones are only for logs
- Synchronous instruments record measurements at call time, while asynchronous ones report values via callbacks during collection Correct answer.
- Synchronous instruments require OTLP, while asynchronous ones require Prometheus
Explanation
Synchronous instruments like Counter and Histogram are updated directly when events occur. Asynchronous instruments use callbacks to observe values at collection time, such as observable gauges.
Question 23OpenTelemetry Fundamentals and Concepts
An organization needs to sample traces based on errors that only become visible after all spans of a trace are collected. Which approach fits?
- Tail-based sampling in the Collector Correct answer.
- Always-on sampling with no sampler
- Head-based sampling in the SDK
- Random sampling at the exporter
Explanation
Tail-based sampling buffers complete traces and decides afterward, allowing policies based on errors or latency. Head-based decisions occur before the outcome is known.
Question 24OpenTelemetry Fundamentals and Concepts
How does the Collector's connector component differ from an exporter?
- A connector only handles metrics, while an exporter only handles traces
- A connector receives external traffic, while an exporter parses headers
- A connector writes to disk, while an exporter writes to memory
- A connector passes data between pipelines inside the Collector, while an exporter sends data to an external destination Correct answer.
Explanation
Connectors join two pipelines, acting as an exporter for one and a receiver for another within the same Collector. Exporters instead transmit data to systems outside the Collector.
Question 25OpenTelemetry Fundamentals and Concepts
Why is it important that trace context propagation preserves the trace flags field?
- It sets the metric aggregation temporality
- It identifies the Collector instance
- It carries the sampling decision so downstream services record spans consistently Correct answer.
- It encrypts the trace payload
Explanation
The trace flags in the traceparent header include the sampled bit, which tells downstream services whether to record. Preserving it keeps sampling consistent across the trace.
Question 26OpenTelemetry Fundamentals and Concepts
Which three signal types does OpenTelemetry define as its core observability signals?
- Traces, profiles, and events
- Metrics, alerts, and dashboards
- Traces, metrics, and logs Correct answer.
- Logs, traces, and configuration
Explanation
OpenTelemetry's specification centers on three signals: distributed traces, metrics, and logs, each with its own API and SDK components. Profiles are a separate, emerging effort rather than one of the three established core signals.
Question 27OpenTelemetry Fundamentals and Concepts
What is the fundamental unit of work recorded by OpenTelemetry's tracing API?
- A metric data point
- A span Correct answer.
- A resource
- A log record
Explanation
A span represents a single operation within a trace, capturing its name, timing, attributes, and relationships to other spans. Traces are composed of spans arranged in parent-child or linked structures.
Question 28OpenTelemetry Fundamentals and Concepts
A developer needs to emit telemetry from a shared library that will be used by many applications. Which dependency should the library take on?
- A vendor-specific tracing agent
- The OpenTelemetry API package Correct answer.
- The OpenTelemetry SDK for a specific language
- The OpenTelemetry Collector
Explanation
Libraries should depend only on the OpenTelemetry API, which is a no-op when no SDK is installed and delegates to the configured SDK when one is present. This keeps libraries vendor-neutral and avoids forcing a particular SDK or backend on the applications that use them.
Question 29OpenTelemetry Fundamentals and Concepts
Which statement describes how context propagation works across a process boundary in OpenTelemetry?
- The SDK writes span data to a shared database that downstream services query
- The receiving service generates a new trace ID and links it to the caller's trace after the fact
- The trace ID and span ID are injected into the outgoing request's carrier and extracted by the receiving service Correct answer.
- The Collector forwards the full span tree to each downstream service before the request is sent
Explanation
Propagation relies on inject and extract operations: the sending process serializes trace context into a carrier such as HTTP headers, and the receiver deserializes it to continue the same trace. This works without any shared storage or coordination through the Collector.
Question 30OpenTelemetry Fundamentals and Concepts
A team wants to reduce trace volume while guaranteeing that every trace containing an error is retained. Which sampling architecture meets this requirement?
- Head-based sampling with a higher probability on services that log errors
- Per-span sampling that drops only spans whose status is not error
- Head-based sampling with a fixed probability applied at the root service
- Tail-based sampling performed after all spans of a trace have been observed Correct answer.
Explanation
Tail-based sampling buffers spans until a trace is complete, so the sampling decision can consider the whole trace, including error status discovered late. Head-based decisions are made at trace start, before error information exists.
Question 31Signals: Traces, Metrics, Logs, and Baggage
Which OpenTelemetry signal is best suited to answering the question 'How many requests per second is the checkout service handling right now?'
- Traces
- Metrics Correct answer.
- Baggage
- Logs
Explanation
Metrics are aggregated numeric measurements designed for cheap, efficient querying of rates, counts, and distributions over time. Traces record individual request paths, logs record discrete events, and baggage carries cross-cutting key-value context.
Question 32Signals: Traces, Metrics, Logs, and Baggage
Which field links a log record to the trace it was emitted during?
- The trace ID and span ID carried on the log record Correct answer.
- The log body text
- The log timestamp
- The service name resource attribute
Explanation
Correlating logs with traces relies on the trace ID and span ID being attached to the log record so backends can join them. The body, resource attributes, and timestamp do not identify a specific trace.
Question 33Signals: Traces, Metrics, Logs, and Baggage
What is baggage in OpenTelemetry?
- A log sampling strategy
- A type of metric aggregation
- A buffer of unsent spans on the exporter
- Key-value context propagated across service boundaries alongside a trace Correct answer.
Explanation
Baggage is a standardized set of key-value pairs that travels with the request context so downstream services can read values without them being part of the trace itself. It is not a storage buffer, metric aggregation, or sampling policy.
Question 34Signals: Traces, Metrics, Logs, and Baggage
Which metric instrument type should be used to record a value that only ever increases, such as the total number of bytes sent?
- Gauge
- UpDownCounter
- Histogram
- Counter Correct answer.
Explanation
A counter is monotonic, meaning recorded values are non-negative and the total only grows. UpDownCounter allows decreases, histograms capture distributions, and gauges record instantaneous values.
Question 35Signals: Traces, Metrics, Logs, and Baggage
Which log severity level conventionally indicates the most severe condition?
- ERROR
- DEBUG
- WARN
- FATAL Correct answer.
Explanation
Severity levels are ordered, and FATAL represents a condition from which the application cannot continue, ranking above ERROR, WARN, and DEBUG. DEBUG is the least severe and typically used for development detail.
Question 36Signals: Traces, Metrics, Logs, and Baggage
What does the parent span ID field on a span represent?
- The next span to be created
- The span that directly caused or contains this span Correct answer.
- The root span of the entire trace
- The trace's sampling priority
Explanation
The parent span ID points to the immediate caller or enclosing operation, which is what gives a trace its tree structure. The root span is only the parent of its direct children, not of every span.
Question 37Signals: Traces, Metrics, Logs, and Baggage
Which best describes the relationship between a trace and its spans?
- A trace is a list of metrics sharing one name
- A trace is a tree of spans sharing one trace ID Correct answer.
- A trace is a single span with many logs
- A trace is a set of baggage keys
Explanation
All spans in a trace share the same trace ID and are connected by parent-child links, forming a tree rooted at the entry span. Metrics, logs, and baggage are distinct concepts.
Question 38Signals: Traces, Metrics, Logs, and Baggage
A service records request latency with a histogram instrument. What does this primarily enable?
- Guaranteeing exactly-once delivery of spans
- Computing percentiles and bucket-based distributions Correct answer.
- Propagating user IDs to downstream services
- Reducing log volume at the source
Explanation
Histograms aggregate observations into configurable buckets, from which quantiles and distributions can be derived in the backend. They do not affect span delivery, context propagation, or log volume.
Question 39Signals: Traces, Metrics, Logs, and Baggage
You want a metric that can rise and fall, such as the number of items currently in a queue. Which instrument fits best?
- Counter
- Exponential histogram
- Histogram
- Asynchronous UpDownCounter Correct answer.
Explanation
An UpDownCounter supports both increments and decrements, and the asynchronous variant observes a current value via callback, which suits queue depth. A plain counter cannot decrease, while histograms and exponential histograms record distributions.
Question 40Signals: Traces, Metrics, Logs, and Baggage
A developer adds a new attribute to a span after the span has already ended. What is the expected outcome?
- The attribute is converted into a log record
- The attribute is merged into the parent span
- The attribute is not recorded because the span is immutable once ended Correct answer.
- The span is automatically restarted
Explanation
Spans become immutable after End is called; the SDK will not accept further modifications. Attributes must be set while the span is active, and nothing is rerouted to the parent or converted into logs.
Question 41Signals: Traces, Metrics, Logs, and Baggage
Which propagation mechanism is defined by the W3C standard specifically for trace context?
- The authorization header
- The traceparent header Correct answer.
- The baggage header
- The content-type header
Explanation
W3C Trace Context defines the traceparent header carrying trace ID, span ID, and flags, with tracestate for vendor data. Baggage is defined in a separate W3C specification, and the other headers serve unrelated purposes.
Question 42Signals: Traces, Metrics, Logs, and Baggage
A team wants to pass a tenant identifier to all downstream services for routing, without making it part of the trace or metrics. Which mechanism is appropriate?
- Exemplars
- Resource attributes
- Baggage Correct answer.
- Span events
Explanation
Baggage is designed to propagate arbitrary key-value context across service boundaries independent of the trace structure. Span events and exemplars are trace-related constructs, and resource attributes describe the emitting entity rather than per-request context.
Question 43Signals: Traces, Metrics, Logs, and Baggage
What is the main risk of placing large or sensitive values in baggage?
- It is stored permanently in the collector's database
- It is propagated to every downstream service and may be exposed or bloat requests Correct answer.
- It converts traces into metrics
- It disables sampling for the trace
Explanation
Baggage travels with the request context to all downstream services, so secrets can leak and large payloads can inflate headers. It is not persisted by collectors, does not convert signals, and does not control sampling.
Question 44Signals: Traces, Metrics, Logs, and Baggage
A trace shows a child span with a parent span ID that does not exist in the collected data. What is the most likely explanation?
- The child span has an invalid trace ID
- The trace has more than one root by design
- The child span was created before its parent
- The parent span was not sampled or not exported Correct answer.
Explanation
Sampling and export decisions can drop a parent while a child is still recorded, producing orphan spans that reference a missing parent. A child cannot be created before its parent, and a valid trace ID is shared across the trace.
Question 45Signals: Traces, Metrics, Logs, and Baggage
Which statement about the OpenTelemetry log data model is correct?
- Log records cannot have attributes
- Log records are only produced by the collector
- Log records must always have a trace ID
- A log record can carry a severity, a body, attributes, and trace context Correct answer.
Explanation
The log data model defines fields including timestamp, severity, body, attributes, and optional trace and span IDs for correlation. Attributes are allowed, trace IDs are optional, and applications as well as collectors can emit records.
Question 46Signals: Traces, Metrics, Logs, and Baggage
An engineer wants to attach a discrete occurrence, such as an exception, to a specific span. Which span feature is intended for this?
- Span events Correct answer.
- Span kind
- Span status
- Span links
Explanation
Span events represent timestamped occurrences within a span's lifetime, and exceptions are conventionally recorded as events with exception attributes. Links associate spans across traces, status conveys success or failure, and kind describes the span's role.
Question 47Signals: Traces, Metrics, Logs, and Baggage
What is the purpose of the tracestate header in W3C Trace Context?
- To carry vendor-specific trace data alongside traceparent Correct answer.
- To store the full trace of spans
- To authenticate the collector
- To compress log payloads
Explanation
tracestate allows multiple vendors to propagate their own state in an ordered list while traceparent carries the core identifiers. It does not store spans, authenticate, or compress logs.
Question 48Signals: Traces, Metrics, Logs, and Baggage
A histogram metric is configured with buckets in milliseconds. An engineer queries the 99th percentile and finds it inaccurate near the top end. What is the most likely cause?
- The observation falls outside the defined bucket boundaries Correct answer.
- The exemplar filter removed samples
- The trace was not sampled
- The counter was reset
Explanation
Percentile accuracy from histograms depends on bucket boundaries; values above the highest boundary are clamped into an overflow bucket, losing precision. Counter resets, exemplar filters, and trace sampling do not affect histogram bucket resolution.
Question 49Signals: Traces, Metrics, Logs, and Baggage
Why might a team prefer an exponential histogram over an explicit bucket histogram?
- It removes the need for any aggregation
- It provides dynamic, high-resolution bucketing with lower configuration effort Correct answer.
- It automatically creates spans
- It can only record integer values
Explanation
Exponential histograms scale bucket resolution with the magnitude of values, giving good relative accuracy without hand-tuning boundaries. They still require aggregation and do not create spans or restrict values to integers.
Question 50Signals: Traces, Metrics, Logs, and Baggage
A service records a metric with a high-cardinality attribute such as a unique user ID. What is the primary consequence?
- The histogram becomes a gauge
- The attribute is silently dropped by the SDK
- The metric backend may suffer from series explosion and increased cost Correct answer.
- The metric becomes a trace automatically
Explanation
Each distinct attribute combination creates a new time series, so high-cardinality attributes can explode series counts and storage costs. The SDK does not convert metrics to traces or change instrument types, and attributes are not automatically dropped.