AWS X-Ray Flashcards

1
Q

X-Ray Advantages

A
  • Troubleshooting performance
  • understand dependencies in microservice
  • pinpoint service issues
  • review request behavior
  • find error and exceptions
  • meeting SLA times
  • where I am throttled
  • identify users that are impacted
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

X-Ray Enablement

A
  • Install the X-Ray Daemon Or enable AWS Integration
  • each application must have IAM right to right data to X-ray
  • AWS Lambda and other services run X-Ray
  • X-Ray daemon works a low level UDP packet interceptor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

X-Ray Instrumentation

A
  • Instrumentation: means the measure of production performance, diagnose errors, and to write trace information
  • to instrument your application code, use the X-Ray SDK
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

X-Ray: Segments

A

Each application / service will send them

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

X-Ray: Subsegments

A

If you need more details in your segment

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

X-Ray: Trace

A

Segments collected together from an end-to-end trace

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

X-Ray: Sampling

A

Decrease the amount of requests sent to X-Ray, reduce cost

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

X-Ray: Annotations

A

Key Value pairs used to index traces and use with search filters

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

X-Ray: Metadata

A

Key Value pairs NOT indexed, NOT used for searching

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

X-Ray: Sampling Rules

A
  • you control the amount of data you record
  • you can modify sampling rules without changing your code
  • be default the x-ray SDK records the first request each second and 5% of any additional requests
  • one request per second is the reservoir which ensure that at least one trace is recorded each second as long as the is service requests
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

X-Ray: GetServiceGraph

A

Main graph

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

X-Ray: BatchGetTraces

A

Retrieves a list of traces specified by ID

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

X-Ray: GetTraceSummaries

A

Retrieves IDs and annotations for traces available for a specific time

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

X-Ray: GetTraceGraph

A

Retrieves a service graph for one or more specific trace

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

X-Ray: Elastic Beanstalk

A
  • Beanstalk includes the X-Ray daemon
  • set option in console or with configuration file (in .ebextenstions/X-ray-daemon.config)
  • application code is instrumented with x-ray SDK
    NOTE: X-ray Daemon not provided for Multcontainer Docker
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

X-Ray: ECS Integration Options

A
  • Container as a Daemon: runs on the EC2 cluster where applications are running
  • Container as a Side Car: runs right next to the application
17
Q

X-Ray: Task Definition

A
  • Containers must be linked at the network layer by the ports.
  • Container w/ Daemon works on port 2000
  • Container w/ App has an Environment variable AWS_XRAY_DAEMON_ADDRESS with the value: X-ray-daemon:2000
18
Q

Which of the following does NOT help you with debugging?

  • X-Ray Daemon
  • X-Ray Sampling
  • EC2 Instance Role
  • CloudTrail
A
  • X-Ray Sampling

It’s a sampling algorithm to determine which requests get traced.