CloudWatch Flashcards

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?

A

you can tail

25
Q

What you need to send logs to CloudWatch?

A

correct IAM permission

26
Q

What security is provided for CloudWatch logs?

A

encryption of logs using KMS at the Group Level

27
Q

What can you use to for example find a specific IP or count occurrences of “ERROR” inside of a CloudWatch log?

A

use CloudWatch Logs filter expressions to create Metric Filters

28
Q

What is CloudWatch Logs Insights?

A

can be used to query logs and add queries to CloudWatch Dashboards (u can write your own)

29
Q

What are CloudWatch alarms?

A

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
Q

What are the CloudWatch states?

A
  • OK
  • INSUFFICIENT_DATA
  • ALARM
31
Q

What is the CloudWatch alarm period?

A

Length of time in seconds to evaluate the metric

32
Q

What is a CloudWatch event?

A

delivers a near real-time stream of system events that describe changes in AWS resources

33
Q

What can a CloudWatch Event trigger?

A

Lambda function, SQS, SNS Kinesis messages

34
Q

What is created by CloudWatch Events about the change?

A

small JSON documents to give information about the change

35
Q

What can you use in CloudWatch events?

A
  • Scheduled actions

- Event Pattern to react to a service doing something

36
Q

Set an example of what a CloudWatch event could react to

A

CodePipeline state changes

37
Q

How many dimensions can you define in a metric?

A

up to 10

38
Q

How are logs sent from EC2 instances to CloudWatch?

A
  • 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
Q

How can you send logs from on-prem instances to CloudWatch?

A

using the CloudWatch Agent

40
Q

What you need to do after you run the CloudWatch agent in your instance to make sure that logs are being sent successfully?

A

Make sure IAM permissions are correct

41
Q

What is the CloudWatch Unified Agent?

A

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
Q

What data is filtered by CloudWatch Logs Filter Expressions?

A

Filters do not retroactively filter data. Filters only publish the metric data points for events that happen after the filter was created

43
Q

Where can CloudWatch alarms go to?

A

Auto Scaling, EC2 Actions, SNS notifications

44
Q

What options can you use to define CloudWatch Alarms?

A

Various options (sampling, %, max, min, etc…)

45
Q

What is the Normal Metrics Alarm period range?

A

Normal metrics from 1 minute (default) to 1 day

46
Q

What is the High Resolution Custom Metrics Alarm period range?

A

High resolution custom metrics: 10 sec or 30 sec

47
Q

What are CloudWatch Alarm Evaluation Periods?

A

Is the number of the most recent periods, or data points, to evaluate when determining ALARM state

48
Q

What are CloudWatch Alarm Data points?

A

Is the number within the Evaluation Periods that must be breaching to cause the alarm to go to the ALARM state

49
Q

What is the CloudWatch Alarm evaluation interval?

A

The evaluation interval is the number of data points multiplied by the evaluation period.

50
Q

If I define a CloudWatch Alarm saying “4 out of 5” in intervals of 2 minutes… Mention:

  • Datapoints
  • Evaluation Periods
  • Evaluation Interval
  • Period
A
  • Datapoints = 4
  • Evaluation Periods = 5 datapoint
  • Evaluation Interval = 10 minutes
  • Period = 2 minutes
51
Q

What is EventBridge?

A

EventBridge is the next evolution of CloudWatch Events by extending its power

52
Q

What is included in EventBridge?

A
  • It includes the Default event bus
  • Partner event bus
  • Custom Event buses
53
Q

What is the CloudWatch default event bus?

A

It is generated by AWS services and it is the only one used by CloudWatch Events

54
Q

What is used for the EventBridge Partner event bus?

A

receive events from SaaS service or applications (Zendesk, DataDog, Segment, Auth0…)

55
Q

What is used for the Custom Partner event bus?

A

For your own applications

56
Q

Can CloudWatch event buses be accessed by other accounts?

A

yes

57
Q

What is the EventBridge Schema Registry?

A

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
Q

What can EventBridge do by analyzing the events in your bus?

A

EventBridge can analyze the events in your bus and infer the schema registry