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