Flashcardsfor IT Certifications

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.

Last updated: · Report an error on this page

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