X-Ray Flashcards

1
Q

What is X-Ray

A

Collects data about requests that your app serves and provides tools you can use to view, filter, and gain insights into that data to identify issues for oppertunities for optimization.

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

What detailed info can you see with X-Ray?

A

Requests

Response

Calls that your app makes to downstream AWS Resources, microservices, DB and HTTP web APIs

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

What is the X-Ray SDK

A

Provides Inceptors to add to your code to trace incoming HTTP requests.

Client handlers to instrument AWS SDK clients your app to call other AWS services.

An HHTP client is used to instrument calls to internal and external HTTP web services

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

Services that have X-Ray Integration

A
ELB
Lambda
API Gateway
EC2
Elastic Beanstalk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

X-Ray Supported Lanagues

A
Java
Go
Node.js
Python
Ruby
.net
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

If you want to filter segments what should you do?

A

Put custom attributes in annotations

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

Traces defined by the same filtered expression X-Ray

A

Groups

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

Key-value pairs that can be filtered X-Ray

A

Annotations

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

Key-Value pairs of other types(lists) that cannot be indexed. X-Ray

A

Metadata

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

What information does a segment provide

A

The name of compute resource running your application logic.

Details about the request

Details about the work done

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

What info does a subsegment provide

A

Granular timing info and downstream calls that your app made to fulfill org request.

Can also include more details about call to a microservice, external HTTP API, or SQL database

Subsegment is added to a segment

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

All segments generated by a single request

A

Trace

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

What is a Tracing Header?

A

In HTTP request header. X-Amzn-Trace-Id can originate from the X-Ray SDK, an AWS service or client request

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

JSON document that describes services and resources used in your app. Generated by X-Ray. And can be used to generate visualization or a service map.

A

Service Graph

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

How to configure x-ray in Elastic Beanstalk

A

use x-ray-dameon.config file to install Dameon

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

How to configure X-Ray in other apps (not Elastic Beanstalk)

A

Create script that will configure the dameon

17
Q

2 env variables used by Lambda to communicate with X-Ray

A

_X_AMXN_TRACE_ID

AWS_XRAY_CONTEXT_MISSING