X-Ray Flashcards

1
Q

What is needed on the EC2/ECS/Elastic Beanstalk environment/On-premise to send data to X-Ray?

A
  1. X-Ray SDK
  2. X-Ray Daemon
  3. Instrument your application using the SDK to send the required data to X-Ray, e.g. data about incoming HTTP requests to your application
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Where should the X-Ray daemon be installed?

A
  1. On premises & EC2 instances
    - Install the X-Ray daemon on you EC2 instance or on-premises server
  2. Elastic Beanstalk
    - Install the X-Ray daemon on the EC2 instance inside your Elastic Beanstalk environment
  3. Elastic Container Service
    - Install the X-Ray daemon in its own Docker container on your ECS cluster alongside your app
    - Do NOT install the X-Ray daemon on the same container as your application is running
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Give a few examples of AWS services that X-Ray integrates with.

A
  • Lambda
  • API Gateway
  • Elastic Load Balancer
  • EC2
  • Elastic Beanstalk
  • SNS
  • SQS
  • You can also instrument your own applications to send data to X-Ray
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

If you want your own application to send information to X-Ray, what can the application be running on?

A
  • EC2
  • Elastic Beanstalk environment
  • Elastic Container Service with Docker
  • On-premises system
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What kind you information can you add to make it easier to filter among your data in X-Ray?

A
  • You can use annotations to add user defined key-value pairs to your X-Ray data. This will allow you to filter, index and search within X-Ray.
  • E.g. game_name=TicTacToe, game_id=123456
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is X-Ray?

A
  • It is a way of visualizing your serverless application
  • It is a service that:
  • collects data about requests that your application serves
  • provides tools you can use to view, filter, and gain insights into that data to identify issues and opportunities for optimisation.
  • You can see detailed information not only about the request and response, but also about calls that your application makes to downstream AWS resources, microservices, databases and HTTP web APIs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What three things does the X-Ray SDK provide?

A
  • Interceptors to add to you code to trace incoming HTTP requests
  • Client handlers to instrument AWS SDK clients that your application uses to call other AWS services
  • An HTTP client to use to instrument calls to other internal and external HTTP web services
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What 6 languages are supported by X-Ray?

A

Basically all that are supported by Lambda.

  • Java
  • Python
  • Go
  • Node.js
  • .Net
  • Ruby
How well did you know this?
1
Not at all
2
3
4
5
Perfectly