Bird
0
0

Why does Cloud Trace use sampling instead of tracing every request in high-traffic applications?

hard📝 Conceptual Q10 of 15
GCP - Cloud Monitoring and Logging
Why does Cloud Trace use sampling instead of tracing every request in high-traffic applications?
ABecause tracing every request is not technically possible
BBecause Cloud Trace only supports a fixed number of traces per day
CTo avoid tracing requests from certain users
DTo reduce overhead and storage costs while still capturing representative latency data
Step-by-Step Solution
Solution:
  1. Step 1: Understand sampling purpose

    Sampling reduces performance impact and storage needs by tracing a subset of requests.
  2. Step 2: Rule out incorrect reasons

    Tracing every request is possible but costly; Cloud Trace does not limit by user or fixed count.
  3. Final Answer:

    Sampling reduces overhead and storage while capturing latency -> Option D
  4. Quick Check:

    Sampling reason = B [OK]
Quick Trick: Sampling balances data detail with cost and performance [OK]
Common Mistakes:
  • Believing tracing every request is impossible
  • Thinking Cloud Trace limits traces by user or fixed count

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More GCP Quizzes