Cloudwatch, X-Ray, and monitoring Flashcards
There are 4 things that a cloudwatch event can trigger. One of these is a lambda function. What are the other 3?
Cloudwatch can also trigger events to:
SQS
SNS
Kinesis
How many dimensions can you have per metric in Cloudwatch?
10
What is the default measurement period for Cloudwatch metrics?
5 minutes
What is the measurement period for a detailed Cloudwatch metric and why would you use it?
1 minute and you would use it to make your autoscaling group more responsive to metric changes.
Can you monitor an EC2 instances RAM through Cloudwatch natively?
No, you need a cloudwatch custom metric.
What is the granularity for a standard and high resolution custom metric?
Standard 1 Minute
High Res 1 second
Which API is used for sending custom metrics
PutMetric
We are sending custom metrics through to cloud watch, however we are seeing some throttling exceptions in cloud watch. What should we do
Implement exponential back-off
In Cloudwatch, what is the definition of a metric, namespace and dimension?
A metric is a variable to monitor (such as CPUUtilisation)
A namespace is a grouping of metrics
A Dimension is an attribute of a metric (such as instance ID)
In cloud watch, what are Group Metrics and what do they apply to? Are they enabled by default and what is the granularity?
Group metrics give you continuous visibility into the operations of your Auto Scaling groups so that you can quickly respond to changes in your workloads. They are NOT enabled by default and the granularity is 1 minute.
Your Cloudwatch alarm has returned INSUFFICIENT_DATA as its status. Whty
There are not yet enough data points for the alarm to be evaluated
On a high resolution custom metric, over what time periods does evaluation occur for a a cloud watch ALARM (2)
10 seconds
30 seconds
For CloudWatch logs, what is the logical storage architecture (i.e., how logs are grouped, not what they are stored on). How is encryption at rest achieved and at which logical level? Also, When defining a lifecycle policy at which logical level is this done?
What is the default, min and max expiration for CW Logs?
Log Groups: Arbitrary name, usually the name of the application
Log Stream: Logical streams of logs, such as logs from ECS containers, instances within the application stack, individual CodeBuild builds
Encryption at rest is achieved with KMS at the log group level
Life Cycle Policies are defined at the group level
Logs are kept indefinately by default with a min of 1 day and a max of 10 yrs
Do cloudwatch logs require any IAM setup?
Yes. To send logs to CW, whatever is sending them needs correct IAM permissions.
Where can Cloudwatch logs be archived to?
S3