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 questions
Answer options
A: 20% Correct answer
B: 0.20%
C: 2%
D: 0%
Correct 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).

Scroll to Top