Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A team of DevOps engineers is redesigning the observability architecture for a distributed microservices application running on Google Cloud. The application currently produces hundreds of gigabytes of unstructured string logs per day, experiences high Cloud Trace ingestion costs due to un-sampled tracing, and struggles with query latency during production incident investigations.
Which strategy should the team implement to optimize observability telemetry for efficient troubleshooting while balancing operational costs?
Structured observability is an engineering practice where application logs, metrics, and distributed traces are emitted in standardized, machine-readable formats. Instead of writing raw text strings, applications output JSON structured payloads with well-defined metadata fields such as severity, message, timestamp, and distributed tracing context (logging.googleapis.com/trace and spanId). Combined with tail-based trace sampling and disciplined metric design, this creates a cost-effective, high-fidelity troubleshooting ecosystem.
severity (e.g., INFO, WARNING, ERROR) without complex, CPU-intensive runtime parsing. This accelerates log querying, filtering, and automated alerting during incidents.trace_id and span_id) directly into the JSON log payload correlates log entries with distributed trace spans automatically, enabling engineers to jump from a latency spike in a trace view straight to the relevant diagnostic logs.This approach strikes the ideal balance between telemetry fidelity and cost control. It structures diagnostic data so that automated tools and engineers can pinpoint root causes rapidly while eliminating redundant telemetry spend.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.