Domain 5: Monitoring Flashcards

1
Q

What is AWS CloudWatch?

A

AWS CloudWatch is a monitoring/management service which provides monitoring of metrics

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

What is a CloudWatch alarm?

A

Trigger an event when a given metric is exceeded and trigger an event. E.g. an SNS notification

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

What are the CloudWatch EC2 default host level metrics?

A

CPU, Network, Disk IO & Status Check (health)

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

What are the CloudWatch EC2 custom metrics?

A

RAM utilization, remaining disk space

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

What is the default CloudWatch EC2 monitoring inteval?

A

5 minutes

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

What is the default CloudWatch EC2 detailed monitoring inteval?

A

1 minute

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

What is the minimum CloudWatch granularity of custom metrics?

A

1 minute

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

To create custom metrics from an EC2 instance what are some of the things you need to do?

A
  1. Attach a role with the policy CloudWatchFullAccess to the EC2 instance
  2. Configure the EC2 instance to write CloudWatch logs every 5 minutes (minimum 1 minute) (can use cron job)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is AWS X-Ray?

A

Service collects data about requests that your application serves

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

Describe the X-Ray architecture

A

X-Ray SDK is installed on your EC2 instance which runs the X-Ray Daemon this communicates with the X-Ray API for information which can be viewed in the X-Ray Console

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

What services does X-Ray integrate with?

A
Elastic Load Balancing
Lambda
API G/W
EC2
AWS Elastic Beanstalk
DynamoDB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does the X-Ray SDK provide?

A

Interceptors to add to your code to trace HTTP requests

Client handlers to instrument AWS SDK

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

What languages are supported with X-Ray?

A

Java, Go, Ruby, NodeJS, Python, .NET, C#

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

How to integrate ECS with X-Ray?

A

Run the X-Ray Daemon in it’s own Docker image running alongside your application

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

What is AWS CloudTrail?

A

Great for auditing, provides logs of

IP address of client, success or failed, which user/role

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

What is AWS Config?

A

A service that enables you to assess, audit & evaluate all your resources

Provide notifications when resources deviate from given standards

17
Q

What are the CloudWatch Alarm actions available?

A

SNS publish, Email notification, auto scaling action or EC2 action

(To trigger other services you must subscribe to an SNS topic)

18
Q

How do you set up X-Ray to work with your application?

A

Add x-ray instrumentation to your application code

Install the X-ray SDK on your machine

If using ECR run the X-ray daemon in a docker image

Give the necessary permissions to the EC2 or the ECS task

19
Q

When is Kinesis Data Streams used?

A

Rapidly moving data and continuously processing the data. Great for clickstreams

20
Q

When is Kinesis Firehose used?

A

Great for loading streaming data into data stores/analytics stores.

21
Q

How long does it take for forecast-based AWS Budget alerts to be triggered?

A

Needs about 5 weeks of usage data to generate the forecasts.

22
Q

What instance types are in the free-tier?

A

t2.micro or t3.micro

23
Q

What is X-Ray sampling?

A

Modify the sampling behaviour of the amount of data that you record.

24
Q

What is AWS Config used for?

A

Dive into resource configuration histories. E.g. what did my resource look like 2 months ago?

25
Q

What are API G/W usage plans?

A

Specifies who can access API stages / methods.

Uses API keys to identify clients and throttle the connection.

26
Q

What are organization trails?

A

Logs all events for all AWS accounts in that organization.

27
Q

How to monitor ec2 instances from the cli?

A

aws ec2 monitor-instances –instances-ids xxxx

28
Q

What is Amazon CloudWatch Agent?

A

Collects system-level metrics from EC2

29
Q

What is AWS System Manager Agent?

A

Manages, updates & configures EC2 resources

30
Q

How to monitor API G/W?

A

API Gateway Access logs with CloudWatch

31
Q

Is log group data encrypted in CloudWatch logs?

A

Yes

32
Q

How to set encryption using kms with CloudWatch log groups?

A

aws logs associate-kms-key

33
Q

How can CodePipeline trigger a build?

A

Either when an update is made to CodeCommit or a change to an S3 bucket

34
Q

What are X-Ray Annotations?

A

key-value pairs that are indexed for searching through the trace data.