
Answer-first summary for fast verification
Answer: By adding custom attributes as annotations in the segment document.
The correct answer is A. In AWS X-Ray, annotations are key-value pairs that are indexed and can be used with filter expressions to search and group trace data. By adding custom attributes as annotations in the segment document, developers can effectively use these attributes for filtering. This is supported by the AWS documentation and multiple user confirmations.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
In AWS X-Ray, how can a developer apply filter expressions to reduce trace data results using custom attributes?
A
By adding custom attributes as annotations in the segment document.
B
By adding custom attributes as metadata in the segment document.
C
By adding custom attributes as new fields in the segment document.
D
By creating sampling rules based on the custom attributes.
No comments yet.