Monitoring and Auditing Flashcards

1
Q

What are the 4 things that CloudWatch does?

A
  • Metrics: Collect and track key metrics
  • Logs: Collect, monitor, analyze and store log files
  • Events: Send notifications when certain events occur
  • Alarms: React in real-time to metrics/events
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the 2 things X-Ray does?

A
  • Troubleshooting Application performance and Errors

- Distributed Tracing of Microservices

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

What are the 2 things Cloudtrail does?

A
  • Internal Monitoring of API calls being made

- Audit changes to AWS resources by users

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

What is a CLoudwatch Dimension?

A

It is an attribute of the metric such as instanceId, env etc

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

How many Dimensions per metric can you have?

A

10

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

What is the standard Metric Resolution (how often data is sent)?

A

Every 1 minute

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

How do you get more frequent metric resolution?

A

Enable High Resolution up to 1 second using the StorageResolution API parameter

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

How do you send metric data to CloudWatch?

A

Use the PutMetricData API call

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

What are the 2 ways to enable X-Ray?

A
  • Import the X-Ray SDK into your code

- Install the X-Ray Daemon or Enable X-Ray AWS Integration

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

What 2 things can you do if X-Ray is not working on EC2?

A
  • Ensure the EC2 IAM role has the proper permissions

- Ensure the EC2 instance is running the X-Ray Daemon

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

What 2 things should you do to enable X-Ray on LAmbda?

A
  • Ensure it has an IAM role with correct permissions

- Ensure that X-Ray is imported in the code

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

How do you enable X-Ray in Beanstalk?

A

Add a x-ray config file to the .ebextensions dir

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

What does Cloudtrail do?

A

Provides Governance, compliance and audit for your AWS account.

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

What event/API call history can you get from Cloudtrail?

A
  • Console
  • SDK
  • CLI
  • AWS Services
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

If someone deletes a service in AWS, where would you investigate that?

A

Cloudtrail

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