D4: Correlating Traces Across Services
Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards
Question
What is a trace?
1 / 10
Tip: Space flips the card, ← / → navigate.
Show all 10 Correlating Traces Across Services practice questions and answers
- What is a trace?End-to-end record of a request across services.
- What is a span?A single operation within a trace.
- What is a trace ID?Unique identifier shared by all spans of one request.
- How is trace context propagated?HTTP headers such as W3C traceparent (or X-Cloud-Trace-Context).
- How to link logs to traces?Set logging.googleapis.com/trace (projects/PROJECT/traces/TRACE_ID) in structured logs.
- Why propagate context to downstream calls?Keep spans in one trace across services.
- Does OpenTelemetry propagate context automatically?Yes, with instrumented libraries.
- What is span ID used for?Identify parent-child relationships between spans.
- How to view correlated logs for a trace?Open the trace in Cloud Trace and view associated logs.
- Why sample traces?Reduce overhead and cost while keeping visibility.