CloudWatch, CloudTrail, AWS Config Flashcards
In CloudWatch, __________ is a variable to monitor (CPUUtilization, NetworkIn…)
Metric
In CloudWatch, __________ is an attribute of a metric (instance id, environment, etc…).
Dimension
Up to ______ dimensions per metric
30
Metrics have __________
timestamps
Can you define CloudWatch Log expiration policies?
YES
(never expire, 1 day to 10 years…)
CloudWatch Logs can send logs to:
- Amazon S3 (exports)
- Kinesis Data Streams
- Kinesis Data Firehose
- AWS Lambda
- OpenSearch
Are CloudWatch logs encrypted by default?
YES
For CloudWatch logs, can you setup KMS-based encryption with your own keys
YEs
- SDK, CloudWatch Logs Agent, CloudWatch Unified Agent
- Elastic Beanstalk: collection of logs from application
- ECS: collection from containers
- AWS Lambda: collection from function logs
- VPC Flow Logs:VPC specific logs
- API Gateway
- CloudTrail based on filter
- Route53: Log DNS queries
CloudWatch Logs - Sources
How long can log data take to become available for export?
12 hours
- Search and analyze log data stored in CloudWatch Logs
- Example: find a specific IP inside a log, count occurrences of “ERROR” in your logs…
- Provides a purpose-built query language
- Automatically discovers fields from AWS services and JSON log
events - Fetch desired event fields, filter based on conditions, calculate
aggregate statistics, sort events, limit number of events… - Can save queries and add them to CloudWatch Dashboards
- Automatically discovers fields from AWS services and JSON log
- Can query multiple Log Groups in different AWS accounts
- It’s a query engine, not a real-time engine
CloudWatch Logs Insights
CloudWatch Logs S3 export is ________ near-real time or real-time
NOT
- Get a real-time log events from CloudWatch Logs for processing and analysis
CloudWatch Logs Subscriptions
Where can CloudWatch Logs Subscriptions Send to?
Kinesis Data Streams
Kinesis Data Firehose
Lambda
filter which CloudWatch logs are events delivered to your destination
Subscription Filter
Metrics exists only in the_________ in which they are created.
region
Metrics ___________ be deleted, but they automatically expire after __________ if no new data is published to them.
cannot
15 months
Each metric data point must be marked with a ________
timestamp
The timestamp for a metric can be up to ________ in the past and up to _________ into the future.
two weeks
two hours
If you do not provide a timestamp, CloudWatch creates a timestamp for you based on ______________
the time the data point was received
By ___________, several services provide _______ metrics for resources. You can also enable _______________, or _____________
default
free
detailed monitoring
publish your own application metrics.
Enables you to query multiple CloudWatch metrics and use math expressions to create new time series based on these metrics.
Metric math
For EC2 metric: CloudWatch does not collect ____________ and ____________ metrics right from the get go. You need to install ___________ in your instances first to retrieve these metrics.
memory utilization
disk space usage
CloudWatch Agent
a name/value pair that uniquely identifies a metric.
Dimensions