Home / OpenTelemetry Certified Associate (OTCA) / Mock exam
OpenTelemetry Certified Associate (OTCA) Exam-style mock test

OpenTelemetry Certified Associate (OTCA) Practice Exams|Practice test

Full explanations Exam format Pass line 75%
33 USD One-time · lifetime access
Enroll →

Sample questions

Example1 · Fundamentals of Observability, Signals, and Semantic Conventions
A B2B SaaS invoicing platform has dashboards with fixed CPU and latency thresholds, yet when a new tenant triggers an unseen failure mode, engineers cannot explain why checkout slowed without shipping new code. Which statement best explains how observability differs from their current monitoring approach?
・Monitoring replaces the need for structured logs, so observability is only about collecting more verbose debug logs from each service
Incorrect. Observability does not replace logs with more debug logs; it is about being able to interrogate system state, and structured logs remain one signal among several.
✓Observability lets teams ask arbitrary new questions about system state from existing telemetry, without predefining every failure in advance
Correct. Observability is the ability to understand a system's internal state and answer novel questions from its external telemetry, rather than only matching predefined conditions.
・Observability simply means adding more predefined dashboards and alert thresholds so that every possible outage is captured ahead of time
Incorrect. Adding more fixed dashboards and thresholds is still the predefine-everything model of monitoring and cannot cover unknown-unknown failure modes.
・Observability is a paid vendor tier of monitoring that automatically fixes incidents
Incorrect. Observability is a property of a system's telemetry, not a vendor tier, and it does not automatically remediate incidents.
Explanation
Monitoring checks known conditions against predefined thresholds; observability enables asking new, unanticipated questions from rich telemetry, which is what this team lacks.
Example2 · OpenTelemetry API and SDK: Distributed Tracing
At the B2B SaaS firm Ledgerly, the billing service initializes OpenTelemetry at startup and now needs to create spans. A developer asks how application code should acquire the object used to start spans. What is the recommended approach?
✓Call get_tracer on the configured TracerProvider, passing an instrumentation scope name and version
Correct. A Tracer is obtained from the TracerProvider via get_tracer, supplying an instrumentation scope (name and optional version) so telemetry can be attributed to that library.
・Construct a Tracer object directly with the new keyword in each module that emits spans
Incorrect. The API does not expose a public Tracer constructor; tracers must come from a provider rather than being instantiated directly.
・Read the tracer instance from an environment variable set by the Collector at boot time
Incorrect. The Collector does not set tracer instances in environment variables, and tracers are not transferred through the process environment.
・Fetch the Tracer by querying the exporter for the most recently registered pipeline handle
Incorrect. Exporters do not hand out tracers; the provider is the factory responsible for creating and naming tracers.
Explanation
Application and library code acquires a Tracer by calling get_tracer on the TracerProvider with an instrumentation scope name and version.
Example3 · OpenTelemetry API and SDK: Metrics and Logs
At a B2B SaaS company, a platform team instruments its billing API to record the number of invoices processed. The value only ever increases over the lifetime of the process and is reported on each successful invoice. Which OpenTelemetry metric instrument should the team use?
・A Gauge, which asynchronously observes the latest invoice total on each collection interval using a callback function
Incorrect. A Gauge captures a non-additive latest value; a running total of processed invoices is additive and monotonic, not a sampled gauge.
✓A Counter, which records monotonically increasing, non-negative additive values
Correct. A Counter is the synchronous instrument for additive values that only increase, which matches a monotonic invoice count.
・An UpDownCounter, which records additive values that can rise and fall such as an active queue depth
Incorrect. An UpDownCounter is for additive values that can decrease, which does not fit a count that never decreases.
・A Histogram, which records a distribution of values and reports bucketed counts for latency measurements
Incorrect. A Histogram is for recording distributions of values such as request durations, not a simple monotonic total.
Explanation
A Counter is the correct synchronous additive instrument for a value that only ever increases, such as a cumulative count of processed invoices.
Example4 · The OpenTelemetry Collector: Receivers, Processors, Exporters
A healthcare services firm instruments its patient-portal services with the OpenTelemetry SDK, which pushes OTLP data over gRPC to a Collector running as a gateway. Which Collector component is responsible for accepting that incoming OTLP traffic and bringing the telemetry into the pipeline?
・A processor, because it is the first component that sees data flowing through the configured service pipeline before export
Incorrect. Processors operate on data after a receiver has ingested it; they do not accept incoming traffic from clients.
✓A receiver, which listens on the configured endpoint and ingests the data
Correct. A receiver listens on a configured endpoint (such as the OTLP gRPC port) and is how data enters the Collector pipeline.
・An exporter, since it opens the network connection that moves telemetry between the SDK and the Collector
Incorrect. Exporters send data out of the Collector to a backend; they do not accept inbound telemetry from instrumented services.
・A connector, which translates OTLP into the Collector's internal pipeline representation on arrival
Incorrect. Connectors join two pipelines together and are not the component that accepts external client traffic.
Explanation
Receivers are the entry point of the Collector pipeline, listening on endpoints and ingesting telemetry; processors, exporters, and connectors act later or elsewhere in the flow.
Example5 · Instrumentation, Context Propagation, Pipelines, and Debugging
A healthcare firm's patient-portal team runs a Java scheduling service and wants baseline traces for inbound HTTP and JDBC calls without changing application code before a compliance deadline. Which instrumentation approach fits best?
✓Attach the OpenTelemetry Java agent to the JVM so supported libraries are instrumented automatically at startup
Correct. The Java agent performs bytecode-level auto-instrumentation of supported HTTP and JDBC libraries without code changes.
・Rewrite every handler to open and close spans manually around each database and HTTP operation in the code
Incorrect. Manual span coding meets the goal but violates the no-code-change constraint and the tight deadline.
・Disable the SDK and forward raw application logs to the Collector for later trace reconstruction instead
Incorrect. Disabling the SDK and reconstructing traces from raw logs is not how OpenTelemetry produces traces.
・Add custom span attributes only, leaving the framework and client libraries entirely uninstrumented
Incorrect. Adding attributes alone does not create the HTTP and JDBC spans the team needs.
Explanation
Auto-instrumentation via the Java agent produces baseline HTTP and database spans with zero source changes, which is ideal under a deadline.
Example6 · Fundamentals of Observability, Signals, and Semantic Conventions
A healthcare services firm runs a patient-scheduling platform and wants to measure request throughput and error rates aggregated over time, kept cheap to store at high cardinality limits, for its SRE dashboards. Which OpenTelemetry signal is the most appropriate primary choice for this goal?
・Logs, because they capture discrete timestamped events emitted by the scheduling service as they occur
Incorrect. Logs capture discrete events but are not the aggregated numeric view suited for throughput and error-rate dashboards.
✓Metrics, because they represent numeric measurements aggregated over intervals
Correct. Metrics are numeric measurements aggregated over time, ideal for throughput and error-rate trends on dashboards.
・Traces, because they record the end-to-end path of a single scheduling request across all of the backend microservices it touches
Incorrect. Traces show per-request paths across services, not the time-aggregated numeric view the team needs.
・Baggage, because it carries contextual key-value pairs alongside the request as it propagates through the system
Incorrect. Baggage propagates contextual key-value data; it is not a telemetry signal for aggregated measurements.
Explanation
Metrics are the signal designed for numeric measurements aggregated over time intervals, making them the right fit for throughput and error-rate dashboards.
Example7 · Fundamentals of Observability, Signals, and Semantic Conventions
At the retailer BrightCart, the platform team wants to measure how long each checkout request takes as it flows through the cart, payment, and inventory services, and to see the parent-child relationship between those service calls. Which OpenTelemetry signal is purpose-built to capture this end-to-end request journey across services?
・Logs, because each service already writes timestamped text records that can be grep-searched to reconstruct the full order of operations after the fact
Incorrect. Logs capture discrete events but do not inherently model the parent-child causal structure of a request spanning multiple services.
✓Traces, since spans model the per-service work and their parent-child links across the request
Correct. Traces are composed of spans that represent units of work, and their parent-child relationships reconstruct the request's path across services.
・Metrics, because counters and histograms aggregate request counts and latency distributions over fixed intervals
Incorrect. Metrics aggregate numeric measurements over time and cannot show the causal flow of a single request through services.
・Baggage, which carries arbitrary key-value context so teams can attach customer identifiers to requests
Incorrect. Baggage propagates contextual key-value data but is not a signal that records the request journey itself.
Explanation
Traces, built from spans with parent-child relationships, are the signal designed to represent a request's end-to-end path across distributed services.
Example8 · Fundamentals of Observability, Signals, and Semantic Conventions
BrightCart runs an HTTP storefront service, and the observability lead wants the attribute that records the request method to be named identically whether the data comes from the Java checkout service or the Go search service, so dashboards work across both. What does adopting OpenTelemetry semantic conventions provide in this situation?
✓A standardized, agreed-upon set of attribute names and values so telemetry is consistent and portable across languages and tools
Correct. Semantic conventions define common attribute names and values so telemetry means the same thing across languages, libraries, and backends.
・A runtime that automatically rejects any span whose attributes do not match the published convention schema before export
Incorrect. Semantic conventions are naming agreements, not an enforcement runtime that rejects nonconforming spans.
・A compression format that shrinks attribute keys to numeric codes to reduce the payload size sent to the backend
Incorrect. Conventions standardize naming, not wire compression; they do not encode keys into numeric codes.
・A sampling policy that drops spans lacking the conventional attributes to keep storage costs predictable
Incorrect. Conventions do not define sampling behavior and do not cause spans to be dropped.
Explanation
Semantic conventions standardize attribute names and values, giving telemetry consistent meaning and portability across languages and tooling.
Example9 · Fundamentals of Observability, Signals, and Semantic Conventions
BrightCart's SRE wants a single dashboard tile showing the total number of orders placed per minute and the 95th-percentile latency of the payment API, aggregated over time rather than per individual request. Which OpenTelemetry signal best fits this requirement?
・Traces, because each span records a duration and those span durations can later be summed to produce a per-minute throughput figure
Incorrect. Traces record individual requests; aggregating span durations is not their purpose and is far less efficient than metrics.
✓Metrics, since instruments like counters and histograms aggregate numeric measurements over time
Correct. Metrics instruments such as counters and histograms are designed to aggregate numeric measurements over time for rates and distributions.
・Logs, because structured log lines can be counted and bucketed by the backend to approximate rates
Incorrect. Logs record discrete events and are not an efficient aggregation mechanism for throughput or latency percentiles.
・Baggage, because propagated counters travel with the request and accumulate totals downstream
Incorrect. Baggage carries contextual key-value data and does not aggregate measurements.
Explanation
Metrics are the signal built to aggregate numeric measurements over time, making them ideal for throughput counts and latency percentiles.
Example10 · The OpenTelemetry Certified Associate (OTCA) exam topics
An insurance subsidiary scrapes metrics from its instrumented microservices using a Collector configured with the Prometheus receiver. How does this receiver obtain telemetry from the targets?
・It opens a gRPC stream that each target uses to continuously push metric samples to the Collector
Incorrect. The Prometheus receiver pulls data rather than having targets push it over a gRPC stream.
✓It periodically scrapes metrics endpoints exposed by the configured targets
Correct. The Prometheus receiver works on a pull model, periodically scraping metrics endpoints exposed by targets.
・It receives metrics forwarded from another Collector acting as an aggregation gateway over OTLP
Incorrect. Forwarding from another Collector over OTLP describes the OTLP receiver, not Prometheus scraping.
・It queries a central time-series database on an interval and copies the stored samples into the pipeline
Incorrect. The Prometheus receiver scrapes application endpoints directly; it does not read from a time-series database.
Explanation
The Prometheus receiver follows Prometheus's pull model, scraping HTTP metrics endpoints on a schedule rather than receiving pushed data.
Example11 · Fundamentals of Observability, Signals, and Semantic Conventions
A payments platform at a financial services company needs to measure the request rate and error ratio of its card-authorization API over time so dashboards can plot aggregated trends. Which OpenTelemetry signal is the best fit for this requirement?
・Logs, because each authorization produces a timestamped textual record that can be counted later
Incorrect. Logs capture discrete event records and are not optimized for pre-aggregated rate and ratio measurements over time.
・Traces, since they capture the full request path across the authorization microservices
Incorrect. Traces describe individual request journeys rather than aggregated counts and ratios across many requests.
✓Metrics
Correct. Metrics are numeric measurements aggregated over time, ideal for request rate and error ratio dashboards.
・Baggage, which propagates key-value pairs across service boundaries for correlation
Incorrect. Baggage carries contextual key-value data for propagation and is not a telemetry signal for measurement.
Explanation
Metrics are the signal designed for aggregated numeric measurements such as rates and ratios over time.
Example12 · Fundamentals of Observability, Signals, and Semantic Conventions
At Harbor Industrial Supply, an engineer needs to follow a single customer order as it moves through the web gateway, the inventory service, and the shipping service to find where latency accumulates. Which OpenTelemetry signal is purpose-built to represent this end-to-end request flow across services?
・Metrics, which capture numeric aggregates over a period
Incorrect. Metrics give aggregated numbers but cannot reconstruct one order's path across the services.
✓Traces, which record the path of a request across services
Correct. Traces model a request's journey as linked spans across services, exposing where latency builds up.
・Logs, which store discrete timestamped event records emitted by each individual component involved
Incorrect. Logs capture isolated events and do not inherently connect the steps of one request end to end.
・Baggage, which carries key-value context between spans
Incorrect. Baggage propagates contextual key-values but is not itself the signal that represents the request flow.
Explanation
Traces, composed of spans, are the signal designed to represent the end-to-end flow of a single request across multiple services.
Example13 · Fundamentals of Observability, Signals, and Semantic Conventions
Harbor Industrial Supply's platform team argues that their dashboards of CPU and memory already give them 'observability.' An SRE pushes back, explaining what observability truly means. Which statement best captures the goal of observability in a distributed system?
✓Inferring a system's internal state from the external telemetry it emits
Correct. Observability is the ability to understand a system's internal state from its external outputs like traces, metrics, and logs.
・Collecting the maximum possible volume of logs from every running host
Incorrect. Sheer log volume is not the aim; understanding internal state from outputs is.
・Replacing the need for alerting rules by storing all raw signal data
Incorrect. Observability complements alerting rather than removing the need for them.
・Guaranteeing that a distributed system can never experience any downtime or degraded performance at all
Incorrect. Observability helps you understand and diagnose behavior; it does not promise zero downtime.
Explanation
Observability is defined as inferring internal state from externally emitted telemetry, not merely collecting data or preventing outages.
Example14 · Fundamentals of Observability, Signals, and Semantic Conventions
A telecom operator instruments its billing microservice and wants to record the total number of SMS messages charged over time so dashboards can compute per-minute rates. Which OpenTelemetry signal is the natural fit for this data?
✓Metrics, because counters aggregate numeric measurements that can be summed and rated over intervals
Correct. A counter metric aggregates numeric values and is ideal for rates computed over time intervals.
・Logs, since each SMS charge is a timestamped textual event the service writes to disk
Incorrect. Logs capture discrete event records; they are not optimized for aggregated numeric rate computation.
・Traces, because the charge flows across several services and needs correlation
Incorrect. Traces model the path of a single request across services, not aggregate counts over time.
・Baggage, which propagates key-value context between the operator's services
Incorrect. Baggage carries contextual key-value data across services; it is not a measurement signal.
Explanation
Aggregated numeric counts that are rated over intervals map to the metrics signal, specifically counters.
Example15 · Fundamentals of Observability, Signals, and Semantic Conventions
An engineer at a mobile operator is debugging why a subscriber's number-porting request is slow as it passes through an API gateway, a validation service, and a provisioning service. Which OpenTelemetry concept best represents this single request as it traverses all three services?
✓A trace composed of multiple spans, each span representing one operation in the request's journey
Correct. A trace made of linked spans represents one request flowing through multiple operations and services.
・A histogram metric that records the latency distribution of each service call
Incorrect. A histogram aggregates many latencies; it does not represent one specific request's path.
・A structured log line emitted by every service along the path of the request
Incorrect. Individual log lines are not inherently linked into a single request journey without correlation.
・A resource attribute shared by all three services involved
Incorrect. A resource attribute describes the entity producing telemetry, not the request's flow.
Explanation
A single request traversing services is modeled as a trace built from spans, one per operation.
▶ Try 10 free questions (graded)
Measure your readiness with a full mock exam
All questions · full explanations · lifetime access
Enroll(33 USD)