🔥 40% Off Crucial Exams Memberships — Deal ends today!

45 minutes, 1 second remaining!

GCP Professional Cloud Architect Practice Question

Your company runs a latency-sensitive Java microservice on Google Kubernetes Engine (GKE). In production, a specific request occasionally returns a 500 error whose stack trace cannot be reproduced in staging. You need to capture the exact line of code and the values of local variables only when the error occurs, without pausing the container or increasing latency for other users. Which Google Cloud approach best meets these requirements?

  • Enable Cloud Trace sampling at 100 percent and examine the detailed spans for requests that return HTTP 500 to view variable contents.

  • Instrument additional log statements around the suspected code path, rebuild the container image, redeploy the workload, and inspect Cloud Logging for the next failure.

  • Create a conditional snapshot with Cloud Debugger on the suspected line in the service code; retrieve the captured variable state when the 500 error is triggered.

  • Run Cloud Profiler in heap and CPU modes to capture profiles during peak load and analyze them for the faulty variable values when errors occur.

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