Cloudwatch Flashcards

1
Q

Unified Cloudwatch Agent

A

for granular, custom logs, or OS level logs and other non AWS Service integration, eg, on-premise

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

CLoudtrail Retention

A

90 days stored by default in events History

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

Cloudtrail Management Operations vs Data Events

A

API calls on Resources on AWS Account. Interractions with AWS Resources. AKA Control plane operations. eg Create EC2, Create a bucket

Data Events - About resource operations on or in a worker Nodes or in a resource, on events (Streams, lambda calls, etc)

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

Cloudwatch global Trail

A

listens to every event on that account, while a regional trail will only capture events within that region.

Log events for Global services into us-east-1(Global HQ). Eg, IAM, Route53, CLoudfront, STS

Meanwhile, regional trail only logs events for regions where the event is generated

Global Trail is enabled by default when a new account is created

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

Default Setting for CLoudtrail events

A

By default, events are stored within Cloudtrail.

Unless a Trail is activated, whereby, storage can then be assigned by user/engineer.

ONLY Management events is enabled by default.

Data events have to be enabled

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

Cloudtrail can store logs in… ?

A

both cloud watch logs and S3 indefinitel, only S3 charges apply.

Advantage of storing logs in Cloudwatch logs is the ability to apply filters and perform other operations that are otherwise more complex to run with s3

Note:
By default, events are stored within Cloudtrail(as cloud trail History) for 90 days

Unless a Trail is activated, whereby, storage can then be assigned by user/engineer.

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

CLoudtrail Pricing (Management events vs Data Events)

A

Management Events - Free

Data Events are billed

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

CloudTrail Latency

A

Not real-time

15 minutes

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

STOP LOGGING

A

a function on CloudTrail used for stopping/pausing trails. This can be beneficial for minimizing costs associated with generating larger files into s3 that may incur charges

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

Cloudwatch Metric dimensions

A
  • Cloudwatch Metric dimensions are key:value pairs attached to a metric to specify it’s source. This could be instance ID, AMI iD etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

CLoudwatch detailed monitoring

A
  • CLoudwatch detailed monitoring enables 1 minute granularity metrics report
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is a cloudwatch Metric

A
  • A metric is a collection of related datapoint in a time ordered structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Cloudwatch use case

A
  • Cloudwatch is a public service, it can be used on AWS, On-prem and even other Cloud Platforms
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Cloudwatch default monitors for ec2

A

C.N.D

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

Cloudwatch Namespace

A

A Container for storing data/metrics. Like a folder that separates/isolates different metrices.

All AWS Data goes into the NameSpace: AWS/Service. Eg, AWS/Ec2. This namespace is reserved

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

Cloudwatch detailed

A

Cloudwatch detailed monitoring enables 1 minute granularity metrics report

17
Q

Advantage of storing logs in Cloudwatch

A

Advantage of storing logs in Cloudwatch logs is the ability to apply filters and perform other operations that are otherwise more complex to run with s3

18
Q

can cloudtrail be applied to monitor AWS Organization ?

A

Cloudtrail can be applied to monitor an entire AWS Organization for account-wide scope monitoring

19
Q

CLoudtrail latency

A

CloudTrail is Not real-time

Takes 15 minutes to populate

20
Q

Data events default setting

A

Data events Trail has to be intentionally enabled, as it is not enabled by default. This is because data events can be very vast/volumnous

21
Q

Cloutrail logs format

A

Compressed JSON

22
Q

CloudTrail is enabled by default in an AWS account.

A

True, but only for 90days. And just management trails

23
Q

Cloudtrail is not real time

A

Cloudtrail is not realtime, It logs once in every 15mins

24
Q

Cloudwatch Insights

A

CloudWatch Logs Insights enables you to interactively search and analyze your log data in Amazon CloudWatch Logs. You can perform queries to help you more efficiently and effectively respond to operational issues.

25
Q

Cloudwatch On-prem

A

You can use CloudWatch Agent on-prem or Directly use Cloudwatch API or build Cloudwatch into your Application

26
Q

Cloudwatch use case

A

Ingestion, Storage, and Management of Metrics
* Public Service - public space endpoints
* AWS Service integration - management plane
* Agent integration .. e.g. EC2 - richer metrics
* On-premises integration via Agent/API (custom metrics)
* Application integration via API/Agent (custom metric)
* View data via console UI, CLI, API, dashboards & anomaly detection
* Alarms … react to metrics, and can be used to notify or perform actions

27
Q

Cloudwatch as aws Public service

A

Requires services in Private Subnets to connect to Cloudwatch using *Interface Endpoint** or Instances/applications in public subnets using igw to send or receive metrics/data to Cloudwatch

28
Q

Cloudwatch resolution

A

the time range for which data should be recorded/transmitted.
eg, 1s, 2s, 3s
1sec granularity is considered as High Resolution

29
Q

CLoudwatch logs

A

Ingestion and management of logging data

30
Q

Cloudwatch Events-Bus

A

Events Bus is an implicit stream of events that occurs from any supported service within an AWS Account.

31
Q

Cloudwatch Agent Log Group Name

A

Logstream will be named after the instance ID

32
Q

Cloudwatch Agent Required Permissions

A

IAM Roles for
1. EC2 Instance Cloudwatch full access
2. SSM Parameter store full Access (For credentials access)

33
Q

Cloudwatch Agent Installation Methods

A
  1. Can be baked into AMI
  2. Can be bootstrapped
  3. Can be deployed from Cloudformation
  4. Using Systems Manager