X-Ray Flashcards

This deck aims to help retain concepts related to the X-Ray service.

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

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
12
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
13
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
14
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
15
Q

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

A

Annotations

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

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

17
Q

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?

18
Q

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

19
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