AWS Monitoring and Audit Flashcards
What does CloudWatch do?
CloudWatch provides metrics for almost every service in AWS
What is a metric?
- Metric is a variable to monitor (i.e. CPU Utilization, Memory etc.)
- Metrics have timestamps
What do metrics belong to?
namespaces
What is a dimension? (CloudWatch)
Dimension is an attribute of a metric (instance id, environment. etc.)
What is the default interval for CloudWatch metrics for EC2 instances?
- every 5 minutes.
- Can enable detailed monitoring (extra $) for data every 1 minute
Can custom metrics be defined on CloudWatch?
Yes
What is the default metric resolution in CloudWatch (services other then EC2)?
- 1 minute
- Can do high resolution u to 1 second (more $)
If you want to capture metric data more frequently then the default setting, what can you do?
Enable High Resolution (up to 1 second) - higher cost
What is the API call to set Metric Data?
PutMetricData
What do you do if you see throttle errors in CloudWatch?
This can happen if your sending too much data into CoudWatch to quickly. Use exponential backoff to resolve.
What needs to be in place in order to send CloudWatch logs?
Make sure IAM permissions are correct
Explain CloudWatch Logs for EC2. What service is necessary for this process?
- By default, no logs from your EC2 machine will go to CloudWatch.
- You need to run a CloudWatch Agent on EC2 to push the log files you want.
- Make sure IAM permissions are correct.
If you wanted to acheive additional system-level metrics that provided more granular detail, what service would you use?
CloudWatch Unified Agent
What are the three main monitoring services in AWS?
- Cloudwatch
- Xray
- CloudTrail
What are the four main components of CloudWatch?
- Metrics: Collect and track key metrics
- Logs: Collect, monitor, analyze and store log files
- Events: Send notifications when certain events happen in your AWS
- Alarms: React in real-time to metrics / events
What is AWS EventBridge?
- EventBridge is the next evolution of CloudWatch Events.
- It builds upon and extends CloudWatch Events.
- It uses the same service API and endpoint, and the same underlying service infrastructure.
- EventBridge allows extension to add event buses for your custom applications and your third-party SaaS apps.
- Event Bridge has the Schema Registry capability