Topic 1 Question 223
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?
Add custom attributes as annotations in the segment document.
Add custom attributes as metadata in the segment document.
Add custom attributes as new segment fields in the segment document.
Create new sampling rules that are based on custom attributes.
ユーザの投票
コメント(6)
- 正解だと思う選択肢: B
B. Add custom attributes as metadata in the segment document.
Custom attributes are best added as metadata in the segment document because X-Ray filter expressions can use metadata to filter traces. Annotations and new segment fields are not typically used for filtering traces in this context.
👍 3Claire_KMT2023/10/30 - 正解だと思う選択肢: A
Annotations are indexed, used for filtering, unlike metadata
👍 3Jeff17192023/11/30 - 正解だと思う選択肢: A
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
👍 2jingle49442023/11/07
シャッフルモード