CloudWatch Flashcards

(58 cards)

1
Q

What is CloudWatch?

A

is a monitoring and management service that provides data and actionable insights for AWS, hybrid, and on-premises applications and infrastructure resources

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What services obtain the benefits of CloudWatch metrics?

A

every service

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a CloudWatch dimension?

A

is a name/value pair attribute that is part of the identity of a metric (instance id, environment, etc…)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a CloudWatch metric?

A

a variable to monitor, with data points representing the values of that variable over time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a CloudWatch metric namespace?

A

is a container for CloudWatch metrics. Metrics in different namespaces are isolated from each other

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What can you create on CloudWatch from metrics?

A

dashboards

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How often do EC2 instances have metrics?

A

5 minutes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Using CloudWatch detailed monitoring how fast can you get data from EC2 instances metrics?

A

every 1 minute at a cost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How many detailed monitoring metrics are allowed by CloudWatch in the free tier?

A

10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

By default what is not pushed from EC2 instances to CloudWatch metrics?

A

Memory usage is by default not pushed (must be pushed from inside the instance as a custom metric)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a CloudWatch custom metric?

A

You can publish your own metrics to CloudWatch using the AWS CLI or an API

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Can you use dimentions on custom metrics?

A

yes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is the standard resolution time for custom metrics?

A

1 min

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is the high resolution time for custom metrics?

A

up to 1 second using StorageResolution API parameter - higher cost

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the API for sending custom metrics?

A

PutMetricData

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What you need to do if you get an error while sending a custom metric?

A

Use exponential back off

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What are CloudWatch Dashboards?

A

are customizable home pages in the CloudWatch console that you can use to monitor your resources in a single view, even those resources that are spread across different Region

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What graphs can you include in CloudWatch Dashboards?

A

it is global, can include graphs from different regions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What can be sent to Cloudwatch in addition to metrics?

A

You can use CloudWatch Logs to monitor applications and systems using log data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What is used by applications to send logs to CloudWatch?

A

SDK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Where can CloudWatch logs go to?

A
  • Batch exporter to S3 for archival

* Stream to ElasticSearch cluster for further analytics

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is composed of CloudWatch logs storage architecture?

A
  • Log groups: arbitrary name, usually representing an application
  • Log stream: instances within application / log files / containers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Does CloudWatch logs expire?

A

you can set expiration policies (never, 30 days, etc)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What can you do with CLI regarding CloudWatch logs?

25
What you need to send logs to CloudWatch?
correct IAM permission
26
What security is provided for CloudWatch logs?
encryption of logs using KMS at the Group Level
27
What can you use to for example find a specific IP or count occurrences of “ERROR” inside of a CloudWatch log?
use CloudWatch Logs filter expressions to create Metric Filters
28
What is CloudWatch Logs Insights?
can be used to query logs and add queries to CloudWatch Dashboards (u can write your own)
29
What are CloudWatch alarms?
allows you to watch CloudWatch metrics and to receive notifications when the metrics fall outside of the levels (high or low thresholds) that you configure
30
What are the CloudWatch states?
* OK * INSUFFICIENT_DATA * ALARM
31
What is the CloudWatch alarm period?
Length of time in seconds to evaluate the metric
32
What is a CloudWatch event?
delivers a near real-time stream of system events that describe changes in AWS resources
33
What can a CloudWatch Event trigger?
Lambda function, SQS, SNS Kinesis messages
34
What is created by CloudWatch Events about the change?
small JSON documents to give information about the change
35
What can you use in CloudWatch events?
- Scheduled actions | - Event Pattern to react to a service doing something
36
Set an example of what a CloudWatch event could react to
CodePipeline state changes
37
How many dimensions can you define in a metric?
up to 10
38
How are logs sent from EC2 instances to CloudWatch?
* 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
39
How can you send logs from on-prem instances to CloudWatch?
using the CloudWatch Agent
40
What you need to do after you run the CloudWatch agent in your instance to make sure that logs are being sent successfully?
Make sure IAM permissions are correct
41
What is the CloudWatch Unified Agent?
A newer and better version of the Log Agent that: o Collect additional system-level metrics such as RAM, processes, etc.… o Centralized configuration using SSM Parameter Store
42
What data is filtered by CloudWatch Logs Filter Expressions?
Filters do not retroactively filter data. Filters only publish the metric data points for events that happen after the filter was created
43
Where can CloudWatch alarms go to?
Auto Scaling, EC2 Actions, SNS notifications
44
What options can you use to define CloudWatch Alarms?
Various options (sampling, %, max, min, etc…)
45
What is the Normal Metrics Alarm period range?
Normal metrics from 1 minute (default) to 1 day
46
What is the High Resolution Custom Metrics Alarm period range?
High resolution custom metrics: 10 sec or 30 sec
47
What are CloudWatch Alarm Evaluation Periods?
Is the number of the most recent periods, or data points, to evaluate when determining ALARM state
48
What are CloudWatch Alarm Data points?
Is the number within the Evaluation Periods that must be breaching to cause the alarm to go to the ALARM state
49
What is the CloudWatch Alarm evaluation interval?
The evaluation interval is the number of data points multiplied by the evaluation period.
50
If I define a CloudWatch Alarm saying "4 out of 5" in intervals of 2 minutes... Mention: - Datapoints - Evaluation Periods - Evaluation Interval - Period
- Datapoints = 4 - Evaluation Periods = 5 datapoint - Evaluation Interval = 10 minutes - Period = 2 minutes
51
What is EventBridge?
EventBridge is the next evolution of CloudWatch Events by extending its power
52
What is included in EventBridge?
* It includes the Default event bus * Partner event bus * Custom Event buses
53
What is the CloudWatch default event bus?
It is generated by AWS services and it is the only one used by CloudWatch Events
54
What is used for the EventBridge Partner event bus?
receive events from SaaS service or applications (Zendesk, DataDog, Segment, Auth0…)
55
What is used for the Custom Partner event bus?
For your own applications
56
Can CloudWatch event buses be accessed by other accounts?
yes
57
What is the EventBridge Schema Registry?
The Schema Registry allows you to generate code for your application, that will know in advance how data is structured in the event bus. Schema can be versioned
58
What can EventBridge do by analyzing the events in your bus?
EventBridge can analyze the events in your bus and infer the schema registry