Monitoring and Auditing Flashcards
What are the 4 things that CloudWatch does?
- Metrics: Collect and track key metrics
- Logs: Collect, monitor, analyze and store log files
- Events: Send notifications when certain events occur
- Alarms: React in real-time to metrics/events
What are the 2 things X-Ray does?
- Troubleshooting Application performance and Errors
- Distributed Tracing of Microservices
What are the 2 things Cloudtrail does?
- Internal Monitoring of API calls being made
- Audit changes to AWS resources by users
What is a CLoudwatch Dimension?
It is an attribute of the metric such as instanceId, env etc
How many Dimensions per metric can you have?
10
What is the standard Metric Resolution (how often data is sent)?
Every 1 minute
How do you get more frequent metric resolution?
Enable High Resolution up to 1 second using the StorageResolution API parameter
How do you send metric data to CloudWatch?
Use the PutMetricData API call
What are the 2 ways to enable X-Ray?
- Import the X-Ray SDK into your code
- Install the X-Ray Daemon or Enable X-Ray AWS Integration
What 2 things can you do if X-Ray is not working on EC2?
- Ensure the EC2 IAM role has the proper permissions
- Ensure the EC2 instance is running the X-Ray Daemon
What 2 things should you do to enable X-Ray on LAmbda?
- Ensure it has an IAM role with correct permissions
- Ensure that X-Ray is imported in the code
How do you enable X-Ray in Beanstalk?
Add a x-ray config file to the .ebextensions dir
What does Cloudtrail do?
Provides Governance, compliance and audit for your AWS account.
What event/API call history can you get from Cloudtrail?
- Console
- SDK
- CLI
- AWS Services
If someone deletes a service in AWS, where would you investigate that?
Cloudtrail