CloudWatch, X-Ray, CloudTrail Flashcards

(25 cards)

1
Q

What are the three main AWS services for monitoring and auditing?

A

Amazon CloudWatch, AWS X-Ray, AWS CloudTrail

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

What does CloudWatch provide?

A

Metrics, Logs, Events, Alarms

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

What is the default monitoring frequency for EC2 without detailed monitoring?

A

Every 5 minutes

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

How often is EC2 monitored with detailed monitoring enabled?

A

Every 1 minute

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

How do you push custom metrics to CloudWatch?

A

Use the PutMetricData API

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

What tool can you use to search and analyze logs in CloudWatch?

A

CloudWatch Logs Insights

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

What are CloudWatch Log Groups and Log Streams?

A

Log Groups = applications or systems; Log Streams = individual log sources (like EC2 or containers)

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

What is a metric filter in CloudWatch Logs?

A

A filter to create metrics from specific log patterns

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

What is a common use of CloudWatch Alarms?

A

Trigger SNS notifications, EC2 actions (stop/reboot/terminate), or Auto Scaling policies

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

What are the three alarm states in CloudWatch?

A

OK, ALARM, INSUFFICIENT_DATA

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

What is a composite alarm in CloudWatch?

A

An alarm that combines multiple alarms using logical AND/OR

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

What agent collects additional system-level metrics and logs?

A

CloudWatch Unified Agent

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

What is the purpose of CloudWatch Synthetics?

A

Monitor APIs, URLs, or websites using canaries (scripted browser sessions)

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

What does Amazon EventBridge allow you to do?

A

Create rules to route events from AWS services and SaaS to targets (Lambda, Step Functions, etc.)

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

How can EventBridge help in cross-account scenarios?

A

Use resource-based policies to share custom event buses

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

What AWS service helps with distributed tracing and performance troubleshooting?

17
Q

What does the X-Ray SDK capture?

A

AWS SDK calls HTTP requests, DB queries, and queue operations

18
Q

What must a Lambda function have to use X-Ray?

A

Active Tracing enabled and AWSXRayDaemonWriteAccess IAM permission

19
Q

What are X-Ray sampling rules?

A

Define how many requests to trace (default is 1 req/sec + 5% of others)

20
Q

Where are CloudTrail logs stored?

A

Amazon S3 or CloudWatch Logs

21
Q

What does CloudTrail log by default?

A

Management Events (read/write API calls to AWS services)

22
Q

What are Data Events in CloudTrail?

A

High-volume data access like GetObject on S3 or Invoke on Lambda

23
Q

What feature in CloudTrail detects unusual activity?

A

CloudTrail Insights

24
Q

How long does CloudTrail retain events by default?

A

90 days (in the event history view)

25
What is the difference between CloudWatch and CloudTrail?
CloudWatch monitors system performance; CloudTrail audits API activity