AWS Monitoring & Audit: Cloud Watch, CloudTrail & Config Flashcards
1
Q
CloudWatch Metrics
A
- Metric is a variable to monitor (CPUUTilization, NetworkIN…)
- Dimensions is an attribute of a metric
- Can create CloudWatch Custom Metric (for the RAM for example)
2
Q
CloudWatch Logs
A
- Log groups: arbitrary name, usually representing and application.
- Log stream: instances within application / log files / containers
3
Q
Cloud WatchLogs can send logs to:
A
- Amazon S3
- Kinesis Data Streams
- Kinesis Data Firehouse
- AWS Lambda
- OpenSearch
4
Q
CloudWatch Logs - Sources:
A
- SDK, CloudWatch Logs Agent, CloudWatch Unified Agent
- Elastic Beanstalk: collection of logs from application
- ECS: collection of containers
- AWS Lambda: collection from function logs
- VPC Flow Logs: VPC specific logs
- API Gateway
- CloudTrail based on filter
- Route53: Log DNS queries
5
Q
CloudWatch Logs for EC2
A
- Need to install CloudWatch agent.
- Make sure IAM permission are set.
6
Q
Difference between CloudWatch Log & CloudWatch Unified Agent
A
CloudWatch Log
* Old version of the agent
* Can only send to CloudWatch Logs
CloudWatch Unified Agent
* Collect additional system-level metrics such as RAM, processes, etc.
* Collect logs to send CloudWatch Logs
7
Q
Cloud Watch Unified Agent - Metrics
A
- Collect directly on youy Linux server / EC2 instance
- CPU
- Disk metrics
- RAM
- Netstat
- Processes
- Swam Space
8
Q
CloudWatch Alarms - Composite Alarms
A
- Are on a single metric
- Composite Alarms are monitoring the states of multiple other alarms
- And and OR conditions
9
Q
Amazon EventBridge
A
- Schedule: Cron Jobs (schedule scripts)
- Event Pattern: Event rules to react to a service doing something
- Trigger Lambda functions, send SQS/SNS messages
10
Q
Amazon EventBridge - Schema Registry
A
- EventBridge can analyze the events in your bus and infer the schema
- The Schema Registry allow you to generate code for your application, that will know in advance how data is structured in the event bus
- Schema can be versioned
11
Q
CloudWatch Container Insight
A
- Collect, aggregate, summarize metrics and logs from containers
- Available for containers on:
- Amazon Elastic Container Service (Amazon ECS)
- Amazon Elastic Kubernetes Service (Amazon EKS)
- Kubernetes platform on EC2
- Fargate (ECS, EKS)
12
Q
CloudWatch Contributor Insights
A
- Analyze logs data an create time series that display contributor data.
See metrics about the top-N contributores
The total number of unique contributos, and their usage.
13
Q
CloudWatch Container Insight
A
- ECS, EKS, Kubernetes on EC2, Fargate, need agent for Kubernetes
- Metrics and Logs
14
Q
CloudWatch Lambda Insights
A
- Detailed metrics to throubleshoot serverless applications
15
Q
CloudWatch Contributors Insight
A
- Find “Top-N” Contributors throught CloudWatch Logs