exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 223 discussion

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?

  • A. Add custom attributes as annotations in the segment document.
  • B. Add custom attributes as metadata in the segment document.
  • C. Add custom attributes as new segment fields in the segment document.
  • D. Create new sampling rules that are based on custom attributes.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
albert_kuo
8 months, 3 weeks ago
Selected Answer: A
"user-specified custom attributes" means custom annotations
upvoted 1 times
...
65703c1
1 year ago
Selected Answer: A
A is the correct answer.
upvoted 2 times
...
KarBiswa
1 year, 3 months ago
Selected Answer: A
https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-segment.html#:~:text=Annotations%20are%20key%2Dvalue%20pairs%20with%20string%2C%20number%2C%20or%20Boolean%20values.%20Annotations%20are%20indexed%20for%20use%20with%20filter%20expressions.%20Use%20annotations%20to%20record%20data%20that%20you%20want%20to%20use%20to%20group%20traces%20in%20the%20console%2C%20or%20when%20calling%20the%20GetTraceSummaries%20API.
upvoted 2 times
...
SerialiDr
1 year, 4 months ago
Selected Answer: A
Annotations in AWS X-Ray are key-value pairs that are indexed for use with filter expressions. This means that you can use annotations to add custom attributes to your trace data, which can then be queried using X-Ray filter expressions. Annotations are used for values that you want to use for searching, filtering, or creating groups. By adding these custom attributes as annotations, the developer can effectively use filter expressions to limit the returned results based on these attributes.
upvoted 4 times
...
TanTran04
1 year, 6 months ago
Selected Answer: A
https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-java-segment.html filter expressions => annotations
upvoted 2 times
...
Jeff1719
1 year, 6 months ago
Selected Answer: A
Annotations are indexed, used for filtering, unlike metadata
upvoted 3 times
...
jingle4944
1 year, 7 months ago
Selected Answer: 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
upvoted 2 times
...
PrakashM14
1 year, 7 months ago
Selected Answer: A
To filter the results in AWS X-Ray using custom attributes, the developer should add custom attributes as annotations in the segment document.
upvoted 1 times
...
Claire_KMT
1 year, 7 months ago
Selected Answer: 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.
upvoted 3 times
...
Claire_KMT
1 year, 7 months ago
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.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...