Monitoring & Audit Flashcards
What are 3 example use cases for defining Custom Metrics?
- RAM usage
- Disk Space
- Number of logged in users
What API call do you use in the SDK to send a Custom Metric?
PutMetricData
What are 2 example attributes you can use to segment Custom Metrics?
- Instance.id
- Environment.name
What API parameter do you set for Custom Metric Resolution?
StorageResolution
Can your Custom Metrics have timestamps in the past or future?
Yes
What are the 2 logs agents available?
- Cloudwatch Logs Agent (old version)
- Cloudwatch Unified Agent
What 1 thing can Cloudwatch Logs Agent do?
Send to Cloudwatch Logs
What are the 2 things Cloudwatch Unified Agent can do?
- Collect additional system-level metrics like RAM etc
- Send to Cloudwatch Logs
How would you recover an EC2 while maintaining the same private IP, Public IP, Elastic IP and metadata etc?
You would set up a Cloudwatch Alarm to recover the EC2 Instance based on Instance Status and System Status
What are the 2 advantages of Eventbridge vs Cloudwatch Events?
- You can receive events from partner event bus like ZenDesk etc
- You can now receive events from custom event buses
How long are events stored in Cloudtrail?
90 days
What are the 3 things Cloudwatch is used for?
- Performance Monitoring
- Events & Alerting
- Log Aggregation and Analysis
What are the 3 things Cloudtrail is used for?
- Record API calls
- Define trails for specific resources
What are the 3 things Config is used for?
- Record Configuration Changes
- Evaluate Resources against compliance rules
- Get timelines of change and compliance