X-Ray Flashcards

This deck aims to help retain concepts related to the X-Ray service. (27 cards)

1
Q

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?

A

AWS X-Ray

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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?

A

Annotations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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?

A

Metadata

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

When testing an application locally using X-Ray Daemon, which option skips checking for EC2 instance metadata?

A

-o option
./xray -o -n us-east-2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What AWS X-Ray feature allows you to control the number of requests recorded based on specific criteria, modifying sampling behavior dynamically?

A

Sampling rules

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are the required fields in an AWS X-Ray segment?

A
  • name
  • id
  • trace_id
  • start_time
  • end_time
  • in_progress
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the optional fields in an AWS X-Ray segment?

A
  • service
  • user
  • origin
  • parent_id
  • http
  • aws
  • error
  • throttle
  • fault
  • cause
  • annotations
  • metadata
  • subsegments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is the default port on which the AWS X-Ray Daemon listens?

A

2000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can the AWS X-Ray Daemon port be changed?

A

Yes, it can be changed during configuration using the CLI option ‘–bind’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How many requests does AWS X-Ray record by default using sampling rules?

A

By default, X-Ray records the first request each second, and five percent of any additional requests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When using AWS X‑Ray to trace workflows, what must you remember about Application Load Balancers?

A

Application Load Balancers don’t send trace data to X‑Ray

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the purpose of the AWS X-Ray AWS_XRAY_DAEMON_ADDRESS env variable?

A

It sets the host and port of the X-Ray daemon listener, overriding the default 127.0.0.1:2000

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the purpoase of the AWS X-Ray AWS_XRAY_TRACING_NAME env variable?

A

It defines the service name used for X-Ray segments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What happens when AWS X-Ray AWS_XRAY_DEBUG_MODE is set to TRUE?

A

The SDK outputs logs to the console instead of requiring a logger configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

How AWS X-Ray AWS_XRAY_CONTEXT_MISSING env variable should be configured to prevent exceptions?

A

Set to LOG_ERROR

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How can AWS X-Ray publish tracing data to a different AWS account?

A

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

17
Q

What AWS X-Ray feature helps to collect data across multiple AWS accounts and publish it into a central account?

18
Q

What are key-value pairs used in AWS X-Ray to store data in a trace that isn’t needed for searching?

19
Q

What AWS X-Ray component represents a data block sent to X-Ray by supported services?

20
Q

What mechanism does the X-Ray SDK use to ensure efficient tracing and select which requests to trace?

21
Q

What AWS X-Ray component uniquely identifies and tracks a request across distributed services?

22
Q

What information is included in an AWS X-Ray Segment?

A
  • Host Name / IP / Alias
  • Request Details
  • Response Details
  • Work Duration (time)
  • Errors or Issues
  • Subsegments (nested requests within the segment)
23
Q

What AWS X-Ray JSON document provides a detailed view of the services and resources within an application?

A

Service Graph

24
Q

What AWS X-Ray visual tool illustrates the flow through a distributed application, including response times, request counts, errors, and issues?

25
What AWS services have native integration with AWS X-Ray, and how is integration configured?
Services require specific permissions to interact with X-Ray: - EC2: X-Ray Agent installed on the instance - ECS: Agent installed in the task - Lambda: X-Ray integration enabled in the function settings - Elastic Beanstalk: Pre-installed X-Ray Agent - API Gateway: X-Ray tracing enabled per stage - SNS/SQS: Configured to send data into X-Ray
26
What header do Application Load Balancers add to incoming HTTP requests for tracing?
X‑Amzn‑Trace‑Id
27
Do Application Load Balancers send data to AWS X‑Ray service?
ALB does not send data to X-Ray and does not appear in the service map nodes