20. Monitoring (CloudWatch, X-Ray, CloudTrail) Flashcards
What does distributed tracing provided by X-Ray help with?
Distributed tracing helps pinpoint where failures occur and what causes POOR PERFORMANCE.
This is especially useful for applications built using a microservices architecture.
X-Ray receives data from services as _______ .
Segments
X-Ray groups segments that have a common request into _______ .
Traces
X-Ray processes traces to generate a _______ that provides a visual representation of your app.
Service Graph
Where would you look to identify bottlenecks or latency spikes in your application?
X-Ray Service Graph
True or False: By default, the X-Ray SDK records every request made.
False.
By default, the X-Ray SDK records the first request each second, and 5% of any additional requests (you can modify this).
In X-Ray, how do you narrow down specific paths or users?
Filter Expressions
What is an X-Ray annotation?
Annotations are aggregated at the trace level and can be added to any segment/subsegment.
Annotations are key/value pairs that are INDEXED for use with filter expressions.
What is an X-Ray metadata?
Metadata are aggregated at the trace level and can be added to any segment/subsegment.
Metadata are key-value pairs that are NOT indexed. The values can be of any type, including objects and lists.
When should you use X-Ray annotations?
Use annotations to record data that you want to use to group traces in the console, or when calling the GetTraceSummaries API.
When should you use X-Ray metadata?
Use metadata to record data you want to store in the trace but don’t need to use for searching traces.
What languages does X-Ray support?
- ASP.NET
- Go
- Java
- NodeJS
- PHP
- Python
- Ruby
What is the X-Ray tracing header?
X-Amzn-Trace-Id
It identifies a trace which is passed along to downstream services
How can you utilize Groups in X-Ray?
Groups allow you to save FilterExpressions so you can quickly filter traces
What is the X-Ray throttling error code?
429 Too Many Requests