CloudWatch, CloutTrail & Config Flashcards

1
Q

What does a cloudwatch metric belong to?

What is a cloudwatch metric dimension and how many dimensions can a metric have?

What is the default time period for metrics? How can you lower it?

Is the EC2 instance memory metric pushed by default?

A

A name space.

An attribute of a metric. Up to 10. Ex instanceId, instanceType

5 min. By enabling detailed monitoring for a cost. This will lower it to 1 min.

No, it is a custom metric.

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

How can you define your own metrics to send to CloudWatch?

What are some custom metrics you might want to push

How do you send these metrics?

What are the resolutions on a metric?

What’s the difference between a high resolution metric and a detailed metric/

A

By defining a custom metric?

Memory usage, disk usage

By calling the PutMetricData API

Standard (every on minute), or high resolution (every 1, 5 10 or 30 seconds - with a cost)

High resolution is for custom metrics. Detailed metrics are for OOTB metrics.

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

If you want to visualize metrics from different regions, how can you do that?

How can you add additional information to a dashboard?

A

Create a dashboard.

By adding a widget.

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

What are the 2 component of log storage architecture?

How do you define when to delete logs in cloud watch?

How can you tail cloudwatch logs?

What is something you should check if your logs aren’t being correctly sent to CloudWatch

How can logs be encrypted?

A

Log groups: Arbitrary name, usually representing an application
Log stream: instances within application/log files/containers.

By defining a log expiration policy

By using the AWS CLI

The IAM permissions

With KMS

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

What is the cloudwatch logs unified agent?

A

The newer version of the cloudwatch logs agent which allows you to send system level metrics to cloudwatch, and it can be configured via the SSM parameter store.

This can be used to monitor free disk space.

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

What are the 3 cloudwatch alarm targets?

What is the EC2 recovery action type?

A

Stop, Terminate, Reboot EC2
Trigger auto-scaling action
Send notification to SNS

A recovered instance is identical to the original instance, including the instance ID, private IP addresses, Elastic IP addresses, and all instance metadata.

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

What is cloud watch events?

A

Event pattern to intercept events from AWS services (Sources). Ex EC2 instance start, S3, CodeBuild failure.. Can also automatically schedule events to occur. These events are then passed to a target via a JSON payload. Targets can be:
Lambda, Batch, EC@ Task, SQS, SNS, Kinesis Data Streams,, Step functions, CodePipeline, CodeBuild, SSM, EC@ Actions

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

What is cloudwatch event bridge.

What is the cloudwatch event bridge schema registry?

A

It is similar to cloudwatch events, but it allows you to send events from external sources like SaaS platforms. You can also create custom event buses for your own applications.

The schema registry can infer the schema (Ex OpenAPI) of events and store them in a registry to make it easier for you to generate source code from.

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

What are the 3 types of events you can see in cloud trail?

A

Management events - When someone modifies a resource on your account. They can be separated into read and write events.

Data events - Ex someone adds a file to a bucket. Not logged by default. Can be separated into read and write events. Can also log lambda function executions

Insights

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

What is AWS insights?

A

It will analize the behavior in your account to determine what is normal. I can then let you know if it detects unusual behavior.

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

How long are CloudTrail events stored?

How can you enable it for longer?

A

90 days.

By pushing the logs to S3, then using Athena to query them.

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

What is AWS Config?

What happens when a resource goes out of compliance?

A

Helps with Auditing and recording compliance of your AWS resources
Helps record configurations and changes over time
It also helps you set compliance standards for your applications. Ex don’t use expired KMS keys, only use a specific type of disk.

It is logged in config and an non-compliance event is raise.

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

How can your system auto recover when a config rule goes out of compliance?

A

You can create an Systems manager (SSM) Automation document (Auto remediation action). This can revoke the action or trigger a call to a lambda function that does whatever you want

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

Other than the event bridge, where else can you send events?

A

SNS

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