Monitoring Flashcards

1
Q

What is CloudWatch?

A

Cloudwatch is a monitoring and observability platform that was designed to give us insight into our AWS architecture. It allows us to monitor multiple levels of our applications and identify potential issues.

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

What are the main things that CloudWatch can do?

A
  1. Collect system metrics (metrics you get out of the box, the more managed your service, the more you get out of the box)
  2. Collect application metrics (by installing a CloudWatch agent, you can get information from inside your EC2 instances)
  3. Create alarms (alerts you when something goes wrong based on metrics)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the two kinds of metrics in CloudWatch?

A
  1. Default (provided out of the box and do not require additional work on your part to configure)
  2. Custom (these metrics will need to be provided by using the CloudWatch agent installed on the host)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the metrics that are provided by default in CloudWatch?

A

EC2 Metrics: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/viewing_metrics_with_cloudwatch.html

RDS Metrics:

<list>

Lambda Metrics:
<list>

S3 Metrics:
<list>
</list></list></list>

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

What is the lowest period of data collection for standard metrics in CloudWatch?

A

1 minute

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

What is the lowest period of data collection for custom metrics in CloudWatch?

A

10 seconds

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

If you are asked what service to use for monitoring, what service would you recommend?

A

CloudWatch

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

Are there any alarms created by default?

A

No

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

What is CloudWatch Logs?

A

CloudWatch Logs is a tool that allows you to monitor, store and access log files from a variety of different sources. It gives you the ability to query your logs to look for potential issues or data that is relevant to you.

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

What is a Log Event in CloudWatch?

A

This is the record of what happened. It contains the timestamp and the data.

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

What is a Log Stream in CloudWatch?

A

A collection of Log Events from the same source.

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

What is a Log Group in CloudWatch?

A

A collection of Log Streams.

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

What are Filter Patterns in CloudWatch Logs?

A

You can look for specific terms in your logs.

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

What are CloudWatch Logs Insights?

A

This allows you to query all your logs using SQL-like interactive solution.

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

What are Alarms in CloudWatch Logs?

A

Once you’ve identified you trends and patterns, you can alert on them using CloudWatch Alarms.

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

If you are asked what service to use for storage of logs where you won’t need to process them, what service would you recommend?

A

S3

17
Q

If you are asked a questions about processing and viewing logs, what service would you recommend?

A

CloudWatch Logs

18
Q

If you are asked about what service you would use for logging, if it doesn’t call out needed the logging to be real-time?

A

CloudWatch Logs

19
Q

If you are asked about how you would log and then filter the logs using SQL-like queries, what service would you recommend?

A

CloudWatch Logs Insights

20
Q

What is Amazon Managed Grafana?

A

Fully managed AWS service allowing secure data visualizations for instantly querying, correlating, and visualizing your operational metrics, logs and traces from different sources.

21
Q

What are the features of Amazon Managed Grafana?

A
  1. Easy to deploy, operate and scale in your AWS account
  2. Workspaces (logical Grafana servers) allow for separation of data visualizations and querying
  3. AWS handles scaling, setup and maintenance of all workspaces
  4. Built-in security features help you meet governance and compliance requirements (single-signon, etc.).
  5. Pricing is based per active user in a workspace.
  6. Integration it with several sources including Amazon CloudWatch, Amazon Managed Service for Prometheus, Amazon OpenSearch Service, and Amazon Timestream
22
Q

Name some use cases for Amazon Managed Grafana?

A
  1. Container Metric Visualizations (connect to datasources like Prometheus for visualizing EKS, ECS or your own Kubernetes cluster metrics)
  2. Internet of Things (IoT) (vast data plugins make the service a perfect fit for monitoring IoT and edge device data)
  3. Troubleshooting (centralizing dashboards allows for more efficient operational issue troubleshooting)
23
Q

What is Amazon Managed Service for Prometheus?

A

Serverless, Prometheus-compatible service used for securely monitoring container metrics at scale

  1. Open Source Prometheus (leverage the open-source Prometheus data model with AWS managed scaling and availability)
  2. Automatic scaling (based on ingestion, storage and querying of metrics)
  3. Designed for high-availability (AWS replicates data across the three AZs in the same region)
  4. Choose your own Kubernetes (works with clusters running on Amazon EKS or self-managed Kubernetes clusters)
  5. PromQL (leverage the open source PromQL query language for exploring and extracting data)
  6. Data retention (stored in workspaces for 150 days and automatically deleted afterward)
  7. VPC endpoints can be leveraged for secure VPC access
24
Q

Name some of the built-in datasources in Amazon Managed Grafana.

A
  1. Amazon CloudWatch
  2. Amazon Managed Service for Prometheus
  3. AWS X-Ray
    (and many more)
25
Q

When would you use Amazon Managed Service for Prometheus?

A

Leverage the service for Amazon EKS clusters or even self-managed Kubernetes clusters.

26
Q

What is the server you would recommend for anything alarm related?

A

CloudWatch

27
Q

If you are asked how you could monitor for resource changes, what service would you recommend?

A

AWS Config

28
Q

How often are standard metrics in CloudWatch delivered by default?

A

Every 5 minutes

29
Q

How often is detailed monitoring of metrics in CloudWatch delivered (not the default)?

A

Every 1 minute

30
Q

What services can integrate with CloudWatch Logs?

A

EC2, on-premises, RDS, Lambda, and CloudTrail

31
Q

If you are asked how you could collect logs in real-time, what service would you recommend?

A

Kinesis

32
Q

If you are asked how you could visualize and correlate container or IoT metrics, what service would you recommend?

A

Amazon Managed Grafana

33
Q

If you are asked about monitoring container (especially Kubernetes) metrics at scale, what service would you recommend?

A

Amazon Managed Service for Prometheus