All Linux Foundation / CNCF exams
Free OTCA practice test: 30 questions with answers
30 original questions for OpenTelemetry Certified Associate, drawn from every topic area. Answer each one to see whether you got it right and why. No sign-up.
- Free questions
- 30
- Full bank
- 100 questions
All 30 OTCA questions with answers
The same questions as the test above, grouped by exam topic. Open any question to see the answer and explanation.
Observability Concepts and Signals (8 questions)
Question 1
Which OpenTelemetry signal records the path of a single request as it moves across multiple services, including timing for each operation?
- ALogs only
- BProfiles of disk usage
- CMetrics
- DTraces
Show answer and explanationHide answer
Correct answer: DTraces capture a request's journey as spans with timing and parent-child relationships. Metrics aggregate numeric measurements, logs record events, and disk profiles are not a core signal.
Question 2
Which signal is best suited to tracking the total number of HTTP requests per second over time with low storage cost?
- AMetrics
- BTraces for every request
- CUnstructured log lines only
- DScreenshots of dashboards
Show answer and explanationHide answer
Correct answer: AMetrics are aggregated numeric time series that are efficient for rates and counts over time. Tracing every request is expensive for this purpose, and log lines and screenshots are not efficient for rate tracking.
Question 3
What is a span in OpenTelemetry?
- AA timed operation within a trace that has a name, start and end times, and attributes
- BA permanent row in a relational database table, with a primary key assigned by the storage engine
- CA unit of CPU time on a compute node, measured in cycles and summed per process by the kernel
- DA dashboard panel that plots a time series chart with a query, legend, and visualization type
Show answer and explanationHide answer
Correct answer: AA span is a timed unit of work within a trace, with attributes and relationships to other spans. CPU units, database records and dashboard panels are unrelated.
Question 4
Spans within one trace are linked so that a child operation references its parent. What identifies the trace across services?
- AThe trace ID propagated in request context
- BThe dashboard title set in Grafana for the panel
- CThe host's IP address alone, logged per service
- DThe log file name written by the logging agent
Show answer and explanationHide answer
Correct answer: AThe trace ID is propagated through context so every service can attach its spans to the same trace. IP addresses, file names and dashboard titles do not connect spans across services.
Question 5
Which concept describes the information that identifies the source of telemetry, such as the service name and host, attached to all signals?
- AHistogram buckets
- BSampling probability
- CSpan events only
- DResource attributes
Show answer and explanationHide answer
Correct answer: DResource attributes describe the entity producing telemetry, such as service name and host. Span events, histogram buckets and sampling probabilities describe other aspects.
Question 6
Which OpenTelemetry metric instrument is most appropriate for a value that can increase and decrease, such as the number of active connections?
- ACounter that only increases
- BLog record
- CHistogram of request durations
- DUpDownCounter
Show answer and explanationHide answer
Correct answer: DAn UpDownCounter tracks values that can rise and fall, such as active connections. A Counter only increases, a histogram records distributions, and log records are not metric instruments.
Question 7
A team wants to see the distribution of request latencies, including percentiles, not only the average. Which metric instrument should be used?
- AGauge that stores the last value only
- BCounter for total requests only
- CHistogram
- DLog line for every request
Show answer and explanationHide answer
Correct answer: CA histogram captures the distribution of measurements, which enables percentile analysis. A last-value gauge, a total counter and log lines do not describe distributions.
Question 8
Which signal is best for detailed, structured event records that include context such as an error message and the request that caused it?
- ASampling rules
- BResource detection
- CLogs
- DMetrics only
Show answer and explanationHide answer
Correct answer: CLogs capture structured event records with context. Metrics aggregate values, sampling rules control trace collection, and resource detection identifies the source.
OpenTelemetry Collector (8 questions)
Question 9
In the OpenTelemetry Collector, what is a receiver?
- AA component that sends telemetry to a backend over OTLP
- BA dashboard panel that renders time series charts from stored metrics for operators
- CA component that accepts telemetry data from applications or other sources
- DA database index structure, such as a B-tree on a timestamp column, used for lookups
Show answer and explanationHide answer
Correct answer: CReceivers accept telemetry into the Collector. Exporters send telemetry out, dashboards display data and indexes are database structures.
Question 10
In the Collector, what is the role of an exporter?
- ASending telemetry to a backend or another system
- BDrawing time series charts and heatmaps for on-call staff
- CReceiving telemetry from applications directly
- DCreating spans in the application code using the SDK
Show answer and explanationHide answer
Correct answer: AExporters send processed telemetry to backends or other systems. Receivers accept data, instrumentation creates spans, and charts are backend features.
Question 11
What does a processor do in a Collector pipeline?
- ARenders dashboards and visualizations for end users in Grafana
- BTransforms, filters, batches, or enriches telemetry between receivers and exporters
- CAccepts incoming HTTP requests from end users on port 4318 before login checks
- DStores telemetry permanently in the Collector's memory for long-term retention
Show answer and explanationHide answer
Correct answer: BProcessors modify telemetry between receiving and exporting, such as batching or filtering. Accepting user requests, storing permanently in memory and rendering dashboards are not processor roles.
Question 12
Which two components are part of a Collector pipeline? (Choose two.)
- AReceivers
- BExporters
- CDashboards inside the Collector
- DDatabase indexes
- EPrinter drivers
Show answer and explanationHide answer
Correct answer: A, BReceivers and exporters are pipeline components, with processors between them. Dashboards, indexes and printer drivers are not Collector components.
Question 13
A Collector receives OTLP data over gRPC and HTTP. Which configuration describes both protocols?
- AAn OTLP receiver with both the gRPC and HTTP endpoints configured
- BA dashboard with two tabs, one for gRPC traffic and one for HTTP traffic
- CA single exporter with two passwords and two separate authentication tokens
- DA processor that accepts HTTP requests and forwards them to the exporter queue
Show answer and explanationHide answer
Correct answer: AThe OTLP receiver can expose gRPC and HTTP endpoints, which is how Collectors accept both. Exporters, processors and dashboards do not accept protocol requests.
Question 14
Which Collector component should be used to add the Kubernetes pod name to every span without changing the application?
- AAn exporter that deletes spans older than the retention window from memory
- BA processor that enriches telemetry with resource detection or Kubernetes metadata
- CA receiver that drops resource attributes from incoming payloads
- DA dashboard setting for the default time range and panel refresh
Show answer and explanationHide answer
Correct answer: BEnrichment processors and detectors add Kubernetes metadata to telemetry without application changes. Exporters, receivers that drop attributes and dashboards do not add this context.
Question 15
A team wants to route traces to one backend and metrics to another. Which Collector design supports this?
- ASeparate pipelines for traces and metrics, each with its own exporter
- BTurning off one signal entirely
- CA single pipeline that sends everything to both backends regardless of type
- DStoring traces in a text file on the Collector host
Show answer and explanationHide answer
Correct answer: ASeparate signal pipelines with their own exporters route each signal to the right backend. Sending everything to both, disabling a signal and file storage do not meet the routing requirement.
Question 16
Which Collector configuration section defines the connections between receivers, processors, and exporters for each signal?
- Athe extensions block only
- Ba comment at the top of the file
- Cservice pipelines
- Dthe exporters block only
Show answer and explanationHide answer
Correct answer: CThe service section defines pipelines that connect components for each signal. Exporter definitions alone do not connect the pipeline, extensions serve auxiliary functions, and comments have no effect.
Instrumentation (7 questions)
Question 17
Which instrumentation approach adds telemetry to an application without changing its source code?
- AAutomatic instrumentation using an agent or library hooks
- BPrinting variable values to the console output with print calls
- CManual instrumentation written into every function in the codebase
- DEditing the database schema and column types
Show answer and explanationHide answer
Correct answer: AAutomatic instrumentation attaches to libraries or runtimes without code changes. Manual instrumentation requires code edits, console prints are not instrumentation, and schema edits are unrelated.
Question 18
A team needs custom spans around a business operation that is not covered by automatic instrumentation. Which approach fits?
- ALogging the operation only once per day as a summary entry written to the rotated application log file
- BManual instrumentation using the OpenTelemetry API to create spans around that operation
- CTurning off telemetry collection in the SDK for the whole service process
- DWaiting for the vendor to add support for custom spans in a future release of the commercial SDK
Show answer and explanationHide answer
Correct answer: BManual instrumentation with the API creates spans for custom operations. Disabling telemetry, daily logs and waiting for support do not provide the spans.
Question 19
Which component provides the APIs that application code calls to create telemetry, separate from the implementation that exports it?
- AThe Collector's exporter only
- BThe database driver
- CThe OpenTelemetry API
- DThe Kubernetes scheduler
Show answer and explanationHide answer
Correct answer: CThe API defines how code creates telemetry, while the SDK implements processing and export. The Collector receives and forwards telemetry, and the scheduler and database driver are unrelated.
Question 20
Which component implements the behavior behind the OpenTelemetry API, including sampling, batching, and exporting telemetry?
- AThe OpenTelemetry SDK
- BThe browser's developer tools
- CA printer driver
- DThe DNS resolver
Show answer and explanationHide answer
Correct answer: AThe SDK implements processing, sampling, batching and export. Browser tools, printer drivers and DNS resolvers are unrelated.
Question 21
A service must pass the trace context to a downstream HTTP call so that the downstream spans join the same trace. Which standard header is used by default?
- AX-Random-ID
- BContent-Length
- CAccept-Encoding
- Dtraceparent
Show answer and explanationHide answer
Correct answer: DThe W3C traceparent header carries trace context between services. The other headers do not carry trace identity.
Question 22
Context propagation is broken and each service shows a separate trace. What is the most likely cause?
- AThe service runs too many replicas behind a load balancer with sticky sessions disabled
- BTrace context is not extracted or injected at a service boundary, such as a message queue or HTTP client
- CThe service name is too long and exceeds the 63-character limit for names that the backend indexes
- DThe metrics dashboard is not refreshed often enough, so panels show stale values
Show answer and explanationHide answer
Correct answer: BMissing context injection or extraction at boundaries separates traces. Name lengths, replica counts and dashboard refreshes do not break trace linkage.
Question 23
Which attribute type is used to attach contextual details such as a customer tier to a span?
- AHistogram bucket boundary
- BSampling decision flag
- CSpan attribute
- DResource detector plugin only
Show answer and explanationHide answer
Correct answer: CSpan attributes attach contextual key-value details to spans. Histogram boundaries, detector plugins and sampling flags serve other purposes.
Sampling and Performance (7 questions)
Question 24
A service needs its traces sampled at a fixed ratio, while still propagating the trace context to downstream services so they can make their own decisions. Which behavior is correct?
- APropagating the sampling decision in the trace context so downstream services respect it
- BIgnoring the sampling decision so each downstream service samples independently of the parent span
- CDropping the trace context header at the service boundary before the outbound call
- DDeferring sampling to the database layer after spans have been stored
Show answer and explanationHide answer
Correct answer: APropagating the sampling decision keeps traces consistent across services. Ignoring decisions creates partial traces, dropping context breaks linkage, and database-only sampling does not apply to the whole trace.
Question 25
A team wants to measure how many spans are dropped by the Collector due to memory limits. Which signal helps detect this?
- AThe application's source code comments and inline docstrings
- BThe backend's dashboard color theme and default panel layout
- CThe number of production deployments per week for each team
- DCollector internal metrics for refused or dropped data
Show answer and explanationHide answer
Correct answer: DCollector internal metrics report refused and dropped telemetry. Source comments, themes and deployment counts do not measure drops.
Question 26
Which metric name convention helps monitoring teams find related instruments quickly?
- AUsing a consistent namespace prefix and descriptive names with units
- BChanging metric names with every version release to match the new build numbering
- CUsing random alphanumeric characters in metric names
- DNaming metrics after the office location and floor number
Show answer and explanationHide answer
Correct answer: AConsistent prefixes and descriptive names with units help discovery and reuse. Random, location-based and frequently changed names reduce clarity.
Question 27
Which two practices help keep trace data cost-effective? (Choose two.)
- ALimiting attribute values with high cardinality
- BRecording full request payloads on every span
- CKeeping every span forever
- DDuplicating spans in several pipelines
- ESampling traces appropriately
Show answer and explanationHide answer
Correct answer: A, ESampling and limiting high-cardinality values control volume and cost. Full payloads, indefinite retention and duplication all raise cost.
Question 28
A team wants to reduce cost by sampling only traces of successful requests while keeping all errors. Which sampling approach is most appropriate?
- ATail sampling with a policy that keeps errors and samples successful traces at a lower rate
- BHead sampling at a fixed 1 percent rate with no error-based policy configured
- CDropping every trace from the store once it is more than one hour old, regardless of its status code
- DKeeping every trace in full without applying a sampling policy anywhere
Show answer and explanationHide answer
Correct answer: ATail sampling can keep all errors and sample successful traces, meeting both goals. Head sampling without error policy can drop errors, daily dropping loses data, and no sampling ignores cost.
Question 29
A high-volume service emits many similar logs per second. Which practice reduces volume while keeping useful information?
- APrinting every log line to the console in the production environment
- BWriting logs to disk just once per calendar year to conserve space
- CSampling or aggregating repetitive logs and keeping error-level logs unsampled
- DDropping warnings and errors from the pipeline during peak traffic hours
Show answer and explanationHide answer
Correct answer: CSampling repetitive logs and keeping errors unsampled reduces volume while preserving important information. Console printing, yearly writes and dropping errors remove needed data.
Question 30
A team sees that metric cardinality is growing after a code change added a new attribute. What should they do first?
- ADeleting the monitoring system and its alerting and paging rules
- BIgnoring cardinality because a metric is a cheap aggregate that carries no per-request storage cost
- CAdding more storage to the metrics backend without reviewing the cardinality of the new label
- DReviewing the attribute and removing it from metrics if it has unbounded values
Show answer and explanationHide answer
Correct answer: DRemoving unbounded attributes from metrics addresses the root cause. Adding storage, deleting monitoring and ignoring cardinality do not solve the problem.