Incident and Event Response
An application records a customer tier as AWS X-Ray segment metadata, but engineers cannot use that field in trace filter expressions. They must filter future traces by tier without increasing trace volume; what should they change?
Show the answer
Correct answerD. Record the customer tier as an annotation on each relevant segment.
AWhy not this: Higher sampling collects more traces but does not make metadata filterable and would increase trace volume.
BWhy not this: Nested metadata remains unindexed and cannot supply an annotation filter.
CWhy not this: Groups use filter expressions; they do not make unindexed metadata available for filtering.
DWhy this is right: Annotations are indexed key-value pairs that support filtering traces by attributes such as customer tier.
X-Ray indexes annotations so they can be used in trace filter expressions. Metadata holds additional trace information but is not indexed for filtering; creating a group does not make metadata searchable.