X-Ray Flashcards
This deck aims to help retain concepts related to the X-Ray service.
Which AWS service is used to collect application traces and provides tools for viewing, filtering, and gaining insights into that data to identify issues and optimization opportunities?
AWS X-Ray
What AWS X-Ray key-value pairs, with types such as string, number, or Boolean, are indexed for use with filter expressions and are used to group traces?
Annotations
What AWS X-Ray key-value pairs can have values of any type, including objects and lists, but are not indexed for use with filter expressions and store additional trace data?
Metadata
When testing an application locally using X-Ray Daemon, which option skips checking for EC2 instance metadata?
-o
option./xray -o -n us-east-2
What AWS X-Ray feature allows you to control the number of requests recorded based on specific criteria, modifying sampling behavior dynamically?
Sampling rules
What are the required fields in an AWS X-Ray segment?
- name
- id
- trace_id
- start_time
- end_time
- in_progress
What are the optional fields in an AWS X-Ray segment?
- service
- user
- origin
- parent_id
- http
- aws
- error
- throttle
- fault
- cause
- annotations
- metadata
- subsegments
What is the default port on which the AWS X-Ray Daemon listens?
2000
Can the AWS X-Ray Daemon port be changed?
Yes, it can be changed during configuration using the CLI option ‘–bind’
How many requests does AWS X-Ray record by default using sampling rules?
By default, X-Ray records the first request each second, and five percent of any additional requests
What is the purpose of the AWS X-Ray AWS_XRAY_DAEMON_ADDRESS
env variable?
It sets the host and port of the X-Ray daemon listener, overriding the default 127.0.0.1:2000
What is the purpoase of the AWS X-Ray AWS_XRAY_TRACING_NAME
env variable?
It defines the service name used for X-Ray segments
What happens when AWS X-Ray AWS_XRAY_DEBUG_MODE
is set to TRUE?
The SDK outputs logs to the console instead of requiring a logger configuration
How AWS X-Ray AWS_XRAY_CONTEXT_MISSING
env variable should be configured to prevent exceptions?
Set to LOG_ERROR
What AWS X-Ray feature helps you collect data across multiple AWS accounts and publish it into a central account?
Annotations
What are key-value pairs used in AWS X-Ray to store data in a trace that isn’t needed for searching?
Metadata
What term is used in AWS X-Ray for data sent by computing resources that includes the resource’s name, request details, and work details?
Segments
What mechanism does the X-Ray SDK use to ensure efficient tracing and select which requests to trace?
Sampling
How can AWS X-Ray publish tracing data to a different AWS account?
The X-Ray agent can assume an IAM role that allows it to publish tracing data into a central AWS account, enabling centralized monitoring of distributed applications