OpenTelemetry Certified Associate (OTCA) free question 2 / 10 · Domain 1: Fundamentals of Observability
An instrumentation scope is identified by a tuple. Which element of that tuple is not optional?
- The version of the library or module that emitted the data
- The schema_url of the semantic conventions in use by the library
- The name, which should identify the logical unit of software
- The attributes that describe the scope and its logical unit
Show the answer and explanation
Answer: C
Why this is correct
The page says a scope is identified by a (name, version, schema_url, attributes) tuple, "where version, schema_url, and attributes are optional." That leaves the name as the one required element, and the name should uniquely identify the logical unit of software, for example the fully qualified name of a library, class, or module.
Why the other options are wrong
"The version of the library or module that emitted the data" … The page lists version as optional, together with schema_url and attributes.
"The schema_url of the semantic conventions in use by the library" … The schema_url is optional. Only the name has to be supplied.
"The attributes that describe the scope and its logical unit" … Attributes are optional elements of the scope tuple.
Key points
Give every tracer, meter, and logger a name. Add a version when you have one.