DVA-C02 · Question #238
An application uses AWS X-Ray to generate a large amount of trace data on an hourly basis. A developer wants to use filter expressions to limit the returned results through user-specified custom attri
The correct answer is A. Add custom attributes as annotations in the segment document.. If you add annotations with the X-Ray SDK, you can also filter based on the presence of an annotation key or the value of a key. https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html
Question
An application uses AWS X-Ray to generate a large amount of trace data on an hourly basis. A developer wants to use filter expressions to limit the returned results through user-specified custom attributes. How should the developer use filter expressions to filter the results in X-Ray?
Options
- AAdd custom attributes as annotations in the segment document.
- BAdd custom attributes as metadata in the segment document.
- CAdd custom attributes as new segment fields in the segment document.
- DCreate new sampling rules that are based on custom attributes.
How the community answered
(32 responses)- A88% (28)
- B6% (2)
- C3% (1)
- D3% (1)
Explanation
If you add annotations with the X-Ray SDK, you can also filter based on the presence of an annotation key or the value of a key. https://docs.aws.amazon.com/xray/latest/devguide/xray-console-filters.html
Community Discussion
No community discussion yet for this question.