Datadog-APM-and-Distributed-Tracing-Fundamentals practice question 14 of 25
What sampling percentage will take effect if you set DD_TRACE_SAMPLE_RATE to 0.2
Full set: 180 questionsCorrect Answer:
A. 20%
Explanation
DDTRACESAMPLERATE expects a decimal fraction (0-1). 0.2 corresponds to 0.2 × 100 = 20 % of traces being kept.
Why Incorrect
B. 0.20 % equals a 0.002 fraction; not how 0.2 is interpreted.
C. 2 % would require 0.02, not 0.2.
D. 0 % would require the value 0.
References
1. Datadog Docs – Trace Sampling, “Global sampling rate”, example DDTRACESAMPLERATE=0.2 # 20% (https://docs.datadoghq.com/tracing/tracesampling/, 2023-09-15).
2. Datadog PHP APM Env-vars, Section “DDTRACESAMPLERATE” (https://docs.datadoghq.com/tracing/setupoverview/setup/php/, ¶3).
Keep practicing
Take the free Datadog-APM-and-Distributed-Tracing-Fundamentals practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other Datadog-APM-and-Distributed-Tracing-Fundamentals practice questions
- Question 1Which statement is true for trace metrics?
- Question 2Your web service has some 500 Internal Server Error showing up on the trace explorer page…
- Question 3What does the following code snippet do for RUM React Native Monitoring? config.firstPart…
- Question 4Your food ordering portal had an incident last week. You would like to offer a discount t…
- Question 5Which of the following actions require creating facets first?
- Question 6How long are traces retained?
