DVA-C02 · Question #238
DVA-C02 Question #238: Real Exam Question with Answer & Explanation
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.
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.