AWS X-Ray
AWS X-Ray allows developers to analyze and debug production distributed applications, such as e.g. Built using a microservices Lambda architecture
X-Ray allows you to see the entire request flow through the application and also shows a map of its underlying components.
X-Ray allows you to see how the application and its underlying service are performing in order to find and fix the root cause of performance problems and errors.
X-Ray can be used to analyze both production and development applications, from simple three-tier applications to complex microservices apps with thousands of services.
X-Ray can also be used to debug synchronous and asynchronous requests in distributed applications of any size.
X-Ray allows you to track requests that flow through multiple applications or services. X-Ray data can be stored locally in the processed region. Customers can then create a solution to combine the data.
X-Ray can generally retrieve and filter trace data within 30 seconds of its receipt by the service.
X-Ray stores trace information for the past 30 days. This allows you to query trace data back 30 days.
IntegrationX-Ray can be integrated with applications that run on EC2, ECS and Lambda.
X-Ray SDK automatically captures metadata from API calls to AWS services using AWS SDK
X-Ray SDK offers add-ons to MySQL and PostgreSQL drivers.
Include the language-specific XRay libraries for Elastic Beanstalk in your application code
Applications that are running on other AWS services like EC2 and ECS should install the Xray agent and instrument the codeX-Ray Core Concepts.
TraceAnX-Ray trace is a collection of data points that share the same traceID.
Trace tracks the request and assigns it a unique trace ID as it navigates through services.
Each service relays information in an application to Xray. A segment is a piece of information, and a trace a collection.
SegmentAn X–Ray segment encapsulates all data points for a single component in a distributed application, such as e.g. authorization component
Segments are system-defined and user defined data. They can be composed of one or more segments that represent remote calls from the service. For example. Database call and its result within overall request/response
AnnotationAn Xray annotation can be system-defined or user defined data
An annotation is associated with a segment. A segment can contain multiple annotations.
Annotations system-defined include data added by AWS services to the segment
Annotations user-definable are metadata that a developer adds to a segment.
ErrorsXRay errors are system annotations that are associated with a segment of a call that results is an error response.
Error contains the error message, stack trace and any additional information, such as version to associate the error file with the source file.
SamplingXRay collects data on a large number of requests instead of each request that is sent to an application. This allows for more efficient and cost-effectiveness.
X-Ray should not serve as an audit tool or compliance tool, since it does not guarantee data accuracy.
X-Ray agentXray agent collects data from log files and forwards them to Xray service for aggregation and analysis.
Agent makes it easy to send data to X-Ray services, rather than using the APIs directly.
AWS Certification Exam Practice Questions
Questions are collected via the Internet. The answers are marked according to my knowledge and understanding (which may differ from yours).
AWS services are constantly updated and the answers and questions may be out of date soon. So make sure to research accordingly.
AWS exam questions do not get updated to keep pace with AWS updates.