GCP Professional Cloud Architect Practice Question

A retail company runs a microservices-based checkout application on Google Kubernetes Engine. Customers report occasional spikes in checkout latency, but no obvious errors appear in Cloud Logging. You already see high-latency requests in Cloud Trace. For rapid root-cause analysis, you want engineers to open any slow trace span in the Cloud Trace UI and immediately filter Cloud Logging to show only the log entries that were written during that same request. What should you do?

  • Ensure each microservice writes structured logs that include the Cloud Trace ID in the "logging.googleapis.com/trace" field so that Cloud Logging can automatically associate log entries with their originating traces.

  • Install Cloud Profiler agents on all services so that profiler snapshots are embedded in Cloud Trace spans and can be cross-referenced with logs.

  • Enable Data Access audit logs for GKE resources so Cloud Trace will automatically attach the relevant audit log entries to each span.

  • Export both Cloud Trace and Cloud Logging data to BigQuery and join the datasets on timestamp to find logs that correspond to slow traces.

GCP Professional Cloud Architect
Analyzing and optimizing technical and business processes
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot