Flashcardsfor IT Certifications

D4: Instrumenting Code: Metrics, Logs & Traces

Google Cloud Professional Cloud Developer exam practice questions · 10 flashcards

Question
What are the three pillars of observability?
1 / 10

Tip: Space flips the card, ← / → navigate.

Last updated: · Report an error on this page

Show all 10 Instrumenting Code: Metrics, Logs & Traces practice questions and answers
  1. What are the three pillars of observability?
    Metrics, logs and traces.
  2. What is OpenTelemetry?
    Open standard and SDKs for collecting traces, metrics and logs.
  3. Recommended way to instrument apps?
    OpenTelemetry exporting to Google Cloud Observability.
  4. What is structured logging?
    Logs as JSON with fields like severity and message.
  5. How do Cloud Run logs reach Cloud Logging?
    Write to stdout/stderr; they're collected automatically.
  6. How to create custom metrics?
    OpenTelemetry/Monitoring API or log-based metrics.
  7. Why include severity in logs?
    Filter and alert by importance.
  8. What should be logged?
    Errors, key events and context IDs, not secrets or PII.
  9. Why add request IDs?
    Correlate logs for a single request.
  10. What does Cloud Trace show?
    Latency of requests across services as spans.