Module 7 - Monitoring and Scaling Flashcards
What are some options for monitoring on AWS?
CloudTrail
CloudWatch
EventBridge
Why do you need to monitor?
Operational Health
Application performance
Resource utilization
Security auditing
What is CloudWatch?
A service that provides a near real-time stream of system events. Sends notifications or automatically makes changes to the resources you are monitoring based on rules that you define. Also works for on-prem servers. It’s a metrics repository.
What statistic types does CloudWatch offer?
minimum, maximum, sum, average, count, and percentile.
What do CloudWatch alarms do?
Alarms can be configured to trigger actions to stop, start, or terminate a service when certain criteria are met.
What types of logs are there?
CloudTrail - user activity, API usage. who did what and when
CloudWatch logs - apps, log files from EC2, CloudTrail, Route53.
VPC FLow logs - IP traffic to/from network interfaces in the VPC
Custom
What is a log stream?
a sequence of log events that share the same source. Each separate source of logs in CloudWatch Logs makes up a separate log stream.
What is a log group?
a group of log streams that share the same retention, monitoring, and access control settings. You can define log groups and specify which streams to put into each group
What is a metric filter?
A way to search for and match terms, phrases, or values in your log events. When a metric filter finds one of the terms, phrases, or values in your log events, you can increment the value of a CloudWatch metric
Where are CloudTrail logs stored?
S3 bucket.
Where can you see the VPC Flow logs?
Amazon EC2 and Amazon VPC consoles.
Logs are stored in S3 bucket or CloudWatch log groups.
What triggers do VPC Flow logs offer?
You can create alarms that will fire if certain types of traffic are detected, and metrics to help you to identify trends and patterns
What logging is NOT captured in VPC FLow logs?
VPC logging does not include:
• DNS traffic
•DHCP traffic
• Windows license activation traffic
• traffic to and from the instance metadata address
(169.254.169.254)
•Traffic to/from the reserved IP address of the default VPC router
What entities can you create a VPC FLow log for?
You can create a flow log for a VPC, a subnet, or an elastic network interface.
If you create a flow log for a subnet or VPC, each network interface in the VPC or subnet is monitored.
Where can you publish VPC FLow logs?
You can publish flow log data to a log group in CloudWatch Logs. OR to S3 bucket in log file objects.
You can’t edit the configuration of a log after you create it, you can only delete it.
What happens if the same network interface is present in one or more flow logs in the same log group?
it will have one combined log stream